Forum Discussion
Wrong auto post message in Teams using power automate when 2 items are added at the same time
It seems that it's because of Concurrency Control setting in your Power Automate. If this settings is enabled then only one instance will run for multiple items if those are added in same times. And that is the reason why you are seeing foreach loop automatically added by Power Automate when you use any field values from items because single instance will run for multiple changes.
You can disable it by following below steps
- Go to settings of your first action which is for trigger
- Disable Concurrency Control (Important: You may need to adjust your Power Automate once you do this change specially when you are using current item field values because now it will not return as collection and you don't need loop over there.
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community
- kalpeshvaghelaAug 30, 2022Steel Contributor
Could you check same setting in Apply for each action as well?
Could you share little about your list structure and trigger of the flow? because from your screen shot I am seeing second action as Get Items so here are you querying to same list where Power Automate is triggered or you are querying to other list?
- jchandra1Aug 31, 2022Copper Contributor