Attachment variable - copy to RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2022 01:03 AM
Hello,
I have an attachment variable on one of my items. I need attachment from this variable to be copied over to RITM header and I was able to achieve it by writing the Business Rule described in this thread: https://community.servicenow.com/community?id=community_question&sys_id=d9871e96db3db494904fa9fb139619a0
However, I'm facing an issue. Let's consider following scenario:
1. User attaches one attachment to the variable.
2. Next, user deletes this attachment.
3. User then attaches different attachment and submits the request.
What happens is, RITM header shows both attachments even though the first one was removed from the user. How can I only copy attachments to RITM that are actually attached to the variable and not all of them (so the ones that were attached and then removed)?
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2022 02:13 AM
Hello,
So the script which you are using will attach only that attachment( only one ) which is there in that variable before submitting the request, it may be a single or multiple.
Also once the attachment is removed and another attachment is submitted then the final attachment which is there in the variable will be copied to the RITM Attachment.
Through this variable only one attachment can be attached in the Service Catalog.
For more information please check out this link.
Please mark my response as helpful and correct if applicable.
thanks