Get attachment sys_id before submitting catalog item form in service portal

Gintarelissss98
Tera Contributor

Whenever I upload an attachment in the service catalog on the portal, new entrie is created in the 'sys_attachment' table with the table name "sys_cart_item," and a unique ID is stored in the 'table_sys_id' table. I need to read this 'table_sys_id' when an attachment is uploaded before the submission of the request. How can I accomplish this in an sp_widget? I was implementing this solution Re: How-to Parse Excel Data into a MRVS? - ServiceNow Community, but I cannot get the 'table_sys_id' that I will need to pass to the script include function. Thank you.

 

1 ACCEPTED SOLUTION

Abbas_5
Tera Sage
Tera Sage

Hello @Gintarelissss98 ,
Please refer to the below link:
https://www.servicenow.com/community/csm-forum/get-attachment-sys-id-before-catalog-item-is-submitte...

 

If it is helpful, mark it as a thumbs-up and accept the correct solution.
Thanks & Regards,
Abbas Shaik

View solution in original post

1 REPLY 1

Abbas_5
Tera Sage
Tera Sage

Hello @Gintarelissss98 ,
Please refer to the below link:
https://www.servicenow.com/community/csm-forum/get-attachment-sys-id-before-catalog-item-is-submitte...

 

If it is helpful, mark it as a thumbs-up and accept the correct solution.
Thanks & Regards,
Abbas Shaik