Return URL for a flow not returning the full URL

  • 1
  • Question
  • Updated 2 months ago
  • In Progress
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!
Photo of Ambrose Alward

Ambrose Alward

  • 300 Points 250 badge 2x thumb

Posted 2 months ago

  • 1
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
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
Photo of Ambrose Alward

Ambrose Alward

  • 300 Points 250 badge 2x thumb
Worked like a charm thanks!