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

Jaspal Singh
Mega Patron
Mega Patron

Bit confused. What is the issue here? Is the file not attached or is it duplicated?

If you want attachment to be shown on record no need to use Variable of type Attachment.

You can simply attach it to the RITM form before submission & it will automatically show up.

Mi1
Tera Contributor

Hi,

Thank you.

My requirement is just to have a file attached to a record. I don't use RITM. For a custom table, I want to attach a file to the record itself using Record Producer.

Regards,

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