function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pranav MarathePranav Marathe 

Create lightning action to update a record using flow

Hi,

We use the Lighting Experience and I have received a request from my users where they need a One-Click button on a Lead Page which will transfer the record ownership to a queue.

I am planning to create a lightning action which invokes a flow in the backend to change the owner.

I am stuck in designing the flow here. My flow is working when I try to run through debug mode where I am manually passing the Lead ID. But it's not working when clicking a button on the page.

Maybe the current record id is not correctly passed in my flow.

Can someone help here?
Best Answer chosen by Pranav Marathe
Pranav MarathePranav Marathe
Hi Khan,

This is solved. The real issue was - https://success.salesforce.com/answers?id=9063A000000t4EP

Regards,
Pranav

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Pranav,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_records_update.htm

https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_designer_elements_action_global.htm

https://automationchampion.com/2017/10/04/getting-started-with-visual-workflow-part-5-launch-a-flow-from-an-object-specific-action/#more-13995

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Pranav MarathePranav Marathe
Hi Khan,

This is solved. The real issue was - https://success.salesforce.com/answers?id=9063A000000t4EP

Regards,
Pranav
This was selected as the best answer