web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Fetch Environment metadata through LCS API

(1) ShareShare
ReportReport
Posted on by 5

Hi All,

I'm trying to fetch environment metadata through LCS API for which I have followed the process mentioned in the below link.

Fetch environment metadata - Finance & Operations | Dynamics 365 | Microsoft Learn

I'm able to successfully fetch the access token through a POST request as shown below.

pastedimage1678773194229v1.png

pastedimage1678773266696v2.png

However, while trying to fetch the environment metadata through a GET request, we are unable to get it and facing the below errors.

pastedimage1678773449084v3.png

Also, tried with LCS cloud hosted environments page URL and the output is as shown below.

pastedimage1678773604564v4.png

Can someone know how to resolve this?

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

    Hi Kotla,

    For the postman's failure to send your request, you may be experiencing connection problems. Check your connection by trying to open a page in your web browser. Or restart postman to try again.

  • Suggested answer
    nunomaia Profile Picture
    25 Moderator on at

    Take a post on postman request created on this blog post

    nunomaia.github.io/.../lcs-api.html

  • Kotla Reddy Rajesh Profile Picture
    5 on at

    Hi Nuno,

    Tried the steps mentioned in your blog post. However, while fetching the access token through a POST request I'm experiencing the below error.

    "error_description": "AADSTS65001: The user or administrator has not consented to use the application with ID '50c66f94-c5f3-4793-a77****e' named 'D365_LCS'. Send an interactive authorization request for this user and resource.\r\nTrace ID: 73de8e13-a0e5-496a-9ac6-04719828f100\r\nCorrelation ID: 010ab390-1629-4e03-8ded-4bf376d12092\r\nTimestamp: 2023-03-15 11:35:57Z"

    Also retried the same after granting admin consent, but still same.

    Can you help me here?

  • Kotla Reddy Rajesh Profile Picture
    5 on at

    Hi Judy,

    I rechecked the same with different browsers and in different systems too but still, the issue is same. I don't see a connectivity issue from my end.

  • nunomaia Profile Picture
    25 Moderator on at

    Check in Database movement API - Authentication - Finance & Operations | Dynamics 365 | Microsoft Learn

    You auth request is not as documented. You mixing header info in request body.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 545 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 408

#3
Adis Profile Picture

Adis 267 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans