- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 05:43 AM
I am trying to check whether an attachment type field on the incident form is attached or not in Flow Designer.
I have used string, null, and blank functional conditions but none working. How to achieve this?
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 06:38 AM
You could try the following:
- On your attachment type field, apply an 'Is null?' transform
- Set the operator to 'is not'
- In the value field, type true
If there is no attachment, this transform with return true, otherwise it will return false. So you an play with these 2 values in your if condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2022 04:16 AM
Strange, it was working fine for me. Is it field that had an attachment earlier but got deleted? If yes, then it will not be null, because it still has the sys_id of the attachment (even if the file is not visible on the UI). You can verify in Show XML menu or via Xplore if the field is truly empty or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 06:38 AM
You could try the following:
- On your attachment type field, apply an 'Is null?' transform
- Set the operator to 'is not'
- In the value field, type true
If there is no attachment, this transform with return true, otherwise it will return false. So you an play with these 2 values in your if condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 07:07 AM
Hi
It is not working, even the attachment is there or not, the field value is considered as false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2022 04:16 AM
Strange, it was working fine for me. Is it field that had an attachment earlier but got deleted? If yes, then it will not be null, because it still has the sys_id of the attachment (even if the file is not visible on the UI). You can verify in Show XML menu or via Xplore if the field is truly empty or not.