web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

What is use of Service Endpoint given in Solution in MS Dynamics 365?

(0) ShareShare
ReportReport
Posted on by

Hi,

There is a "Service Endpoint" tab in Solution. Can anybody please suggest what is use of it?

Actually, I have my own RESTful API which is hosted on azure. This API uses to transfer data operation from MS Dynamics to Mobile and visa versa. I want to add that API into solution(same as Sugar CRM and Salesforce CRM).

Is it possible to add my own service endpoint(using DLL of Visual Studio Project)? If not possible, can anybody please suggest what is use of "Service Endpoint" in my solution?

Please guide. (I am not sure if I have asked this question previously)

3857.Service-EndPoint.png

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at

    Hello,

    Service Endpoints are used to post the CRM Execution Context traditionally to an Azure Service Bus - please see docs.microsoft.com/.../mt703169(v%3dcrm.8). You can register a service endpoint using the Azure Service Bus

    To be honest I've never tried to configure it with a different endpoint - personally I don't even know if that is possible. I think it should, based on the documentation at least: docs.microsoft.com/.../serviceendpoint - there is no specific mentioning that this would work only with an Azure Service Bus. I see that you are allowed several different configuration options.

    However if that's not possible, to meet your scenario you can configure a Service Endpoint with n Azure Service Bus and post the execution context to a Queue. From there you can have an Azure WebJob that reads the context and processes the data further (maybe sending it to your REST API) - see docs.microsoft.com/.../write-listener-application-azure-solution

    Hope this helps,

    Radu

  • Community Member Profile Picture
    on at

    Hi Radu Chiribelea,

    As per my understanding, this is one way process which send CRM context to Azure Service. If it is so, it will not help to achieve my scenario. As I said in question, I have my own RESTful API which is hosted on azure(https://xxxxx..azurewebsites.net/service1.svc). This API uses to transfer data operation from MS Dynamics to Mobile and visa versa.

    As this is hosted on my Azure server, it is quite hard to convince buyers to keep faith on service which is hosted on my server(third party). So, I was thinking to find way to add my service(https://xxxxx..azurewebsites.net/service1.svc) within the Managed package using solution. So, service can be pass within package and buyer can access service using their own CRM instance(i.e xxx.crm.dynamics.com/mytservice1.svc) rather using service which is hosted on my server(third party)

    This is possible in Sugar, Suite and Salesforce. I thought there must be way in MS Dynamics to manage this as MS Dynamics is quite secure and users are always believe in security.

    Please guide if you have any suggestion for me.

    Thank you.

  • Verified answer
    Radu Chiribelea Profile Picture
    6,667 on at

    Hello,

    I'm not yet sure that i understood your question properly. You want CRM to host your service? If that's the case then this is not possible.

    If you want to call your on web service from CRM, you could create your own plug-in which calls the .NET HtppClient class to your WebService - docs.microsoft.com/.../system.net.http.httpclient - this would be from CRM to your Web Service (this is basically how the Service Endpoint Data Post works)

    The WebService could send data to CRM via the CRM Web Services  (Organization.svc or WEB API): docs.microsoft.com/.../use-microsoft-dynamics-365-web-services

    If this is CRM Online, you need to keep in mid that the plugin runs in sandbox mode. Among others this means following

    A. There is a 2-minute time limit for message operations to complete. There are also limitations on the amount of CPU and memory resources that can be used by extensions. If the limits are exceeded an exception is thrown and the operation will be cancelled.

    -> This means that if your plugins posts data to an external web-service and expects a response. if the web service does not respond within 2 minutes it will time out and roll back the transaction - this is why it would be best to perform such operations asynchronously and instead of waiting for a response have the external web service call back the CRM Web Service (instead of handling this inside of a plugin. ).

    see docs.microsoft.com/.../write-plug-in for more details

    -> this can also cause the app to seem unresponsive. See docs.microsoft.com/.../set-keepalive-false-interacting-external-hosts-plugin

    B. When accessing external web services you need to take following into consideration docs.microsoft.com/.../access-web-services

    You can then export the plugin as part of a solution and deploy it to multiple CRM Organizations.

  • Community Member Profile Picture
    on at

    Hi Radu Chiribelea,

    Thanks for detailed description. Actually I need this "You want CRM to host your service? If that's the case then this is not possible". But it doesn't look possible. As said in previous comment that buyer doesn't prefer third party service as they believe that everything should be in side their Dynamics CRM solution. However, it is possible in Salesforce and Suite/Sugar CRM. The reason why I had posted here.

    Anyways, thanks for your time and all the guidance.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans