Passing an attachment form service portal to the targeted record in Record Producer i.e. "Incident".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2023 09:59 AM
Usecase: We want to pass an attachment from the service portal to the targeted record in Record Producer i.e. "Incident" (refer below image).
1. For this we need to write one script in the "Record Producer" script section (refer below image).
2. Script: //for Attachment
GlideSysAttachment.copy("sc_cat_item_producer", current.parent, "incident", current.sys_id);
3. I have attached a screenshot in the OOTB Attachment Variable in the service portal (refer below image).
4. After submitting this above form the script will run and it'll pass the screenshot directly to the "Incident Work Notes" (refer below image).
If you found this article valuable please mark it as 👍Helpful.
Thank you,
Chinmay Batra