web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested Answer

Trigger a flow when a user is added to a team in dataverse

(2) ShareShare
ReportReport
Posted on by 22

Hi,

 

I am trying to trigger a flow when a user is added to a dataverse team. The following many to many relationship is present between users and teams. I am then attempting to use the relationship table 'teammembership' in a 'when a row is added' dataverse trigger in my flow, however the flow never seems to trigger.

 

Jacob12348771_0-1715249449255.png

Jacob12348771_1-1715249642682.png

 

I have created another basic flow with a get row by id on a user record to test the association 'teammembership_association' shown below. I can see the teams the user is a part of being returned in the JSON response. The user in question below is a member of 3 teams. Is there any reason why this trigger is not working as I am expecting?

 

Jacob12348771_2-1715249859611.png

Jacob12348771_3-1715250100143.png

 

I have the same question (0)
  • Jacob12348771 Profile Picture
    22 on at
    Re: Trigger a flow when a user is added to a team in dataverse

    Hi, any ideas on how best I can solve this?

  • Tracye Profile Picture
    6 on at
    Re: Trigger a flow when a user is added to a team in dataverse

    Were you able to solve for this? I'm trying to do the same thing however the teammembership_association is a M:M relationship so it won't trigger the flow. 

  • Jacob12348771 Profile Picture
    22 on at
    Re: Trigger a flow when a user is added to a team in dataverse

    Hi, unfortunately I am yet to find a solution to this.

  • Sayan Profile Picture
    818 Super User 2025 Season 2 on at
    Re: Trigger a flow when a user is added to a team in dataverse

    Hey @Jacob12348771 

    Can you please delete the Trigger and Again reuse it.

    If the above solution does not work First Run the Process and While it is Running add user to DataVerse Team.

     

    Click on Test 

    Sayan_0-1721027947610.png

     

    After Test Click on Run Flow then Add user.

    Sayan_1-1721027954217.png

     

    ------------------------------------------------------------------------------------------------------------------------------

    If my suggestion helps you, please gives it a Thumbs up 👍 and Marks as a Solution ✔️. Which motivates to solve more problems.

    Thanks,

    Sayan Patra | RPA Developer.

  • Jacob12348771 Profile Picture
    22 on at
    Re: Trigger a flow when a user is added to a team in dataverse

    Hi, I have tried the above however unfortunately I am still not able to get the flow to run. Is this a limitation with using many to many relationship tables in the dataverse triggers? I have noticed that when searching for the table it does not appear in the dropdown list, I have to enter the table name as a custom value?

  • Sayan Profile Picture
    818 Super User 2025 Season 2 on at
    Re: Trigger a flow when a user is added to a team in dataverse

    Hey @Jacob12348771 

     

    if the table it does not appear in the dropdown list, please check the connection and create a new connection and use it.

     

    Thanks,

    Sayan Patra | RPA Developer

  • Jacob12348771 Profile Picture
    22 on at
    Re: Trigger a flow when a user is added to a team in dataverse

    Thank you for your quick reply.

     

    I do not believe this has to do with the connection. Although the table does not appear in the dropdown, saving the flow with the 'teammembership' table selected succeeds with the entity succesfully being retrieved. If for example I enter some random text in the table name, the flow does not save with an 'invalid entity' error appearing which I would expect. Therefore as me and @twilhelm seem to have found many to many relationship tables will not trigger the flow to run.

     

    Is there any other way you can see to trigger the flow when a dataverse user is added to a team?

  • Suggested answer
    Jelle de Haas Profile Picture
    42 on at
    Trigger a flow when a user is added to a team in dataverse
    Hey,
     
     
    I faced a similar challenge on a recent project where my flow didn’t trigger either. A Microsoft support engineer suggested using a webhook to trigger the cloud flow, which proved to be the correct solution.
     
    Steps to take:
    1. Create a cloud flow with trigger "When a HTTP request is received". Use a trigger condition:

      @equals(triggerBody()?['InputParameters'][2]?['value'], 'teammembership_association')
       
    2. Register a webhook using the Plugin Registration Tool, pointing to the cloud flow
      • Endpoint URL: the first part of the HTTP POST URL until the question mark that is generated by the flow trigger.
      • Create the properties 'api-version', 'sp', 'sv' and 'sig' and copy the values from the HTTP POST URL.
    1. Create a step for the webhook
      • Message: AssociateEntities
      • Stage of execution: PostOperation
    Bonus: if you want to trigger your flow on the removal of a user from a team, use the step message DisassociateEntities

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard