I'm working on an Appian application where I’ve built an email template that includes a 'View Details' button linking to a specific process instance. The link is generated correctly and points to the intended process instance. However, when I click the 'View Details' button from the email, I get the error: 'Cannot find the main Appian window. Reopen that window and launch the modeler from there.' Why is this happening, and how can I fix it so that the link works correctly from the email?"
Discussion posts and replies are publicly visible
This will not work, and there is no fix to it.
What are you trying to achieve, and for what purpose?
I want to send email to support team when an API call fails which will include a button as view details. When the button is clicked then the particular process instance should open.
The best you can hope to do is link the viewer user to the process instance as viewed in Monitoring. The URL for that is /suite/design/monitoring/[process id] -- from there, the user will need to click into the instance themselves (opening the modeler). Appian uses some back-end magic to "allow" the modeler to be opened only under certain conditions, that we have no control over (at least as far as i've found).
I suggest to use the error() function to stop the process and send out alerts according to the alert settings.
I will try , thanks