How to upload an attachment to the sys_attachment table through the portal.

Reddy
Kilo Sage

Hello,

 

I'm trying to upload an image using the upload button. Once the file is uploaded and I click update, the file should go and be uploaded into the sys_attachment table. How can I achieve this? 

Reddy_0-1741040021131.png

 

 



1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Reddy 

attachments are always stored on some record or attachment field and not directly in sys_attachment

where should it be stored? that's your business requirement and check with customer for this.

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

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Reddy 

attachments are always stored on some record or attachment field and not directly in sys_attachment

where should it be stored? that's your business requirement and check with customer for this.

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

@Reddy 

Thank you for marking my response as helpful.

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

@Reddy 

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