- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 12:02 PM - edited 08-25-2024 12:29 PM
I need to send approval to the group which is mentioned in the variable but if you can see first I am manually approving but the 2nd approval is automatically completing without asking for approval.
I tried with current.variables.tower also where without mentioning sys_id but no use. can I get any help over here?
even gs.log also not working?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 12:59 PM
Hi @KM SN ,
Please try the following:
- If you are developing a scoped application, try gs.info to log messages.
- The second approval is most likely "approving automatically" because script is not providing a valid Sys ID. If current.variables.tower is referencing the sys_user table, try using current.variables.tower.toString() instead.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 01:41 PM
Hi @KM SN ,
I believe syntactically, current.variables.tower is correct.
Possible scenario where the approval automatically is if there are no users in the group you selected.
Can you try once by hardcoding the sys_id of a group and check whether it is working.
If this information helps you, kindly mark it as Helpful.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 12:59 PM
Hi @KM SN ,
Please try the following:
- If you are developing a scoped application, try gs.info to log messages.
- The second approval is most likely "approving automatically" because script is not providing a valid Sys ID. If current.variables.tower is referencing the sys_user table, try using current.variables.tower.toString() instead.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 01:41 PM
Hi @KM SN ,
I believe syntactically, current.variables.tower is correct.
Possible scenario where the approval automatically is if there are no users in the group you selected.
Can you try once by hardcoding the sys_id of a group and check whether it is working.
If this information helps you, kindly mark it as Helpful.
Regards,
Najmuddin.