umbraco / Umbraco.Cms.Integrations

MIT License
31 stars 20 forks source link

Dynamics 365 - No Forms Showing in Form Picker #176

Closed ben-umble closed 3 months ago

ben-umble commented 3 months ago

Hi,

I'm having trouble getting Dynamics 365 forms to show up in my form picker.

  1. I've double and triple-checked the HostUrl and ApiPath which are correct.
  2. I'm able to authenticate
  3. I've checked that the domains are verified
  4. I've checked that external form embedding is enabled for the relevant domains

The image belows shows successful connection (hence the Revoke button being enabled).

image

This image shows the request returning a 200:

image

And finally the response:

image

From the Dynamics side, you can see the form I'm trying to embed:

image

I can't see any other settings or configuration that I'm missing - what am I doing wrong here?

Thanks,

Ben

ben-umble commented 3 months ago

A small update:

I've done some digging and tried getting forms directly from Dynamics365 which returns nothing, but I can get the forms from a different endpoint.

It looks like this plugin uses: {hostUrl}/api/data/v9.2/msdyncrm_marketingforms which doesn't return forms but a different endpoint I found does {hostUrl}/api/data/v9.2/msdynmkt_marketingforms.

I suspect this is my lack of Dynamics 365 knowledge, I'm not sure how these forms vary but the client does need these embedding on the website.

So at this point, perhaps just some dialog on whether it's possible to support these other types of forms.

acoumb commented 3 months ago

Hi @ben-umble ,

Indeed, Microsoft moved in July 2023 from outbound marketing to real-time, causing the previous API path msdyncrm_marketingforms to not return the proper forms.

I am working on an update to address this situation, and I will let you know as soon as the new version of Dynamics is released.

Regards, Adrian

acoumb commented 3 months ago

Hi @ben-umble ,

I have released a new version of the Dynamics integration - 1.3.3 with support for Real-Time forms.

Please make sure your Dynamics forms are published, as described here by Microsoft.

Thank you for bringing this to our attention, Adrian