Skip to content

Finish URL

When a user completes the embedded Screen Flow, you can send them to a thank-you page or next step.

Use endUrl (camelCase) on the FlowIframeEmbed iframe URL:

https://your-site.force.com/site-prefix/FlowIframeEmbed?flow=Check_In_Dispatch&endUrl=https://yoursite.com/thanks

Legacy integrations used endurl (lowercase). FlowIframeEmbed only recognizes endUrl.

  1. Flow runs inside iframe on your Salesforce Site.
  2. When Lightning reports FINISHED, Visualforce sets window.parent.location.href to endUrl.
  3. Entire parent tab/window navigates (not just iframe).

If endUrl is omitted, parent page stays on current URL.

window.tlFlowEmbed = {
embedUrl: 'https://your-site.force.com/site-prefix/FlowIframeEmbed',
flow: 'Check_In_Dispatch',
endUrl: 'https://yoursite.com/thanks'
};

The widget adds endUrl to iframe query string automatically.

  • Use absolute https:// URL.
  • Confirm flow actually reaches FINISHED (not paused/faulted).
  • For demos, see /iframe-finish-demo.