cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
majdid
Regular Visitor

Duplicate records on Slack

We have a flow that posts messages on Slack based on changed records from Salesforce

The condition is when a Salesforce opportunity record particular field called "stage" value is changed to "Closed won", the information is then processed by the flow to be posted on a particular Slack channel

The problem is that the same record will post on Slack multiple times afterwards, whenever it is changed (if the "stage" is equal to "Closed won")

 

Any idea how to avoid having the same records being posted more than once?

The two salesforce triggers available are "Record created" and "Records modified", and i understand that woulnd't be an issue if i am using "record created", but that wouldn't make sense because our sales cycle is quite lenghty and an opportunity might take months before getting closed won

3 REPLIES 3
v-yamao-msft
Community Support
Community Support

Hi majdid,

 

I assume that you only want to post message on Slack channer when the value of a filed called “Stage” is changed to “Closed won”.


If yes, you may consider to add a Condition after the trigger “When a record is modified” to check if the value of the “Stage” field is equal to “Closed won”.


If yes, post the message to Slack, if no, do nothing.


Please try it on your side.


Please take this doc for a reference:
https://flow.microsoft.com/en-us/documentation/add-a-condition/

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

That is exactly how it is setup right now, please have a look at the attached screenshot

 

The problem is that the record will be modified afterwards (other fields such as amount or close date or opportunity details...), so from that point onwards, everytime the record is changed, it will post another message on Slack

The issue is that on the Flow conditions, there is nothing like "Changed to" instead of "Equa to"

 

Any idea?

We tried solving this by adding a hidden field on the opportunity object in salesforce (true/false) and update that field when the stage is changed to closed won, however Flow doesn't have an action to only update a certain field in Salesforce, you have to enter the values for over 50 fields, which is neither practical nor possible

 

 

Hi majdid,

 

Thanks for updating.


But I am afraid that currently there is no workaround can be used for the issue you are having now.


I believe that the idea adding “Change to” in the Condition would be a good addition for Flow.


Please consider to submit an idea at Flow ideas Forum:
https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas


I will help collect and report your request on my side.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,758)