RITM Attachment Sync After Submission

supriya pratapa
Tera Guru

We have a flow that is triggered when an RITM (Request Item) is created. This flow copies any attachments from the RITM to SharePoint upon submission. However, users may add attachments to the RITM even after it has been submitted. How can we modify the flow to also copy these attachments that are added post-submission

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@supriya pratapa 

make a flow trigger on Record insert on sys_attachment and condition as

Table Name = sc_req_item

Then in that flow handle the logic to push the file to sharepoint.

I will recommend creating a reusable subflow so that you can use that from this newly created flow and also from your earlier flow.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

In the trigger condition, I’m unable to limit execution to only my item because the RITM sys_id is stored as plain text, preventing me to retrieve the item name.

@supriya pratapa 

which trigger condition? the new flow you are saying?

In that you can use Lookup Record on RITM table and see the RITM belongs to which Catalog item

if it's yours then push file to Sharepoint

If not then end your flow

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@supriya pratapa 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader