Skip to content

User returnURL output from flow as returnURL #5

Description

@mdavidsonST

I'm don't know how to directly contribute to this project, but I made the below change to the URLFlowLauncherController.js file to allow the flow to specify the returnURL. My use case was to send the user to the contact my flow just created.
 
handleStatusChange: function (cmp, event, helper) { if (event.getParam('status') === "FINISHED") { var outputVariables = event.getParam("outputVariables"); var outputVar; for (var i = 0; i < outputVariables.length; i++) { outputVar = outputVariables[i]; if (outputVar.name === "returnURL" && outputVar.value != "" && outputVar.value != null) { cmp.set("v.returnURL", outputVar.value); } } helper.navigateToReturnUrl(cmp); } }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions