Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

can i use a custom endpointUrl in webhook?

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
    Bipin D365 28,964 Super User 2024 Season 1 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
    Renny99 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
    Bipin D365 28,964 Super User 2024 Season 1 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
    Nya 29,056 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans