Hi Everyone, I am trying to create the search to u...
# general
a
Hi Everyone, I am trying to create the search to use with a mass update script to re-populate a field that was cleared. I was thinking I could easily use Maximum grouping on the sys notes date field but since the field was changed multiple times, New value is returning multiple results (i.e. Maximum grouping is not respected) . Any suggestions on how to create a search to only show the most recent change on a field based on system notes would be much appreciated.
g
Field was changed multiple times on the same date?
a
not on the same date so im not really sure why it isnt working either
g
Do you have criteria for the field in question?
Like when old value = whatever and new value = cleared
Or just new value = cleared.
a
so the value was cleared by the store value on the custom field being unchecked so the cleared value isnt record but the field is wiped
so the most recent new value would be the last value it had before it was cleared by unchecking the store value box
which is what i want to use the mass update to repopulate
only criteria in the search is the field in question (systemnotes.field is X)
g
Hmmm - lemme see if I can figure something out.
Maybe try a 'Maximum' Summary type on the "New Value" with a "When Ordered By Field" set to "System Notes: Date
a
great idea but no luck
g
Hmmmmm
😁 1
a
I was also thinking of sorting in ascnding order by date but i dont think the mass update works synchronously
g
What type of record is this field on?
a
contact
g
So weird that the when ordered by doesn't work...i was messing about on item records using that and it seemed to work.
a
hmm let me try ungrouping the date
haha ok so that worked
thank you so much!!
g
BOOM! Awesome!