" answer = 'rejected' " is not working
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 03:56 AM
Hello,
I have created an Approval - User in a workflow.
In the sript, if the approver is empty, it should be rejected.
The comment is appear, but even so approved.
part of the script:
if (answer[1] == '')
{
current.comments = 'Nincs Company SM, ezért az igény elutasításra került.';
answer = 'rejected';
}
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 04:01 AM
In an Approval - User activity, answer is set to the sys_id of user(s) to approve. With what you are trying to do, use
activity.result == 'rejected';
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 04:22 AM
Unfortunately it still doesn't work. 😞