Copy attachment from RITM to datasource using flow designer

Sharath807
Tera Contributor

Hi all, so i need to copy an attachment from RITM  created from catalog item to particular datasource. In case of workflow there is seperate 'run script' from core where we can just enter copy script. But how can we achieve this using flow designer.

1 ACCEPTED SOLUTION

Ubada Barmawar
Giga Guru

Hi @Sharath807 

 

In flow designer if you want to copy attachment to any other table using script, you can create a custom action (with any input variable if required). you can refer the example below.

UbadaBarmawar_0-1719312257663.png

 

please value the efforts of community members, if my answer helped then please mark this solution as helpful and accepted.

 

Regards,

Ubada Barmawar.

 

 

View solution in original post

4 REPLIES 4

Mark Manders
Mega Patron

You can just use the 'move attachment' action.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

@Mark Manders In 'move attachment'..Its asking for 'source Attachment Record [Attachment]' and Target record and table name etc...But in my case whatever excel attachment is submitted from a catalog item .. It should be send to RITM and on approval. It should be copied to datasource.
In workflow i just use this runscript but  how about in flow designer:

GlideSysAttachment.copy('sc_req_item', current.sys_id, 'sys_data_source', '0dbd1dcd97f6ce10c37bba86f053af9e');






Exactly as I said: use 'move attachment' action. You are providing the answer yourself (or you aren't explaining the issue you are having).

After approval of the RITM, you copy it to the datasource: source attachement record is the RITM and target record is the datasource.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Ubada Barmawar
Giga Guru

Hi @Sharath807 

 

In flow designer if you want to copy attachment to any other table using script, you can create a custom action (with any input variable if required). you can refer the example below.

UbadaBarmawar_0-1719312257663.png

 

please value the efforts of community members, if my answer helped then please mark this solution as helpful and accepted.

 

Regards,

Ubada Barmawar.