How insert attachments to a new record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2024 02:35 AM
Hi,
I added an attachment to an existing incident record. Now I want to add this attachment to a new incident form (before the new incident is created) using onLoad client script.
how can I achieve that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2024 02:45 AM
incident can only be attached for a record which has sysId
When new incident form is loaded it doesn't have sysId and hence this is not possible.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2024 03:00 AM
That’s not true, you do have a sysId before creating the incident @Ankur Bawiskar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2024 03:42 AM
what's the point in adding file to a record if user doesn't submit the new record?
Can you share the sysId which gets associated to the new record and how to get in onload client script?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2024 02:54 AM
Why before the new incident is created? If the incident isn't really created, you will have an attachment linked to nothing? Why not simply use a flow and the 'copy attachment' action?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark