• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 92
  • Last Modified:

How to create webhook on microsoft dynamics CRM programmatically

Hi,
I opened the trial version of Microsoft Dynamics CRM and the url is https://flock.crm8.dynamics.com
I couldnt find here how do i create a webhook on this page.
Also i want to create a webhook programmatically.. So that i just hit a url providing the webhook and related configuration and it gets created.
The reason i want to do is create my custom Application which will be plugged into a chat app. And so users of CRM can create there custom Webhooks from inside the chat app and messages like any new activity will get delivered into their chat pane.

Please help me in finding out how do i create a webhook programmatically through java code into the dynamics CRM.
On their docs page https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/use-webhooks#register-a-webhook
They mention Use the Plug-in Registration tool to register a webhook. To get the Plug-in registration tool, see Download tools from NuGet.
Which anyways i dont need as i need to configure it through code..
Also I couldnt find this tool on the trial CRM version.. Dont know if i have to add something for it..

Thanks
0
Rohit Bajaj
Asked:
Rohit Bajaj
  • 3
1 Solution
 
Chinmay PatelEnterprise ArchitectCommented:
Hi Rohit,

Can you elaborate bit more on what exactly you are trying to achieve? When an activity is created in Dynamics it is posted to a Chat system?
 Is this limited to just activities? or there are other actions you want to incorporate? After a message is posted to chat what happens? Will users act on the messages coming from CRM or it is just a notification?

Regards,
Chinmay.
0
 
Rohit BajajAuthor Commented:
Yes it is posted to a chat System... Initially i would like to go with an activity and later on other
things also which are supported in the dynamics...No user cannot act with the messages ....
The initial version that i am trying to building is just posting the activity in chat and the user cannot interact with it..Its just a notification...
Later on i will think about moving to other things and interacting with it..
0
 
Chinmay PatelEnterprise ArchitectCommented:
There are couple of things you should keep in mind.

Implementing a solution in Dynamics is easy, implementing a RIGHT solution in Dynamics is hard. You will need Dynamics experience to get this right - especially in later on part. You will need deeper understanding of Dynamics if you want to expand upon it.

I am still thinking instead of programmatically registering a generic plugin, you develop a plugin that can post to your web-hook and register it using PluginRegistrationTool. This will give you more overall control of the entire integration. See https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/sample-azure-aware-custom-plugin

In case you still want to go ahead with registering a web-hook programmatically, first, have a look at a simple Plugin registration steps.
https://community.dynamics.com/crm/b/magnetismsolutionscrmblog/archive/2016/03/03/register-crm-2016-plugins-and-steps-programmatically

Now, instead of Plugin you will use ServiceEndpoint Entity (See https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/entities/serviceendpoint

Step registration will be the same as shown in Plugin Registration post - trust me it is going to be complex.

Regards,
Chinmay.
0
 
Chinmay PatelEnterprise ArchitectCommented:
Author has not responded to the question, if Author needs more information I am more than happy to help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now