Wait For Condition on catalog variable in Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 07:42 AM
I have a Wait For Condition flow action that I want to wait until a checkbox variable is checked on the RITM. I am using a script to achieve this, but its not working.
its throwing this error:
Wait For Condition script:
var checkbox = fd_data.trigger.request_item.variables.send_confirmation_email;
if(checkbox == "true"){
return true;
}
else{
return false;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 10:44 PM
Hi John,
If my understanding is correct and 'send_verification_email' variable is a Boolean, then you need to update this line
if(checkbox == "true"){
in your script to
if(checkbox == true){
because double quotes means a string value and system is unable to compare boolean to string value.
Regards,
Ritesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 09:01 AM
I tried that but got the same result
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 08:55 AM
I tried that but its the same result
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 01:53 AM
Hello,
Any progress on this issue?
I to have same issue when I was trying to use "Wait for condition" script.