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

Entity method not supporting Http Get

(0) ShareShare
ReportReport
Posted on by 3,221

Hi

Implemented Entity Method

[SysODataActionAttribute("preImport", false),
        SysODataCollectionAttribute("return", Types::Integer)]
public static boolean preImport()

Entity Call: ../data/EntityCollectionName/Microsoft.Dynamics.DataEntities.preImport

Error: The requested resource does not support http method 'GET'.

What setup is missing?

Thanks for help.

  • Jan M. Profile Picture
    3,221 on at
    RE: Entity method not supporting Http Get

    Correct, we are using

    $body = "{ 'environment' : '$EnvironmentName'  }"
    $response = Invoke-RestMethod -Uri $url -body $body -Headers @{ "Authorization" = "Bearer "   $accessToken } -Method POST -ContentType "application/json"

    Thanks

  • Verified answer
    nunomaia Profile Picture
    11 Moderator on at
    RE: Entity method not supporting Http Get

    You are exposing an action, so it's a HTTP POST method.

    On blog than you sent, you can confirm that it's using a POST in Postman  

  • Jan M. Profile Picture
    3,221 on at
    RE: Entity method not supporting Http Get

    Get is what minimally should work, as it is invoked from a pipeline web-request call.

    According to this post we implemented the Methods, but we cannot see any additional setup. nuxulu.com/.../

    Others who can share there ideas?

  • Suggested answer
    nunomaia Profile Picture
    11 Moderator on at
    RE: Entity method not supporting Http Get

    Sent the same request with POST method 

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... 293,001 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,837 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans