Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Add Multiple Attachment through Custom variable in Record Producer

Dinh Nguyen
Kilo Sage

Hello everyone,

I encountered the following problem:

Because Type Attachment only allows adding 1 file, I want to use widgets to attach multiple files and adjust the position on Record Producer's Layout arbitrarily.

=> So, i have created a variable in Record Producer with Type is "Custom with Label". I have used Widgets with the keyword "Attachment" but it doesn't seem to work. HR related Widgets also show errors.

Please help me.

Thank you so much.

 

Widgets that I tried:

DinhNguyen_1-1732503523099.png

Result when i use "HR Standard Ticket Attachments":

DinhNguyen_3-1732503848637.png

Result when i use other widget like "Standard Ticket Attachments":

DinhNguyen_4-1732503974334.png

1 ACCEPTED SOLUTION

Hi @Rampriya-S ,

Thank you for helping me and I apologize for the late response.

I found a solution with samples in this post: https://www.servicenow.com/community/developer-blog/drag-drop-attachments-for-service-portal-free-wi...

View solution in original post

2 REPLIES 2

Rampriya-S
Kilo Sage
Kilo Sage

Hi @Dinh Nguyen 

You can create a custom widget, add your attachments in the body HTML template, and link with your variable.

rampriya_S_0-1732505093104.png

If the solution helps, please mark it as helpful!

Best,
Rampriya S

Hi @Rampriya-S ,

Thank you for helping me and I apologize for the late response.

I found a solution with samples in this post: https://www.servicenow.com/community/developer-blog/drag-drop-attachments-for-service-portal-free-wi...