- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 03:34 AM
I have a requirement to create a task if date field is empty. I have created an custom Action and it is returning true when date is empty which is correct but, when I called the same Action in the flow it is always returning false value which has to return true if Date value is Empty. How to get return value as "true" if date is empty and "false" if date field has some date.
Action Input Type is "Date"
Output variables Type: "True/False"
Action Output:--
Action script:--
Please help me out on this. Appreciated in advance.
Solved! Go to Solution.
- Labels:
-
flow designer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 06:09 AM
Can it be that the date retrieved from the record is null or undefined?
Add a check in Script.
(function execute(inputs, outputs) {
if (inputs.employment_start_date == null || inputs.employment_start_date == undefined inputs.employment_start_date == '') {
outputs.truefalse = true;
} else {
outputs.truefalse = false;
}
})(inputs, outputs);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 06:01 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 06:03 AM
The images aren't showing.
It's necessary to save the image to local pc and to "Insert Image" from local pc to show image.
My reply is executing the Action from a Flow and it's returning "true". There's something in the Action and Script that's being executed that is different from Action and Flow in my reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 06:24 AM
I did the same saved the screenshots in local pc and then uploaded

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 06:09 AM
Can it be that the date retrieved from the record is null or undefined?
Add a check in Script.
(function execute(inputs, outputs) {
if (inputs.employment_start_date == null || inputs.employment_start_date == undefined inputs.employment_start_date == '') {
outputs.truefalse = true;
} else {
outputs.truefalse = false;
}
})(inputs, outputs);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 06:58 AM
Thank you so much. this is working Finally