There are criteria to determine authenticated users with enablement/ disablement of certain features on the website which I'm developing. I leveraged on Power Automate to determine those criteria, and automate the association of desired Web Role(s) with the corresponding Contact (Multiple Web Roles were predefined and associated with respective Web Pages accordingly). This was done well in the previous version, which was on Standard Data Model.
I just discovered this approach is no longer viable in Enhanced Data Model, since the N:N relationship between Web Role and Contact is no longer available/ visible. Tried to check this relationship schema through PowerApps, classic D365 customization, oData, all were no luck.
Manually assigning Web Role to Contact is definitely not acceptable by my client. Likely 2 ways to overcome:
Your suggestion? Many thanks...
I´ve got the same problem but on unrelating from the web role. Relating using the example above works fine.
Hi @ian_lim ,
It is still possible, but a bit more complicated. In short: Enhanced Data Model doesn't have separate tables for many things. Instead, it uses a table called Site Components that holds everything (from Web Role, Site Setting to Web Files). Then MS uses plugins and some magic to present those records as separate tables via Virtual Tables. So the Web Role that you see for the Enhanced Data Model (table name mspp_webrole) is actually just an abstraction on top of the Site Component table. So to associate your Web Role to the Contact you actually need to associate Site Component table. On the Contact table you have the Relationship called powerpagecomponent_mspp_webrole_contact. Use that relationship and odata id of the web role (mspp_webrole one) to associate the table (you can get Odata id if you get that web role via Get Row action or in next format https://<orgname>.crm.dynamics.com/api/data/v9.1/mspp_webroles(<guid>)).
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional