Attachment through UI page

Adheshwar2
Kilo Guru

Hi ,

            I am new to UI pages and know a little about jelly. I have to create a custom UI page where I need to upload a file as attachment(sys_attachment) and create a new record(custom table) on Submission. After submit I have to redirect and show the necessary fields in the record submitted.Is there a way to insert attachment through my UI page. How can I give target sys_id if record itself is not yet created. Also this is not for service catalog. Is there any way I can achieve this?

https://community.servicenow.com/community?id=community_question&sys_id=46711f2ddbdcdbc01dcaf3231f96...

4 REPLIES 4

Omkar Mone
Mega Sage

Hi 

Please check the OOTB UI Page called attachment.

 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

why not use record producer for this?

It gives you the capability to add attachment to the record producer form and also provide values to the field;

It also redirects to the new record and copies the attachment as well to the new record

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Thanks for your answer. But I have got a requirement to do it in UI page.