- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2021 11:59 AM
Hello,
I noticed that a record that was associated to a workflow was deleted some time ago. I can easily create the record again but it generates a new Sys iD. This record is tied to a catalog item workflow to process that used the records previous Sys ID. Instead of replacing the sys ID with the new one in the workflow's script, can I just simply use the previous Sys ID I get from my Dev instance and replace it with the new one in Prod? If so, how do I go about it or if this is something I cannot do or is suggested, whats the best course of action to update the Sys ID with a new one in a workflow's script? Just replace it with the new one?
Thank you!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2021 02:50 PM
Did you get a chance to review my response.
If my answer helped you, kindly mark it as correct and close this thread.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2021 12:30 PM
Hi Harshvardhan,
But dont you think undeleting record is better way of doing it than running script to generate same sys_id?
Thank you
Prasad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2021 12:31 PM
It depends on use case. I don't find any issue if use case is valid.
I provided options. it all depends on user use case.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2021 12:34 PM
Ok Got it 🙂 Thank you Pro.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2021 12:06 PM
No You have to update it with the new sys_id.
Regards,
Alok Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2021 12:09 PM
You can use the setNewGuidValue method to generate the record with same sys_id.