How to populate an attachment variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 03:23 AM
Hi,
I have a record producer, where I have an attachment variable.
From an onLoad client script I am getting a png file from external source through REST API in a base64 format
Now the question is how to populate this file to the attachment variable?
I have gone through the GlideSysAttachment APIs but that attaches the attachment to a table record. How to populate the attachment directly to the variable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 07:21 AM
will the file be same always which you are fetching?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 12:58 AM
No it wont be the same file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @suvro ,
We have a similar requirement. Can you let me know if you found any solution for the thread.
Thanks