- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2024 01:37 AM
Hi,
I have the field 'Attachment Added' of type True/False. I need to mark this field as True, if attachment is added to the incident form.
How can I achieve that?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2024 01:49 AM
Hi Alon,
You could have a before insert business rule on the attachment table.
1. GlideRecord the incident table to query the incident number
2. While loop through the records to check if the worknotes contains "Attachment: " + current.file_name + " has been attached.";
3. set gr.attachment_added = true;
4. gr.update;
Let me know if this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2024 01:50 AM
Hello @Alon Grod ,
Please check out the below link which explains the possible ways to check if the attachment is attached on the form or not and based on that you can set your field.