You need to sign in to do that
Don't have an account?
CRM_Pete
Need to reset a number field to zero on ALL contacts
I have a fairly complex Flow that updates a number field on all contact records, but first I need to zero out that field for ALL contacts.
Is there a bit of code I can run before running my flow?
I currently do it as a first step in my flow, but often enough I end up with lock errors.
I'm open to suggestions.
Thank you!
Is there a bit of code I can run before running my flow?
I currently do it as a first step in my flow, but often enough I end up with lock errors.
I'm open to suggestions.
Thank you!
try the below code in devconsole to reset all contacts number field to zero.
If this helps, Please mark it as best answer.
Thanks!!
All Answers
try the below code in devconsole to reset all contacts number field to zero.
If this helps, Please mark it as best answer.
Thanks!!
That's exactly what this amateur copy-paste developer needed! :)
For anyone (not technical enough) finding this handy little gem, the unfiltered update will fail if a single record fails a validation rule, and probably any other restriction added after data was created.