We chose to create a power automate flow as this will provide us more flexibility. Now we tried to create an automated flow with trigger "when a row is modified or added" this worked fine, but won't apply to existing records in CRM. We need to update last activity date for all contact records.
Then we tried to create a scheduled flow- which worked for both new and existing as it updated for all records at the specified run time. The problem is we were using the respective modified on value of each contact record to fill its last activity date, but we found the modified on is getting updated with the flow run time and so the last activity date also becomes the run time. I tried capturing the initial value of modified on in a variable and then use that variable value to populate last activity date, however that worked temporarily only until a record is modified manually else the flow run time becomes the modified on value and hence the last activity date too.

Report
All responses (
Answers (