web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • Riyadhfoods Profile Picture
    5 on at
    RE: How to call custom D365FO Web API Service from web portal

    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

  • Martin Dráb Profile Picture
    236,233 Most Valuable Professional on at
    RE: How to call custom D365FO Web API Service from web portal

    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.

  • Suggested answer
    Riyadhfoods Profile Picture
    5 on at
    RE: How to call custom D365FO Web API Service from web portal

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

  • Riyadhfoods Profile Picture
    5 on at
    RE: How to call custom D365FO Web API Service from web portal

    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?

  • Ferhat.S Profile Picture
    238 on at
    RE: How to call custom D365FO Web API Service from web portal

    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

  • Martin Dráb Profile Picture
    236,233 Most Valuable Professional on at
    RE: How to call custom D365FO Web API Service from web portal

    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.

  • Riyadhfoods Profile Picture
    5 on at
    RE: How to call custom D365FO Web API Service from web portal

    Talking about live

  • Ferhat.S Profile Picture
    238 on at
    RE: How to call custom D365FO Web API Service from web portal

    Hello,

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

  • Riyadhfoods Profile Picture
    5 on at
    RE: How to call custom D365FO Web API Service from web portal

    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

  • Suggested answer
    huijij Profile Picture
    19,811 on at
    RE: How to call custom D365FO Web API Service from web portal

    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

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,258

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 631 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans