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
Agathi TsatsaniAgathi Tsatsani 

retURL parameter to a flow URL

Hello,
Once my flow is launched from one master object (Object1), it creates a new record for another child object (Object2). We need the user to be directed staright to the child record created when flow finishes.
Here is how my list button URL looks like: 

/flow/flow_name?varRecordId={!Record__c.Id}&retURL=https://xxxxx--partial.lightning.force.com/lightning/r/Record__c/a0A{!Record__c.Id}/view
and it's not working. This retURL navigates to 'https://mydomain/lightning/r/Record__c//view' which results in Page Not Found.

It seems like the record created is not updated. Any suggestions how this can be resolved and the user directed be navigated to the record created?
ShirishaShirisha (Salesforce Developers) 
Hi Agathi,

Greetings!

I don't think this can directly redirect to the newly created record without using any customization.

Please refer the sample component with the flow which will guide you on how to redirect once the flow finished.

https://automationchampion.com/2019/04/16/getting-started-with-lightning-flow-part-4-need-to-redirect-a-user-to-a-new-record/

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri