I have a mobile App that has a custom action which will redirect to an external Web Page.
It was working a week ago. The customer was playing with creating their own customization, and mucked things up and asked our admin to restore a snapshot. When they did this, the customization that calls the external web site stopped working.
I cannot figure out why.
The call to the Redirect is:
// Everything is gathered up. Time to send it
var redirectException =
new PXRedirectToUrlException(fullURL,
PXBaseRedirectException.WindowMode.NewWindow,
"This is a Message, which gets ignored in this case", false);
throw redirectException; // call URL
This works when run from the browser. However, not from the mobile device.
In the Customization, this action is defined like this:
update screen FS300200
{
update container "AppointmentRecords"
{
add recordAction "ASGExtForms"
{
behavior = void
redirect = True
}
}
}
(Again… this used to work)
But now, when I login to the Mobile App, I am taken to this screen:

I select the three dots to get the action menu

Then I choose the DoorForms action which calls out the URL using the above code:

But instead of going to the DoorForms website, I am taken to the dashboard of the mobile app:

When I look at Trace, I see no errors. I only see some SELECTs executing to gather the appointment information, and a few refreshes of the screen listed. There are no errors or exceptions.
I can put a breakpoint on the exact PXRedirectToUrlException line in my source code, and when the Mobile app hits it, I get the break, and can confirm that teh url is exactly the same as it is when I run it from the web browser, but it works in the web browser, and not the Mobile app.
Everything seems to be running fine, but is (no longer) will open the web page like it used to.
I have tried every variation of PXBaseRedirectException.WindowMode, but always get the same result. (Although I am not sure if I need to refresh the mobile cache every time or not.)
I’m not sure how to even start debugging this right now.
Any suggestions are surely appreciated.