Copy multiple attachments from orderguie attachment variables to RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
I have 3 attachment variables in order guide, i wrote a below business rule to map those attachments to the RITM, but it is copying only one attachments other 2 are not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @Thanvik1 ,
Instead of if statement, use while statement to iterate multiple records
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
Thanks, GP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @Thanvik1 ,
Instead of
Can you please try with below line of code
var attachment = new GlideSysAttachment();
var copiedAttachments = attachment.copy('sourceTable', sourceSysID, 'targetTable',tagetSysId);
gs.info('Copied attachments: ' + copiedAttachments);
Please mark my answer correct and helpful if this works for you
Thanks and Regards,
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
32m ago
business rule is on which table? how the variables are shown on order guide?
share some screenshots.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
21m ago
