Attachment through UI page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2019 09:54 PM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2019 09:56 PM
Hi
Please check the OOTB UI Page called attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2019 10:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2019 10:34 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2019 10:43 PM
Thanks for your answer. But I have got a requirement to do it in UI page.