Skip to main content

I am creating a button to launch a flow and then return to the same page the launched the flow,  The flow  The flow works just fine , but the return URL is not getting created correctly.    
The Button:
 

The Text:
/flow/Skuid_Create_New_Quote?VAR_OppID={{Id}}&retURL=/apex/skuid__ui?page=quoteWizard&id={{Id}}

The end result for the retURL is https://kellex–skuid.na59.visual.force.com/apex/ui?page=quoteWizard   

I know the Flow is getting the value for {{Id}}  so the variable is working.   

It should return https://kellex–skuid.na59.visual.force.com/apex/ui?page=quoteWizard&id=006f400000EI4c0AAD in order to work

Any ideas?

Thanks!

Ambrose,


The return URL usually needs to be encoded.  Try wrapping your retURL with the urlEncode merge function ( {{#urlEncode}}{{/urlEncode}} ):


/flow/Skuid_Create_New_Quote?VAR_OppID={{Id}}&retURL={{#urlEncode}}/apex/skuid__ui?page=quoteWizard&id={{Id}}{{/urlEncode}}


Thanks,


Bill


Worked like a charm thanks!


Reply