Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Web services in D365

(0) ShareShare
ReportReport
Posted on by

Hello guys,

Anyone can suggest me how's to create and usage of Web Services in D365 F&O ? I search a couple topics but either it's in partial, not clear, or it's turn out to be D365 CRM. 

Please if there is a very simple one with the 'chronological' / orderly manner how to create and what setting needed and of course how to use it.

Any good blog for a beginner to try ?

Much appreciate should there is such.

Thanks,

  • WillWU Profile Picture
    22,352 on at
    RE: Web services in D365

    Hi WWwong,

    As you mentioned, the custom services support standard OAuth 2.0 authentication.

    The application must be registered in AAD before any clients can communicate with the services.

    docs.microsoft.com/.../services-home-page

  • WillWU Profile Picture
    22,352 on at
    RE: Web services in D365

    Hi WWwong,

    And please make sure that the external name of service should be typed correctly.

  • Community Member Profile Picture
    on at
    RE: Web services in D365

    Hi Sergei,

    Noted, so there is a step that I need to register my App in Azure portal. This thing I'm not sure I have the authority.

    Anyway, thanks.

  • Sergei Minozhenko Profile Picture
    23,091 on at
    RE: Web services in D365

    Hi WWwong,

    You missed the link in the end of the article about Postman d365technext.blogspot.com/2018/07/dynamics-365-finance-operation-webapi.html. You can't call services from the browser directly, but you can get WSDL reference for soap version

    https://...myappsURL/soap/services/SRVGHelloWorld?wsdl

  • Martin Dráb Profile Picture
    231,782 Most Valuable Professional on at
    RE: Web services in D365

    Did you build you solution?

    By the way, please use Insert > Insert Code (in the rich formatting view) to paste source code.

  • Community Member Profile Picture
    on at
    RE: Web services in D365

    Hi Sergei,

    Noted, I will try, but first I tried the one from Will (since it is look very simple).

    So, here is the step:

    1. create the class :

    class IntegrationServices
    
    {
         public str getFoo()
    
        {
    
           return "Hello World";
    
       }
    
    }

    2. Create Service, named it "HelloWorld",  fill in property Class for "IntegrationServices", Add New Service operation and fill in property method "GetFoo"

    3. Create new Service Group, named it SRVGHelloWorld, make it AutoDeploy to "Yes". Add New Service, named it Hello with property Service to "HelloWorld"

    pastedimage1597214585646v1.png

    4. Build and sync

    Then go to my browser, call it : https://....myappsURL/api/services/SRVGHelloWorld/HelloWorld/GetFoo

    But why it says Page cannot be found. Seems like it still not recognize it, since if I call again without the Service Group, it listed all the available Service Group but this new one.

    Kindly advice,

    Thanks

  • Suggested answer
    Martin Dráb Profile Picture
    231,782 Most Valuable Professional on at
    RE: Web services in D365

    Also note that custom service isn't the only type of web services you can use.

    If you want to work with entities (such as query customers or create orders), you can use OData services. There are many entities you can use out of the box, and if you need an extra one, you'll simply create a public data entity and it'll automatically become available through the OData web service.

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,091 on at
    RE: Web services in D365

    Hi WWwong,

    The steps are quite simple in this case

    1. Create a class with the service method

    2. Create a service element and assign class and method to this element

    3. Create a service group and add service to it.

    Step 1 is most complicated, especially if you need to use contract, list as input\output in your service

    As a reference, you can check docs.microsoft.com/.../using-custom-services and explore out of the box services (go to Service node in VS and check what classes are used and how they are designed).

  • Verified answer
    WillWU Profile Picture
    22,352 on at
    RE: Web services in D365

    Hi WWwong,

    Please see:

    community.dynamics.com/.../custom-web-service-in-few-steps-d365fo

    Hope this helps.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 292,910 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,782 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans