A form picker and rendering component for forms managed within a Microsoft Dynamics 365 Marketing instance.
The package uses the 0Auth protocol for authentication; connect to your Dynamics 365 instance by adding the following settings to `Web.config`:
<add key="Umbraco.Cms.Integrations.Crm.Dynamics.HostUrl" value="https://[INSTANCE]/api.crm4.dynamics.com/" />
<add key="Umbraco.Cms.Integrations.Crm.Dynamics.ApiPath" value="api/data/v9.2/" />
To use the form picker, a new data type should be created based on the Dynamics Form Picker property editor.
The Connect button prompts the user with the Microsoft authorization window, which after a successful authentication will send the authorization code back. The retrieved access token will be saved in the database and used for future requests.
Revoke action will remove the access token from the database and the authorization process will need to be repeated.
A strongly typed model will be generated by the property value converter, and an HTML helper is available to easily render the form on the front-end.
Ensure your template has a reference to the following using statement:
And render the form using (assuming a property based on the created data type, with alias dynamicsForm has been created):
The selected form is embedded either through an iframe or using JS scripts.
1.0.0 (September 13th 2022)