- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2022 01:53 AM
Hi,
I just want to attach a file to a record.
How can I attach it? Currently, only Apps posts attachments.
I set variables in the Record Producer with the type of Attachment.
Map to Field is not set.
※ Because for some reason the file is duplicated and registered
Best Regards,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2022 02:08 AM
Hi,
So file attached to that Attachment variable should get attached to the target record generated from record producer?
if yes then it won't happen automatically
you will have to script it
I have shared solution for this a year ago; enhance as per your requirement
Disable ZZ_YY prefix from attachment when added through record producer
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2022 03:49 AM
Hi,
Thanks, I tried with BR's After Insert but it doesn't work, is there a mistake?
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2022 05:18 AM
Hi,
I was able to confirm the operation by changing L10 to copyAttachment.
But,There are two attachments to the View Activities.
In fact only one is attached.
How can I make one attachment without duplication?
Best Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2022 05:33 AM
Hi,
I realized, but it looks like I have two duplicate files attached to the Activity, even though I'm only attaching 1 to my own side.
Is there a way to avoid this duplicate registration?
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2022 07:33 AM
Hi,
The solution I shared works fine and doesn't add duplicate.
Please check any other script is doing the same thing.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader