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, ...
Answered

Retrieve data using custom web service from D365fo

(0) ShareShare
ReportReport
Posted on by 28

Hi All,

I tried to retrieve some data in D365fo using custom web service, i checked the url using postman and got this return value (using GET method)

{
    "Parameters": [],
    "Return": {
        "Name""return",
        "Type""ListValueContract"
    }
}
and got the data using POST method.
{
    "$id""1",
    "ListProject": [
        {
            "$id""2",
            "ProjectId""P001",
            "ProjectDesc""Non Project",
            "ProjectDataArea""bb",
            "ErpId"5637146101
        }
}
How could i return the listproject data using GET instead of POST?
Thanks
Masha
I have the same question (0)
  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Masha,

    I would say it's not possible to call web service in F&O with "Get" method.

    But it's should be doable with Logic apps (Trigger logic apps by Get request, make a call to D365 with POST and return response from web service)

  • it.dev Profile Picture
    28 on at

    Hi Sergei,

    I see, so we need to trigger it by get request and then call it again with post method. Thanks for your information sergei.

    Thanks

    Masha

  • Verified answer
    Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    GET will give you description of the service operation; it won't execute it.

    If you must use GET, you'll need a middle-tier service that accepts a GET request and makes a POST request to F&O. Azure API Management might be a good choice.

    By the way, use Insert > Insert Code (in the rich formatting view) to paste source code. In this particular case, you can also benefit from the fact that it supports JSON language. It even highlights a syntax error in the second snippet.

    GET

    {
        "Parameters": [],
        "Return": {
            "Name": "return",
            "Type": "ListValueContract"
        }
    }

    POST

    {
        "$id": "1",
        "ListProject": [
            {
                "$id": "2",
                "ProjectId": "P001",
                "ProjectDesc": "Non Project",
                "ProjectDataArea": "bb",
                "ErpId": 5637146101
            }
    }
    

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 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans