Hi,
Here is what I have:
- A PowerPage website with Azure AD as default identity provider
- Almost all my pages are custom made and I am using API to access Dataverse rather than the forms/views already provided.
- Boolean fields in the contact table which will allow different users to access different records/sections on the website. Below are examples of those fields:
- IsSection1
- IsSection2
- IsSection3
What I am trying to achieve:
- I need to create the records in the contact table before the users logs in with their Microsoft Account, before they even access the website for the first time.
- I can then check which sections will be for which user.
The issue:
- The record is created in the contact table only when the user logs in with his Microsoft account for the first time.
I've tried to create the contact record with the same email beforehand. The system then gives and error the the user already exists.
The same applies if I try to use roles, there should be a contact record to assign the roles to.
Any idea how to resolve this?