Skip to content

Dynamics + Multisite issue #2724

@iamtompickering

Description

@iamtompickering

Describe the bug

I've got Microsoft Dynamics integration setup and seem to be having an issue with submissions failing to send over dynamics due to the callback URL not matching up.

We have a primary site and then 2 sister sites with the URL format as follows:

website.com/
website.com/manchester
website.com/newcastle

The redirect URI we've connected to dynamics with is https://website.com/formie/integrations/callback/

But when a form is submitted from one of the other sites, the trigger to send it over to dynamics fails with the following error:

API error: “invalid_client xxxxxxxxxxx: The redirect URI 'https://website.com/manchester/formie/integrations/callback/' specified in the request does not match the redirect URIs configured for the application 'xxxxxxxx-xxxxxx-xxxxx-xxxxx'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. 

Can you recommand a fix / workaround for this?

Steps to reproduce

  1. Connect to Dynamics
  2. Multisite

Form settings

  • Multi-page form: No
  • Submission Method: Page Reload

Craft CMS version

4.16.17

Plugin version

2.2.7

Multi-site?

Yes

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions