Attachment type variable is showing only one Attachment in Record Producer

Balaraju K B
Tera Expert

Hi All,

I want to attach multiple attachments and I need to restrict the Maximum size to 100KB (Addition of all the attachment's size should be < 100KB if multiple attachments uploaded)

How can i achieve this?

@Ankur Bawiskar Any idea Ankur?

Thanks in Advance,

Bala

5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

Hi there,

For the new introduced Variable of type Attachment this is correct. In my opinion an annoying limitation 😞 Nothing you can do about this.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

As mentioned by Mark that's the limitation.

But you can restrict the size using max_file_size

Check docs for more help

Types of service catalog variables

Regards
Ankur

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

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Any follow-up needed? Or was my answer sufficient?
Let me know.

If your question is solved, please close the topic by marking my answer as correct. This will help others searching for a similar question and will remove the topic from the unsolved list.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Noel Allen
Tera Contributor

Hi All. Noob here so please excuse if I am using incorrect terminology. Sandiego patch7-08-17-2022.

I have a flow that I created where I need to copy multiple attachments from the RITM when it is submitted, then attach them to an email. then send out the email to an external address. I have most everything working but the email that is sent out only attaches one file from the RITM. Is there a way I can have it loop through and attach all?

 

Here are the flow settings:

NoelAllen_0-1667510744376.png

NoelAllen_1-1667511005175.png

As you can see, from the very basic level, it looks up the attachment in the sys_attachment table and attaches it to the email. It works but only one attachment. Is there a way I can look through all attachments and add each one to the email?

 

Any help would be greatly appreciated.