The file is not attached to the RITM

kenneth_atb
Tera Contributor

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:

kenneth_atb_0-1724268917619.png

 

RITM without file:

kenneth_atb_1-1724269067941.png

 

Flow:

1) Get files from record (RITM)

kenneth_atb_2-1724269322521.png

 

2) Look up records

kenneth_atb_3-1724269374744.png

3) If there are files (Count of Get and Count of Look up > 0)

kenneth_atb_4-1724269489957.png

4) Update RITM (add comment with count of files and ID)

kenneth_atb_5-1724269532122.png

 

5) If there are no files (Count = 0)

kenneth_atb_6-1724269633509.png

6) For each file from Look up, 7) copy file

kenneth_atb_7-1724269670228.png

 

 

0 REPLIES 0