I want to update a custom Boolean field to true using workflow or apex depending on LASTPASSWORDCHANGEDATE field in User record.
But I found that the field is not available in workflow. When I try to use this field in Process Builder it appear but the Process builder does not update the custom boolean field even though the LASTPASSWORDCHANGEDATE field changed successfully.
When I try to update the custom field using apex I found that the trigger.new and trigger.old value within the after update trigger give me the same value(old one).
When the LASTPASSWORDCHANGEDATE field updated via ‘Reset Password’ button does it fires any trigger on User record? Because it is not working for my case.
So could anyone help me how to do this.
2 réponses
@Preyanka : If the LASTPASSWORDCHANGEDATE is updated for sure the trigger will fire . Can you turn on the debug logs for the Process builder and check once ?