How can I add a record to a specified update set using script?

Community Alums
Not applicable

Hi team,

How can we add records to an update set which we specify using script?

I saw couple of community post related to GlideUpdateManager2() used for adding records to current update set. How can we add the same to a different update set ? 

I have the update set created by a REST Api call in the dev instance. I want to add a few artifacts which got created via BR after the REST call to the update set which created initially. How can I achieve this.

 

3 REPLIES 3

Sulabh Garg
Mega Sage
Mega Sage

Hello Arun,

You can take the reference from "Add to Update Set Utility" and once you installed the update set present on the provided link, you will get UI action "Add to Update Set" to add the records in an update set on click on the UI action.

After you installed this update set, there will be script include also installed "addToUpdateSetUtils" which you can use in your code to call the method "addToUpdateSet" inside script include.

Hope it helps.

 

Please Mark Correct/helpful, if applicable, Thanks!! 

Regards

Sulabh Garg

Please Mark Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg

@Arun B - Hope my answer helped you, Please mark the my response as correct & helpful so that this thread can be closed and others are benefitted by this.

Please Mark Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg

Nuno Oliveira
Mega Guru

Hi there,

 

Did you resolve the issue? Can you share your solution to that?

 

BR