- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 06:55 AM
Hello,
I have taken over a custom application for a customer which processes a separate type of request. These are submitted via a record producer on the service portal. Since the previous approvals ran through a workflow which is no longer suitable for the new approval structure, I have created a subflow for approvals which I call from a UI macro.
On my developer instance (with the incident management) the subflow works flawlessly. Also, on the customer developer instance, the flow does not report any errors during execution. Nevertheless, created approvals are set by the system from requested status (from the subflow) to No longer required right after creation.
Would anyone have any idea how I can investigate the behaviour further?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2023 06:05 AM
For all who have the same problem. If in doubt, create a new request. In my case, the affected request was corrupted.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 08:06 AM
Is the previous workflow still active?
It appears that something is still creating that approval record before the subflow is able to process. It then finds that approval and marks it no longer required. Is the previous process still available in the customer developer instance? What are the differences with this process between it and the current environment with the issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 09:17 AM
Hello Aaron,
the previous workflow is still active and available. But it doesn't include logic to interact with the new approvals. It was replaced since the workflow was static logic for certain fields and stages. But the customer needed new fields for additional internal and external approvers. And since the customer requested to be able to change and restart the approvals while the request is being worked on, the ui-macro and subflow was created.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 10:05 AM
It would appear that there is a conflict between the old workflow and the macro and subflow. I would check the conditions that trigger the flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2023 10:22 AM
I did that already, and the Workflow only triggers on a specific state of the request. Do you know a way to check which components have interacted with the approval record?