cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KimB
Level: Powered On

Deployment of web hook registration

Hi

 

we have a web hook registration launching an HTTP triggered flow in MS Power Automate. Web Hook registrations and the related steps (created via Plugin Registration tool) are being added into the solution. 

When we export the solution, we find back the web hook and steps in the customizations.xml.

 

However, the URL of the web hook registration refers to a URL in the dev environment. The querystring parameters don't seem to be part of this.

How can you properly deploy such types of Service Endpoints? How to make the Service Endpoint point to the right MS Flow environment/Flow endpoint.

 

Kind regards

 

Kim

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Deployment of web hook registration

Unfortunately there is not yet a good way to parameterise the plugin configuration data, so that it can automatically pick up environment-specific values.

For web hooks, your only real options are either changing the customization.xml, or writing a process to update the configuration data after import.

Or you could create a plugin that read data from a custom entity that stores the configuration values, and then makes a call to the service endpoint, though that's necessarily more development effort than using a web hook

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Deployment of web hook registration

Hi @KimB ,

Because a webhook is a kind of service endpoint you can also invoke it without registering a step with a plug-in or workflow activity in the same way you can for an Azure Service Bus endpoint. You need to provide the ServiceEndpointId to the IServiceEndpointNotificationService interface. See the following Azure Service Bus samples for more information:

I think maybe these docs may help you a lot:

https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/use-webhooks

https://docs.microsoft.com/en-us/sharepoint/dev/apis/webhooks/webhooks-reference-implementation

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted

Re: Deployment of web hook registration

Unfortunately there is not yet a good way to parameterise the plugin configuration data, so that it can automatically pick up environment-specific values.

For web hooks, your only real options are either changing the customization.xml, or writing a process to update the configuration data after import.

Or you could create a plugin that read data from a custom entity that stores the configuration values, and then makes a call to the service endpoint, though that's necessarily more development effort than using a web hook

View solution in original post

KimB
Level: Powered On

Re: Deployment of web hook registration

Thanks for the feedback!

 

This also confirms my own analysis on this topic. Since authvalue (query string params) are not part of the customizations.xml, and we want to keep things low code, I will check the option to update the values afterwards.

 

I have logged the idea Better support for Service Endpoint registation deployment so a better deployment option can be considered.

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,830)