Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • James 23 posts 156 karma points
    Dec 15, 2023 @ 01:07
    James
    0

    Redirect to DPS in a WorkFlow

    I am trying to redirect the user to DPS for payment during a custom workflow.

    I have the code with no errors, but the redirect doesnt apply.

    Is this something that is possible or something that I will need to do on the client side?

    public override WorkflowExecutionStatus Execute(Record record, RecordEventArgs e)
    {
        /* various dps operations redacted */
        HttpContext.Current.Response.Redirect(returnUrl);
        return WorkflowExecutionStatus.Completed;
    }
    
  • James 23 posts 156 karma points
    Dec 15, 2023 @ 02:16
    James
    0

    I've come up with a solution to just store the redirect in a session variable and add middleware that will redirect the user.

    This works pretty well but would still like to hear other ideas.

Please Sign in or register to post replies

Write your reply to:

Draft