Skip to main content

Notifications

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

  • 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
    232,866 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
    232,866 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March 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... 294,099 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans