Retroactively updating a custom field for previously created assets using script #15762
Unanswered
Dolanap-sd
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @Dolanap-sd - thanks for reaching out. I'm not sure how updating the values for a custom field would be any different than a normal PATCH/PUT request. Can you clarify that for us so we can better direct you? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
I am currently tackling the challenge of adding a custom field, "Last Serviced Date," to all previously deployed assets in my org.
I have been researching how best to do this and wanted to get feedback/insight from some brilliant minds at the SnipeIT Github.
My initial thoughts were to create a script that called all the Assets of a particular type and stored the data surrounding those devices as a JSON value. The script would then reference the assets' creation date and use that to update the Last Serviced Date with a .patch command.
I've encountered many errors when going this route, and I wanted to see if someone has any advice or experience doing something like this.
Look forward to hearing back from you all!
Beta Was this translation helpful? Give feedback.
All reactions