How to attach a file to a record created when you send at Record Producer

Mi1
Tera Contributor

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,

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Hi,

Thanks, I tried with BR's After Insert but it doesn't work, is there a mistake?

Regards,

Mi1
Tera Contributor

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,

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,

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader