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
Alexander PlacidiAlexander Placidi 

Lightning Quick Action Return URL


In LE, I created an action in order to create an asset, which is related to an opportunity. The action button is located at the top right side in the opportunity detail view. The action works very well, but it stays on the opportunity. Is it possible to customize the return URL, so that it redirects the user to the created asset?
Sandeep WaliaSandeep Walia
Hi Alexander,

I am guessing that you are creating the asset using an apex controller. If that is the case you canreturn the id of the asset inserted and use force:navigateToURL action to redirect to the asset page.

This link ( describes it's use and has and also has an example. You would just have to set the url parameter as -  '/' + 'id of the asset inserted'.

Hope this helps,