Тёмный

Lightning Flow Redirect to newly created Record 

Pratima
Подписаться 6 тыс.
Просмотров 21 тыс.
50% 1

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 122   
@PratimaShri
@PratimaShri 4 года назад
Here is the link to the previous video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-zMPF12P_FN4.html
@carloa.burdese4969
@carloa.burdese4969 3 года назад
You probably saved my project, and my day Pratima. THANK YOU!
@jasonpeterson4024
@jasonpeterson4024 4 года назад
This was super helpful -- many thanks for this and your other flow videos - great work.
@PratimaShri
@PratimaShri 4 года назад
Thank you !!
@adiansliamsdad
@adiansliamsdad 3 года назад
That was super easy because of this video. Love the explanations
@shauryanadityasingh
@shauryanadityasingh 3 месяца назад
Thank You Pratima. Have a good day.
@rachelkrzyzanowski7514
@rachelkrzyzanowski7514 3 года назад
This was SO helpful, Pratima! Thank you for this!! So useful in our org!
@PratimaShri
@PratimaShri 3 года назад
Glad I could help!
@suyihan
@suyihan 4 года назад
This is very brilliant, thank you so much for sharing this!
@JaimeBIDtravel
@JaimeBIDtravel 3 года назад
Nice! I was doing this with an URL pointing to the ID of the new created record on the Final Screen, but this way is much more cleaner
@gregcook990
@gregcook990 4 года назад
Thank you, Pratima! This is phenomenal. This is a function that Salesforce should have included in the standard visual flow objects. It's why my organization didn't use flows as much as we could have. What would be the point of going through the flow and at the end you have to hunt down the thing you created or updated? This makes it one stop shopping. Thank you for sharing this with us. FYI for others... As far as I can tell object IDs are unique across the entire Salesforce instance. It doesn't matter what the object is, it will always have a unique ID. An open via the ID, I suspect will open any object in the defined page layout for that object for that profile.
@PratimaShri
@PratimaShri 4 года назад
Thank you for your feedback!! Much appreciated and you are right, Salesforce Id is always unique.
@TKrakowski1
@TKrakowski1 5 лет назад
Thanks for this! Very helpful! Please keep posting videos like this.
@PratimaShri
@PratimaShri 5 лет назад
Happy to help :)
@ThinkGreen1976
@ThinkGreen1976 5 лет назад
Hi Pratima, Great article..Thanks for sharing.
@donaldjose4868
@donaldjose4868 4 года назад
Great!! Thanks for sharing very useful
@praveenkumarGpra
@praveenkumarGpra 2 года назад
Not able to redirect to record page from List button. Please let me know if you have any work around.
@fernandofernandez8823
@fernandofernandez8823 2 года назад
Awesome!
@suwang1910
@suwang1910 3 года назад
Hi, Pratima, thanks for sharing this wonderful lightning component! However, for the enable "Lightning Runtime for Flows", I have tested that without enabling it, the lightning component used at the end of the flow is working as if you have enabled it. So, I am not sure about the pro and con of enabling it. Any advice? Thank you!
@Bumsonabudget
@Bumsonabudget 3 года назад
Hi, thanks for the video. My component isn't showing up in flow builder I have checked and it is in the lightning components list. Any ideas why?
@lewishowel1902
@lewishowel1902 4 года назад
very useful, I'll start following you on here after that :)
@markneill5540
@markneill5540 4 года назад
Great vid thanks a million...
@deslandf.vandomonagas5592
@deslandf.vandomonagas5592 3 года назад
Hello Pratima!! Thank you for sharing this great way to control the flow @ the end. BUT, I tried this line by line, and I'm not getting the redirection at the end. I don't know if it the last upgrade of SF to Winter '21, but I'm not seeing the results like the video. Thanks in advance for your help.
@PratimaShri
@PratimaShri 3 года назад
Hi! Whats the behaviour you are seeing? Are you passing the right Id to the component? and do you have the component code?
@deslandf.vandomonagas5592
@deslandf.vandomonagas5592 3 года назад
@@PratimaShri Hello, thanks for following up. The behavior is like the component doesn't trigger. Yes, I think I'm passing the ID, because I tested it with a link in the pic below and goes to the new record. Yes, I copy and paste from here, and reviewed it.
@deslandf.vandomonagas5592
@deslandf.vandomonagas5592 3 года назад
Well... I can't paste an image, :(.
@deslandf.vandomonagas5592
@deslandf.vandomonagas5592 3 года назад
It could be possible the last update version to Winter '21?
@PratimaShri
@PratimaShri 3 года назад
@@deslandf.vandomonagas5592 let me check in my org - little later today. Feel free to send me an email with screenshots. Pratimashri320@gmail.com
@skumarssaa
@skumarssaa Год назад
This is great! Thanks Pratima! It seems to work just fine from the action button but when I launch the flow from the Community site it doesn't redirect! Any Ideas!
@PratimaShri
@PratimaShri Год назад
Communities will have a different url so you may need to Change some things in that document
@trevorperraton1938
@trevorperraton1938 4 года назад
Brilliant, thank you!
@khizerhussain7723
@khizerhussain7723 4 года назад
Hey Pratima, thanks for this video. But i don't know why this functionality is not working from Related List button. Do you have any suggestion ? Am just trying to redirect from to Related object.
@PratimaShri
@PratimaShri 4 года назад
I am curious on how you were able to use a lghtning action in related list because relate list doesnt support Lightning action. Where are you launching the action from?
@ronrocksall
@ronrocksall 5 лет назад
Great Video Pratima. I would like to know if we can restrict access to see picklist value according to profile? currently, not all users see all record type when creating case but when i implement the flow, they can see all picklist value. is there anyway i can mirror their profile access to see record type for object? thank you
@PratimaShri
@PratimaShri 5 лет назад
I am glad you found it helpful. Unfortunately a flow doest respect profile picklists out of the box. When I had a similar requirement, I had to actually store the recordtypes picklists in a variable like you will normally do then use a decision element to direct the users to different screens with diff values based on logged in profile. $User profile is available in flow under system variables I believe. For me it was few picklists and only 2 profiles so it was easy enough, but if you have multiple set of values, it might get little annoying.
@Alpacabowl98
@Alpacabowl98 4 года назад
Hello Pratima! Question, you couldn't have started this flow with a screen element?
@PratimaShri
@PratimaShri 4 года назад
Hello Vincent! You would need the GetElement first if you want to prepopulate any values on Screen element - if you just have a screen with empty fields then its fine if you call Get Record later. I prefer to have all my queries beforehand so I can just refer them inside the flow whenever I need them. Hope that helps!
@keshavapraveen9173
@keshavapraveen9173 4 года назад
Thanks for the video. When I tried I was getting the error RecId is not set. I was defined the txtCaseId (This holds the newly created record) and enable it as available for output
@adiansliamsdad
@adiansliamsdad 3 года назад
I am using this flow as a Component in a Case Lightning page. It is successfully opening the new record in a subtab. however when I navigate back to the Case the Flow screen needs to be actioned. Is there a way o have this auto Finish?
@adiansliamsdad
@adiansliamsdad 3 года назад
I added this to the Controller - var navigate = component.get("v.navigateFlow"); navigate("FINISH");
@PratimaShri
@PratimaShri 3 года назад
@@adiansliamsdad Did it work?
@HemantKumar-fn4df
@HemantKumar-fn4df 4 года назад
@Pratima Thanks a lot.
@carinaflesch1683
@carinaflesch1683 3 года назад
So I followed this but it is not seeming to work in my flow. No matter what I do I cannot get my flow to redirect to the record Id page that started the flow (I chose the variable that I created for that record Id within the flow called recordId and that is also he same name I used for the attribute name, could that be an issue? It just keeps restarting the flow after finish.
@PratimaShri
@PratimaShri 3 года назад
Did you also add the lightnng component in your screen element and passed the right record Id?
@carinaflesch1683
@carinaflesch1683 3 года назад
@@PratimaShri I did
@danpe4520
@danpe4520 4 года назад
@Pratima, thanks for the Tutorial. My developer skills are almost zero, therefore I don't see the link between after you finished the Lightning component and selecting it in the Screen. Do I need to save and store somewhere the component in the developer console?
@danpe4520
@danpe4520 4 года назад
okay, forget it. It worked. Just needed to save all and waited 5 mins. Then I was able to select in the flow and it also worked directly. Thanks a lot!
@PratimaShri
@PratimaShri 4 года назад
@@danpe4520 Awesome! Glad it worked! Yes dev console can be slow sometimes.
@ThinkGreen1976
@ThinkGreen1976 5 лет назад
Does this new Flow Builder release supports flows that can be re-stared where we left off? or does it preserves state of the each stage?. Please let me know if it can be implemented. Thanks in advance.
@PratimaShri
@PratimaShri 5 лет назад
Hey there, I am not sure if I understand your question correctly. When you say re-started , do you mean users being able to pause the flow or inside the flow builder itself?
@ThinkGreen1976
@ThinkGreen1976 5 лет назад
@@PratimaShri , Here is what i mean, I am not sure if i put it in a right way. - developer.salesforce.com/forums/?id=906F00000009AuyIAE
@LetsPlaySalesforce
@LetsPlaySalesforce 4 года назад
Great content, thank you!
@PratimaShri
@PratimaShri 4 года назад
So excited to see your comment! Thanks for stopping by. :) I learned a lot from your channel on Einstein.
@LetsPlaySalesforce
@LetsPlaySalesforce 4 года назад
@@PratimaShri When I'm not building analytics, I'm building flows. You've got a pretty solid amount of content, keep it up! I especially like seeing the pre-release sneak peek stuff.
@devendrapatadiya3292
@devendrapatadiya3292 3 года назад
Awesome video Pratima. Just wanted to know if we can rename the "Next" button in footer as "Finish" since it is a last screen for someone who is cloning oppo. Thanks anyways!
@PratimaShri
@PratimaShri 3 года назад
Thank you! I recently made on a video exactly on that topic- it should be popping up at the end of this video on how to change the button name using another simple lightning component. Unfortunately not possible in flow with a component
@mlemayil
@mlemayil 3 года назад
HI Pratima - I was pretty sure I did everything correctly - but my flow is still going back to initial screen. This is in a flow that creates a new lead and then I want it to go to the new lead record. I can send a screen print of the debug but it looks like it pulled the correct ID so not sure why it's not redirecting ) :
@mlemayil
@mlemayil 3 года назад
Nevermind - I just realized i Had to make it active and run in real time! THANKS SO MUCH. Maybe add that to the end of the VIDEO?
@PratimaShri
@PratimaShri 3 года назад
@@mlemayil Oh Yes! I am glad you figured it out! Good call, activating it is something I miss all the time. I will add that in this video description! Thank you!
@51madan
@51madan 3 года назад
Hi Prathima ,how to do it with the flow URL. After creating record I want to redirect it to the newly created record. I tried this solution but it is not working for me .
@PratimaShri
@PratimaShri 3 года назад
I’m not sure I understand the question, have you followed all the steps and created the component?
@51madan
@51madan 3 года назад
@@PratimaShri yes pratima, I created the component as showed in the vedio and created a new screen which is final screen and dragged that component in that.
@huguesraguet824
@huguesraguet824 4 года назад
Very helpfull, thx !!
@hemanthkumar0329
@hemanthkumar0329 4 года назад
Hey Prathima, Thanks for sharing a great video. I would like to know that can we use this for Custom objects?
@PratimaShri
@PratimaShri 4 года назад
Yes you can! Glad it was helpful.
@hereLiesThisTroper
@hereLiesThisTroper 4 года назад
Thank you for this tutorial, it was really helpful. I have a question though, can we do the same redirect for a different object? Suppose I am in Account and I want to create a Case using a flow. Is it possible to do a redirect from Account to Case with this approach? Thanks.
@PratimaShri
@PratimaShri 4 года назад
DeadTroperSociety Yes as long as you have the record Id of the case stored in flow, you can pass the case id. Glad it was helpful!
@hereLiesThisTroper
@hereLiesThisTroper 4 года назад
@@PratimaShri ok thank you!
@netovs
@netovs 4 года назад
How can I redirect my component to a page in my community?
@PratimaShri
@PratimaShri 4 года назад
where is the component embedded?
@netovs
@netovs 4 года назад
Pratima I have a community, I want redirect at the moment was finished the flow. Thanks a lot!!!
@PratimaShri
@PratimaShri 4 года назад
@@netovs Hi! Here is my email pratimashri320@gmail.com. I will need to look at what you are building.
@ronrocksall
@ronrocksall 5 лет назад
Also, can we add Cancel button in flow? like if user want to cancel record creation then I would like them to give this feature. Thanks in advance
@PratimaShri
@PratimaShri 4 года назад
It would be possible using a really simple lightning component. Sorry for delayed reply
@xtrafreeway4me
@xtrafreeway4me 2 года назад
Hello, i am wondering how to get this to work when sending it to edit page instead of the new record? Thanks
@PratimaShri
@PratimaShri 2 года назад
You would need to make some changes on the component then pass the ID of the record in on the component. Another potential option is you can use a creat a link to embed on the flow that can take then to the edit page.
@xtrafreeway4me
@xtrafreeway4me 2 года назад
What changes need to be made to the component? Also will it not work if the new record has required fields? Because I can't get it to go to the new record and I copied your code. Only difference is in the flow it has assignment element
@xtrafreeway4me
@xtrafreeway4me 2 года назад
I initially used the detail button embedding the flow but it opens a new window which I dont want but it works fine from there prepoppulating the required fields and opening a new edit window!
@sushantmandewar4203
@sushantmandewar4203 4 года назад
this video is a continuation of which video ? i wasn't able to find that can you please share that video link. and really great work pratima thanks a lot.
@PratimaShri
@PratimaShri 4 года назад
Here you go: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-zMPF12P_FN4.html Sorry didnt realize I never added the link the description.
@lewishowel1902
@lewishowel1902 4 года назад
Hi Pratima, is there a way to make this component work when a flow is launched from a custom URL button?
@PratimaShri
@PratimaShri 4 года назад
If you have a custoim URL then you might want to use redirectURL URL hack to pass the Id there, but it wont be as dynamic, Unfortunately, this only work if you are in lightning. Are you in lightning or classic?
@lewishowel1902
@lewishowel1902 4 года назад
@@PratimaShri Hi Pratima, thank you for the above. Yes I am in lightning, but I found that you can put the redirect URL within the action using the detail link merge field for the use case. Your component is working for all the other cases, so really helped me out :)
@mlemayil
@mlemayil 3 года назад
@@lewishowel1902 how did you do this?
@lewishowel1902
@lewishowel1902 3 года назад
@@mlemayil hi, it was a while back now, but I found out by chance online in the community. If I can remember what action I did it I'll share the code
@sushantmandewar4203
@sushantmandewar4203 4 года назад
Hi Pratima, can you please tell me how to redirect to the new record if we select the "use all values from a record" of the how to set the record fields. because it is not giving me the option to store the new record id in create record element. can you please help
@PratimaShri
@PratimaShri 4 года назад
Hi Sushant, Selecting that option wont allow you to pick Id directly. Any reason to use this vs the other option. The only way I can think of to pass the value to component is querying the newly created record by the logged in user and hopefully that gives you the Id of the record that was just created then you can use that Id to pass onto the component. This relies on the record gets created immediately.
@sushantmandewar4203
@sushantmandewar4203 4 года назад
Hi Pratima thanks for the quick reply what i am trying to achieve is deep Clone a custom object record through a quick action for that what i did is Parent Flow -> Start -- Get Records(store all values automatically) -- go to Subflow Sub Flow- >Start -- Assignment Element( to assign a value) passing the Id from the parent flow -- Create Record element (use all values from a record) This is working perfectly fine but i want it to redirect to the newly created record how can i query the new record id as you mentioned in your earlier comment ? sorry for asking long questions
@PratimaShri
@PratimaShri 4 года назад
@@sushantmandewar4203 The only good way to get the Id is individually setting the Id to a variabe like in the video. Assuming you are trying to grab the parent ID that was created, do you have a way to query tht record to get the Id of recentky created record? something unique? Since it is a screen flow, you cant use Wait element to wait for record creation. I might need to look at the flows to bounce some ideas.
@PratimaShri
@PratimaShri 4 года назад
@@sushantmandewar4203 Is there a reason you are using two flows vs one flow? Can you email me some screenshots? may be we can get on a qucik screenshare- might be easier that way.
@teja7703
@teja7703 4 года назад
I have similar requirement is when user click on next in a screen flow. I have to navigate new Account form Page without using Component. is this possible ? or can I use URL?
@PratimaShri
@PratimaShri 4 года назад
You could add a link on the last screen to direct them to a New Account form. Is that a static link?
@teja7703
@teja7703 4 года назад
@@PratimaShri YES, COULD U PLEASE TELL ME HOW TO DO THAT IN FLOWS
@SaiPrasad776
@SaiPrasad776 5 лет назад
Hey Pratima, great work and thanks for sharing all this.How to add lookup field in flow screen. I would need this to use in classic and user can enter the value in lookup field in that screen. Can you share any reference(doc/videos) where i can this.
@PratimaShri
@PratimaShri 5 лет назад
Hey there! Please Watch my winter 20 pre-release video. Lookup will be available OOB from winter 20. Right now there are other ways to do this like adding installing a lightning component package or having a dropdown of picklists for all the lookup values.
@hanumanthrao6950
@hanumanthrao6950 Год назад
can we call components for auto launched flow ?
@PratimaShri
@PratimaShri Год назад
Unfortunately you can’t not the screen components anyway
@rantadmor4824
@rantadmor4824 3 года назад
Hello Pratima, First of all thank you so much for the great video! I do not have the 'Store Output Values' option. Maybe you know why?
@PratimaShri
@PratimaShri 3 года назад
Hi Ran! Check if the variable that you created has accept output values checked. you should be able to navigate to the variable in edit mode and check this.
@carinaflesch1683
@carinaflesch1683 3 года назад
@@PratimaShri I have the same issue even though input and output are checked for my variable recordId, this is the same variable I use in the start of the flow- is that an issue?
@PratimaShri
@PratimaShri 3 года назад
@@carinaflesch1683 Hi! Are you trying to navigate to new record that got created or stay on the same page? If you are trying to navigate to new record then you will have to store in a new variable and pass that value to the flow. Not sure if this answrs your question
@mikeguido7068
@mikeguido7068 4 года назад
Hi Pratima, i created followed the create record flow but when i embed it to my community it does not create a record. how can i do this? thanks
@PratimaShri
@PratimaShri 4 года назад
Hi Mike, Are you getting any error or it just doesnt work? Also redirection will be a different approach for communities since the component is built for internal salesforce
@mikeguido7068
@mikeguido7068 4 года назад
@@PratimaShri its all good.. I watched your video a couple of times more.. And it worked like a charm.. Thank you so much and God bless you and all your loved ones .. M.G. from Philippines.
@PratimaShri
@PratimaShri 4 года назад
@@mikeguido7068 Awesome glad it worked out and thank you for stopping by and your kind words. Wish you the same :)
@MattSmith-yq3rr
@MattSmith-yq3rr 5 лет назад
hey Pratima, thanks for the great video, I have been looking everywhere for guidance on how to redirect to the created record! Can't get mine to work though, still getting the error you had on your previous page - "A record is ready to be created when the next Screen or Wait element is executed or when the interview finishes." Unfortunately my knowledge of APEX is non-existent :-( Any thoughts please?
@PratimaShri
@PratimaShri 5 лет назад
Hi Matt, The error looks like you clicked on Debug button. Did you create the variable for new record Id and assigned in the flow like I did? Please Watch the previous video where I built this flow and assigned a variable. In this video I am simply adding passing the var to the component. Dont forget to activate the flow and then use it in am action. Let me know how it goes.
@MattSmith-yq3rr
@MattSmith-yq3rr 5 лет назад
Hi @@PratimaShri, yes I watched both videos, my whole use case is nearly identical except I'm initiating the flow from a custom button, so they were both exceptionally helpful. Original flow I created worked to completion when my end screen merely displayed the URL of the new record. Now the same variable I used for the URL generation doesn't seem to work for the redirect? :-(
@PratimaShri
@PratimaShri 5 лет назад
@@MattSmith-yq3rr Hi @Matt I have a feeling the variable that you are using might not be the correct one. I will need to take a look at the flow. Its hard to tell what could have gone wrong. email me to pratimashri320@gmail.com then we can may be screen share.or use join.me
@mamamaria7027
@mamamaria7027 5 лет назад
I have same issue. Got the flow working from previous video so it is creating a new opp successfully. I did what is asked in the video above but it wont redirecr. Gives an error saying (the link doesnt exist). Also, how can i add the button to create a new opp within another button??
@PratimaShri
@PratimaShri 5 лет назад
@@mamamaria7027 DO you have domain enabled in your org? I am not sure what you mean by adding a button within a button. Basically Go to Object Manager for Opportunity. Create New Action and from drop down choose flow. YOu can name it anything you like. If you want me to further debug your org, reach out to me at pratimashri320@gmail.com
@RS-gc7ix
@RS-gc7ix 6 дней назад
isn't that an Aura component? not lightening
@PratimaShri
@PratimaShri 3 дня назад
@@RS-gc7ix yes aura component, at the time of recording this.. they were also called lightning component before LWCs were popular
@harishroyal1206
@harishroyal1206 5 лет назад
Hi Pratima, I need to redirect to another page through flows. can you help on this
@harishroyal1206
@harishroyal1206 5 лет назад
or I need redirect to another URL through Flows
@PratimaShri
@PratimaShri 5 лет назад
@@harishroyal1206 You will be able to do this by making some edit on the component itself. instesd of navigateToSobject, you can use navigateToURL.
@harishroyal1206
@harishroyal1206 5 лет назад
@@PratimaShri thank you for the reply If you have component for it can you please share because I don't have any idea on flows but i am started knowing about flows
Далее
Какой звук фальшивый?
00:32
Просмотров 184 тыс.
МАМА И КОММУНАЛКА
00:59
Просмотров 119 тыс.
Salesforce Lightning flow |  Flow Builder
1:09:51
Просмотров 128 тыс.
1E Flow Builder Tutorial - Screen Elements
32:18
Просмотров 29 тыс.
Platform Events Intro using Flows with Example
17:56
Flows: Loops and Assignment Elements Foundation
25:57
Salesforce Flow: Convert CSV files to Records
7:13
Просмотров 22 тыс.