You need to sign in to do that
Don't have an account?
Alexander Placidi
Lightning Quick Action Return URL
Hello,
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?
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?
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 (https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_force_navigateToURL.htm) 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,
Sandeep