Basically, I have a date field that when it is updated (onChange event) automatically populates two other fields: one field is the month and the other is the year. I'm doing this with JS in a web resource since it requires taking the date field and using .getMonth() and .getFullYear() methods.
This works fine on new records, but I need to update old records and going into each one, updating the date, isn't really an option. Thus, I'm trying to make an on-demand workflow that I can select the records in a view and run the workflow on just those.
I'm not quite sure how to setup the workflow though.
- Create Process
- Category = Workflow; Entity = the entity I'm working with; Type = New blank process
- Check "As an on-demand process"
- Start when = "Record fields change"
- Select the field to look for changes on ("Date Proposal Sent")
- Add Step > Update Record > Set properties
From there I am kind of lost as to how to set the field to its current value. Also, now that I'm thinking about it, this might not trigger an onChange() event since I guess it isn't technically changing.
Should be handling this a different way? If not, how do I continue to set this up?
*This post is locked for comments