Skip to main content
Nintex Community Menu Bar
Question

Go To URL Refreshes Screen

  • July 11, 2024
  • 7 replies
  • 45 views

Forum|alt.badge.img+2

I have a button which performs a run Apex action (custom invocable method). The method runs successfully and returns a URL as an output parameter. I can access this parameter as {{$PreviousAction.result.url}}. I can display this result in a modal as the next action on my button.

However, when I try to use this as the target for a Go To URL, the page refreshes but does not redirect me. When I hard-code the URL (for debugging), it successfully redirects, so I don’t think it’s a security issue.

I can’t find any errors in the console or debug logs and am stymied as to why it won’t redirect to the URL from the parameter.

Any ideas?

7 replies

Forum|alt.badge.img+2

For context, the apex method creates a Stripe Checkout session using Stripe’s API. It returns a unique URL for the session and I need to redirect the user there to enter their payment information. When it’s done, it will redirect the user back to the site.

My goal is to embed this in a Community/Experience, but I am running this as a regular user to eliminate variables in why it’s not working.


Forum|alt.badge.img+17
yoni:

{{$PreviousAction.result.url}}

Try three brackets

{{{$PreviousAction.result.url}}}


Forum|alt.badge.img+2

I tried with both double and triple


Forum|alt.badge.img+17
  • Nintex Employee
  • July 12, 2024

There may be a bug here - and I’ll try to explore that.

But you might be able to pass the previous action result URL into a UI Only field as part of the action sequence that runs Apex, and then merge the Field value into your button action.


Forum|alt.badge.img+20

Ever get this to work? As expected or a workaround?


Forum|alt.badge.img+2

I got it working with javascript window.location. I could not get it to work with the action framework.


Forum|alt.badge.img+20

Do you have an XML page I can tinker with? Love figuring out stuff.