You need to sign in to do that
Don't have an account?
Update field when Lightning Component loads
Good Day Salesforce Developer Community.
I have a small custom component that we are using lightning:picklistpath. We are using it in a community to show the progress of a case (like a Domino's pizza tracker) I have created a custom picklist that holds the values I want to share with the customer and I have a process builder that fires to keep the new custom picklist updated with the correct value.
The issue I am having is that all of the prior cases that do not have a value in my new custom picklist do not display the correct stage in the picklistpath becuse there is no value yet. I know I can use dataloader to update the still open cases but that would adjust the last modified date and could have impact to reporting.
What I would like to do is when the Lightning component loads, go and update the custom picklist to the correct value. Is there fairly easy way to do this on initation of the component? I need it to do it without engaging validation and required fields. that could prevent me from saving the record.
Any help would be greatly appreciated.
This way, you can use the checkbox and the custom datetime field, if requried, to do reporting