Copy the attachment from catalog item to SCTASK record when catalog item submitted from portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2024 07:42 PM
Use Case - When any request has been submitted from the portal with Attachment added, we need to add that attachment to the one of the SCTASK (RITM should have more than 1 SCTASKs) of that RITM. Also when the user attached the attachment after the request has been submitted, it also needs to be added over the same SCTASK.
How can i complete that requirement plz guide me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2024 07:50 PM
Hi @MayurChaudhari ,
you can write async business rule on requested item to add attachments to one of the sc task.
in business rule you can glide record to sys attachment table to get the all attachments and den insert record with reference of sc task record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2024 08:02 PM
Hello @Runjay Patel
Thanks for replying, can u guide me with the script please..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2024 07:53 PM
I would suggest avoiding copying attachments down to the children SC Tasks if possible - attachments can be quite large and you'll end up using up a lot of space. Instead, I'd recommend that you create a new relationship record that applies to your sc_task table and queries from your sys_attachment table, and then looks at parent.request_item to get the related attachment records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2024 08:04 PM
Hello @Nick Parsons
Thanks for replying, can u guide me how can make relationship record to complete the requirement.