How to script in a Wait for Condition in a FLOW
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2023 01:25 AM
i tried this
if(fd_data._4__create_task.record.work_notes.changes() && (fd_data._4__create_task.record.sys_updated_by == fd_data._4__create_task.record.opened_for.name)){
return true;
}else{
return false;
}
but get this error:
should i use answer instead of return?
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 11:39 PM
Did you got the solution please?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 12:00 AM
Hi, not really, i update ACL.
User is only able to change the Work Note.
So i checked if updated by was a User or an admin with the data pill and not the script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 01:04 AM - edited 04-03-2024 01:05 AM
Hi @Meloper ,
Try :
(function() {
if (fd_data._4__create_task.record.work_notes.changes() && fd_data._4__create_task.record.sys_updated_by == fd_data._4__create_task.record.opened_for.name) {
return true;
} else {
return false;
}
})();
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....