Attachment Content Validation in Record Producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi Everyone,
I have a requirement where Attachment content need to be validated according to the defined template before submitting a Record Producer. How I can achieve this?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @surbhibarnw
If you want to validate attachment name, content type - it is easy BUT for content ,
In the script, you can explore to use GlideSysAttachmentInputStream (Refer:https://www.servicenow.com/docs/r/zurich/api-reference/rest-api-explorer/r_ScriptedRESTExampleStream...)
to read the attached file's stream, parse the rows/content, and validate against your defined template structure
Refer:
https://www.servicenow.com/community/itsm-forum/validate-attachments-on-a-record-producer/m-p/704244
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti