- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 04:30 AM
As per the workflow, the secondary approval will be triggered when the variable "Server Name" is mentioned in the RITM and will triggered the approval to owner of the CI or else the approval will be skipped.
But now the secondary approval activity is getting executed and triggering approval to a particular user even when the conditions are not met. It somehow fetching one of the CI and triggering the approval to that owner of the CI.
The server name is not mentioned in the RITM's but when the request is submitted and once the manager approves, it somehow triggering the approval to the owner of that particular CI. couldn't able to figure out how it's fetching that CI even the Server name is not mentioned in the request.
There is no changes in the workflow or workflow versions and also it is working fine in the lower environments.
Please let us know if there's a way to resolve this issue
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2025 01:08 AM
Hello @Tamilvanan T ,
Did you check if you have CI Relationships where the Child is empty? That would be the reason for the issue. As I mentioned before you would need to add a condition that skips the approval when the variable is empty.
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 04:41 AM
Hello @Tamilvanan T ,
Please provide a screen shot of the workflow activity that is triggering this Secondary Approval.
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 04:57 AM
how are you checking the variable value? share that script and also some screenshots
what debugging did you perform?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 06:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 06:24 AM - edited 04-02-2025 06:25 AM
Hello @Tamilvanan T ,
Your script is not checking if the "server_ci" variable is empty (not selected) and you seem to have CI Relationships where Child is empty, so the query will return one of these randomly and pull the owner from its parent.
So you will have to add a condition or code that first checks the "server_ci" variable and proceeds only if it is populated.
Regards,
Robert