The CreatorCon Call for Content is officially open! Get started here.

Business rule for when an attachment is attached to the catalog item, when it is submitted, the attachment is attached to the user record

HenryD
Tera Guru

Hello, i am trying to add an attachment to the user record of a user when the attachment is attached, it will then update the user record with the attachment. would this be done in a BR? if so could you please provide an example or if someone has done something like this in the past, any help would be appreciated. 

1 ACCEPTED SOLUTION

palanikumar
Giga Sage
Giga Sage

You can use the Below script to copy attachment from catalog item to current logged in user

 

GlideSysAttachment.copy('sc_req_item', current.sys_id, 'sys_user', gs.getUserID());
Thank you,
Palani

View solution in original post

1 REPLY 1

palanikumar
Giga Sage
Giga Sage

You can use the Below script to copy attachment from catalog item to current logged in user

 

GlideSysAttachment.copy('sc_req_item', current.sys_id, 'sys_user', gs.getUserID());
Thank you,
Palani