The file is not attached to the RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2024 12:52 PM
Hello Community!
Previously I have asked about this issue but now I have done more tests and I wonder if anyone can help me with this case.
I have a catalog item that is required to attach a file, the issue is that when the request is submited it is not shown in the RITM.
Some points to consider:
- The item is in a different catalog than the default "Service Catalog"
- The option to upload a file is the default from Portal and is Mandatory
- The file is saved on the sys_attachment table but is not visible/uploaded on the RITM
As you can notice, the strange thing is that even when the file is mandatory, it is uploaded to the table but not to the RITM
I have tried this solution https://www.servicenow.com/community/developer-articles/copy-attachments-from-source-to-target-recor...
But I added a condition that validates if there is already a file on the RITM so it does not get duplicated. It only returns that it is uploaded on the table but not in the RITM
Thank you in advance for any suggestions to troubleshooting this problem.
sys_attachment:
RITM without file:
Flow:
1) Get files from record (RITM)
2) Look up records
3) If there are files (Count of Get and Count of Look up > 0)
4) Update RITM (add comment with count of files and ID)
5) If there are no files (Count = 0)
6) For each file from Look up, 7) copy file