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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Add/Remove WebRole from Contact with Power Automate

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I am currently trying to assign / unassign WebRoles to Contacts using Power Automate. Is there any way to achieve this? 

I tried using delete/create on adx_webrole_contactset, but deleting / creating is not supported. 

Relate/unrelate records on adx_webrole_contact did not work aswell. 


I would be very happy if someone could push me in the right direction.

I have the same question (0)
  • Suggested answer
    oliver.rodrigues Profile Picture
    4,052 on at

    I have never done that, but I'd say you can have a normal Workflow in CRM doing that, and then call the Workflow via Power Automate: alexanderdevelopment.net/.../

  • StefanBrending Profile Picture
    5 on at

    Hi Oliver,

    thanks for your reply. This would work, yes.

    However, we are currently trying to replace all our existing workflows with Power Automate. So I would like to avoid using a new workflow here.

  • Inogic Profile Picture
    703 on at

    Yes you can add or remove the web roles by using the Relate Records step and Unrelate Records step of the new CDS Connector (Current Environment). Please note:- To use this step your flow must be created from within a solution.


    In the Relate/unrelate records step you are required to set 4 properties.

    Entity Name - Select the entity that has N to 1 relationship with associate entity, in our case the contact.

    Item Id - Record id.

    Relationship - Select the relationship as mentioned below.
    URL - Full address of the associated entity record. It is nothing but the resource API address. https://organizationName.crm8.dynamics.com/api/data/v9.0/adx_webroles(844598bc-d0cb-410a-b2de-b6f2c4dbc487). You can get the same dynamically in web role record after retrieving it using CDS as mentioned in below screenshot.

    power_2D00_automate.jpg

    Hope this helps.

    Thanks!

  • StefanBrending Profile Picture
    5 on at

    Hi Roohi,

    thanks alot for your help. I actually made it work!

    My problem was, that i copied the URL from the browser. The GUID was not written in lowercase which caused the action to fail.

  • Suggested answer
    JR-20111916-0 Profile Picture
    2 on at
    Came across this and thought I'd update as of now in case anyone finds it.
    The relationship that you want to select in the PA task is Contact - powerpagecomponent_mspp_webrole_contact.
    John

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 72 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 29 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans