Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Add attachment from Task to Change

JDickson
Kilo Expert

Hi all,

 

Is it possible to take attachments added to a Change_task and put them on the Change record itself? One of our workflow steps is to create a task for creating an estimate, as part of this it requires an attachment and then can be closed. I want that attached estimate to be added to the Change record itself once the task has been closed so that the customer can see it.

 

Kind Regards,

John

1 ACCEPTED SOLUTION

dvp
Mega Sage

As your requirement is to copy attachment when the task is closed

Create a business rule on change_task with condition as state changes to closed

and use the following script

 

GlideSysAttachment.copy('change_task', current.sys_id, 'change_request', current.change_request);

View solution in original post

10 REPLIES 10

thank you 🙂