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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to call custom D365FO Web API Service from web portal

(0) ShareShare
ReportReport
Posted on by 5

Hello,

we have created custom web api services from x++ visual studio 2017 and deployed to the UAT , when i am calling these services from localhost (asp.net c# solution) working fine, but when i deploy to the IIS , i am getting response data as empty string upon calling any services. am i missing any setup in d365fo or azure portal?

Please help

I have the same question (0)
  • Suggested answer
    huijij Profile Picture
    19,811 on at

    Hi Riyadhfoods,

    You can develop custom services for finance and operations in this way:

    learn.microsoft.com/.../custom-services

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

  • Riyadhfoods Profile Picture
    5 on at

    Hello,

    services already deployed to UAT and services are working fine from localhost.

    these services i am accessing through my asp.net core project , working fine from localhost but when i deploy my asp.net core project to IIS i am getting null response data from D365FO services.

    for the reference i have added screenshots 

    localhost_2D00_GetCurrency.PNG

    cloud-production-server_2D00_GetCurrency.PNG

  • Ferhat.S Profile Picture
    238 on at

    Hello,

    Are you using one-box environment or are you talking about live ?

  • Riyadhfoods Profile Picture
    5 on at

    Talking about live

  • Martin Dráb Profile Picture
    237,912 Most Valuable Professional on at

    Unfortunately we know nothing about your services, therefore finding bugs in them is extremely difficult. You, on the other hand, can debug your code, so you're in a much better position to find out where things fail.

    Just a guess. Because the operations is successful, but it failed to find records, a possible explanation is that you're now trying to fetch data from a different company. If it's not the case, I would stop guessing and start debugging.

  • Ferhat.S Profile Picture
    238 on at

    It can be anything actualy its hard to determine problem with that. I can only suggest you put more log your api and track whats going on

  • Riyadhfoods Profile Picture
    5 on at

    Actually I am new to D365FO.

    Is it required to register my web portal URL in D365FO through which I am calling services of D365FO?

  • Suggested answer
    Riyadhfoods Profile Picture
    5 on at

    Thank you all, Unauthorization issues was there that has been resolved by myself.

  • Martin Dráb Profile Picture
    237,912 Most Valuable Professional on at

    It seems that you also have another bug in your web service - I don't believe that it should return 200 if it actually fails. You see that you have no idea about what happened if your web service lies about the success.

  • Riyadhfoods Profile Picture
    5 on at

    Yes martin you are saying correctly  I will take care of it, i was making test to call the services as we are moving to D365FO soon ,

    Thank you

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans