Get changed attribute old value
Hi
I have a workflow that starts when an attribute of an asset is changed. But I also need the old value of the attribute.
Is there any way to get that?
Thanks
narehtarasyan
Posted 3 years ago · Edited 1 year ago·Last reply 3 years ago
3 comments
narehtarasyan
OP3 years ago · EditedHi @harryhazelwood.kubrickgroup.com
Thanks a lot, Your replies really help
harryhazelwood
·3 years ago · Edited@nareh.tarasyan Wrote up some quick code that may help - you would have this workflow start with a trigger of “An attribute of a asset was changed.”.
I’ve written it very explicitly to follow the steps above. You can condense it as needed.
harryhazelwood
·3 years ago · EditedHi @nareh.tarasyan ,
Using the Activities APIs you can check what the previous value was:
Upon your workflow triggering I would suggest the following steps:
Cheers,
Harry