
Hi everyone,
Hoping for some admin help please 😊
We have a Power Automate flow connected to Salesforce that mostly works, but we’re struggling with duplicate Teams notifications.
When an Opportunity is updated to Closed Won, the flow posts a message in Microsoft Teams saying “Well done”.
Because the Salesforce timestamps can be slightly out (sometimes by ~1 second), we’re comparing two datetime fields:
LastModifiedDateia_crm__Synced_With_Intacct_Date_1__c (Intacct sync datetime)To allow a small tolerance either side, we converted both datetimes to ticks and used the following logic:
Expression (ticks difference in seconds):
Conditions (AND):
-1010So effectively, we’re allowing a ±10 second window.
This works for the initial Closed Won update, but if someone edits the Opportunity later (even unrelated fields), the flow posts the “well done” message again.
We assumed the above time-window conditions would prevent repeat posts, but it still fires if the record is modified again.
What’s the best way to ensure the Teams message is posted only once per Opportunity?
Any suggestions on what to change/add (e.g., extra conditions, storing state, checking if the “Closed Won” change happened this time vs earlier) would be greatly appreciated.
Thanks in advance!