Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

can i use a custom endpointUrl in webhook?

(0) ShareShare
ReportReport
Posted on by 15

we would like to switch from plugins to a webhook,but we created an object to contain the host url depending on the portal. in the register a webhook can i dynamically call that host url.

(I have not found much on how to set up a custom webhook, that may also be helpful..

  • Suggested answer
    Bipin D365 Profile Picture
    28,979 Moderator on at
    RE: can i use a custom endpointUrl in webhook?

    Hi,

    Dynamics CRM plugin has 2 minutes timeout limitation.

    Have you tried increasing the default timeout ?

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Renny99 Profile Picture
    15 on at
    RE: can i use a custom endpointUrl in webhook?

    Hi Bipin

    could you provide an example what you mean here:

    2. Use Power automate to post message to your endpoint when something happens in Dataverse

    i am doing number one currently. we were using webclient but getting a lot of these errors (The operation has timed out), so i have just switched to using httpclient hoping our clients will have less timeout errors (im a little confused why it happens for some of our clients and not all)

    Downloading the target URI: https://www.bing.com

    Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: The timeout elapsed while attempting to issue the request. ---> System.Net.WebException: The operation has timed out

     at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)

     at System.Net.WebClient.DownloadData(Uri address)

     at PowerApps.Samples.WebClientPlugin.Execute(IServiceProvider serviceProvider)

     --- End of inner exception stack trace ---

     at PowerApps.Samples.WebClientPlugin.Execute(IServiceProvider serviceProvider)

    docs.microsoft.com/.../web-access-plugin

  • Suggested answer
    Bipin D365 Profile Picture
    28,979 Moderator on at
    RE: can i use a custom endpointUrl in webhook?

    Hi,

    Webhook needs host URL to be specified during registration and can not be dynamic.

    You have two options though -

    1. Write you own code to post message to your service from plugin using httpclient

    2. Use Power automate to post message to your endpoint when something happens in Dataverse

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Nya Profile Picture
    29,060 on at
    RE: can i use a custom endpointUrl in webhook?

    Hi,

    Would you please specify which application you are using in Dynamics?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,336 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,025 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans