Thank you for posting this; it was helpful. I would like to point out a correction to the Invocable Variable section. The invocable method takes a List because Salesforce has the option to bulkify calls to this method to improve performance, as it does with triggers - It may combine calls from up to 200 independent flow executions into that input List and expect you to handle it. By running get(0) on line 1, you will ignore any requests. This will cause this example to intermittently not work for most callers when under load. If your invocable method needs to accept a collection from a single flow, it should take a List, again to allow bulkification of up to 200 calls.
Why we added the decision element? We have option in the first element to check when the flow is triggered...everytime record is updated or. Only at time when the particular mentioned field is updated
how can we provide multiple record to variable. if i am getting multiple record in GET RECORD element. I want to send them all to apex class at a time???
Hi Sir, What about related Emails. The flow working fine I'm getting Emails when ever Case is created ( Origin = Email && contactId=!null ) but the Email size is still it's showing Zero. Any solution for this?
Hi, Thanks a lot for the sessions, they are very helpful. I have a question, I have created a flow for auto-renewal, the flow takes Opp recordId and I need to pass it to LWC which then passes it to Apex method which has soql query to get list of Opportunity products of the Opportunity that entered the flow. Could you please advise how to acheive this? I need to display data table with Opportunity products along with Sales Price so that user can select them. Thanks in advance.
Hi, I did the same everting but I have received this error. Flow didn't accept my Invocable apex. "Remove this element from the flow, or move it to a scheduled path. A record-triggered flow can’t execute actions that make external callouts in a path that runs immediately."
Hi apex hours team while the account is set to in active why it deleted only 2 opportunities but not 4 of them which are available in account related list of opportunities
Thank You For this wonderful Flow Series .Thanks to the Entire Apex hours team.
Glad you enjoy it!
Thank you for posting this; it was helpful. I would like to point out a correction to the Invocable Variable section. The invocable method takes a List because Salesforce has the option to bulkify calls to this method to improve performance, as it does with triggers - It may combine calls from up to 200 independent flow executions into that input List and expect you to handle it. By running get(0) on line 1, you will ignore any requests. This will cause this example to intermittently not work for most callers when under load. If your invocable method needs to accept a collection from a single flow, it should take a List, again to allow bulkification of up to 200 calls.
yes, I had the same concern!
Thank You For this Amazing Flow Series. Kudos to the Entire Apex hours team. :)
Our pleasure!
Why we added the decision element? We have option in the first element to check when the flow is triggered...everytime record is updated or. Only at time when the particular mentioned field is updated
same thing i noticed. Decision was not needed
Thank you. This is what I needed to complete a task at work! :)
Glad it helped. Keep watching
Amit You are doing a splendid job.. Glad to know we both are Deloitte Alumnis.. Keep it Up
Thanks a ton
@@apexhours Can Invocable methods return value back to flow? i want to return a id and string back from the invocable method. Please help
Nice Explanation @Amit! I have a question. Is it possible to pass single record ID instead of list of Ids as Invocable method's parameter?
Yes, you can
@@apexhours Thanks Amit! It would be helpful if you post a video regarding this
Thank u so much for video its very helpful ,but could you please tell what causing issue to save email as activity .
Let me check
how can we provide multiple record to variable.
if i am getting multiple record in GET RECORD element.
I want to send them all to apex class at a time???
Hi Sir,
What about related Emails. The flow working fine I'm getting Emails when ever Case is created ( Origin = Email && contactId=!null ) but the Email size is still it's showing Zero.
Any solution for this?
Hi, Thanks a lot for the sessions, they are very helpful. I have a question, I have created a flow for auto-renewal, the flow takes Opp recordId and I need to pass it to LWC which then passes it to Apex method which has soql query to get list of Opportunity products of the Opportunity that entered the flow. Could you please advise how to acheive this? I need to display data table with Opportunity products along with Sales Price so that user can select them. Thanks in advance.
Hi Naga, I have kind of similar requirement. Are you able to resolve this? This would be really helpful
@@ayushkhanna1996 Hi, sorry for the delayed response. Have you found the solution?
Your demo of deleting the opportunities actually used Delete Record action, instead of Apex. Kind of failed the purpose somewhat.
Hi, I did the same everting but I have received this error. Flow didn't accept my Invocable apex. "Remove this element from the flow, or move it to a scheduled path. A record-triggered flow can’t execute actions that make external callouts in a path that runs immediately."
Sorry my bad, I found the problem :D I had a callout=true in my apex class. After remove it worked.
Glad you are able to fix it
Can we call flow inside for loop in apex
soon
Hi apex hours team while the account is set to in active why it deleted only 2 opportunities but not 4 of them which are available in account related list of opportunities
Because the condition was set to only delete "ClosedWon" opportunities.
*Inactive
?