Hi,
I have built a flow to check the "Approvals" action created by another flow and see if the approval task was reassigned.
But flow is not triggered even after the approval task is reassigned. Initially, when I didn't use the filter rows option, it worked whenever a new approval was created. However, after the 'Filter rows' addition the trigger is not working.
Any help on this is highly appreciated.
Thanks.
{"host": {"connectionReferenceName": "shared_commondataserviceforapps","operationId": "SubscribeWebhookTrigger"},"parameters": {"subscriptionRequest/message": 1,"subscriptionRequest/entityname": "msdyn_customerasset","subscriptionRequest/scope": 4,"subscriptionRequest/name": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}}
I have come across a similar issue with a custom table. Any time I have something in the "Filter rows", the flow registers an error with the trigger action. Something about a type initializer (I copied part of the error message below)? I was able to get around this by using the "old" version of trigger conditions in the Settings of the trigger.
Error message:
System.TypeInitializationException: The type initializer for 'Microsoft.Xrm.Sdk.Data.Mappings.TypeReflector`1' threw an exception. ---> System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) at Microsoft.Xrm.Sdk.Data.Mappings.TypeReflector`1.GetTypeProperties() at Microsoft.Xrm.Sdk.Data.Mappings.TypeReflector`1..cctor()
Pls try turning off-on the flow. Sometimes, the callbacks fail to register.
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Hi Manish,
Thank you for the solution. I changed the change type from "Added or Modified" to "Modified" but the flow still didn't trigger at all.
I ran another automated flow that includes 'approval', and then reassigned the approval to another user. However, nothing happened even after several minutes post reassignment.
As you have selected the change type as 'Added or Modified' so flow also triggers when a new request is raised with no reassignment. If you want to trigger the flow after reassignment then set the change type to 'Modified' as shown below:
msdyn_flow_approvalrequestidx_reassignedfromid ne '<none>'
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492