created a custom widget for uploading attachments , but I'm facing an issue while storing in backend

Praju_123
Tera Contributor

I have created a custom widget in ServiceNow for uploading attachments, which I’m displaying on a Record Producer. To do this, I created a custom variable type on the Record Producer and attached the widget to that variable. On the frontend, the attachment upload works correctly through the widget. However, I’m facing an issue with mapping the uploaded attachment to the sys_attachment table.

I’m also attaching a screenshot for reference.

Praju_123_1-1754571515939.png

 

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Praju_123 

share the complete widget code here

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Praju_123 

why are you not using the OOTB paper clip icon for adding files?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Praju_123 

check this blog for similar requirement and you can download the update set for free

Drag & Drop Attachments for Service Portal - FREE Widget 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Praju_123 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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