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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Data Insertion (in Pow...
Power Apps
Unanswered

Data Insertion (in Power App Entity) Issue Using Comman Data Service with C# Console App

(0) ShareShare
ReportReport
Posted on by

Hi Team, 

 

We are consuming Common Data Service using Azure AD from C# Console Application to insert data in Power Apps Entity

 

1. We are trying to access Power Apps entities from C# Console App through Common Data Service.

2. We have registered the app on Azure AD.

3. We have the ClientID, TenantId, but when we try to insert the data into Power Apps entity using Common Data Service, we get the following error : 

 

AADSTS65001: The user or administrator has not consented to use the application with ID '{client-id}' named '{application created in Azure AD}'. Send an interactive authorization request for this user and resource.
 

We have user consent in Azure AD app but when we try to access token, we still get the above error. 

 

I have attached word document to explain what I am doing and what may I be missing.

 

Please help in addressing this issue.

 

Thanks

Umesh Kumar

 

CDS Issue.png
  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @UmeshKumar,

    Can you kindly confirm that you've performed the steps in the following two links? The 1st one to register CDS in Azure AD and the 2nd link to create the application user and assign a CDS security role. I would assign the System Administrator role to ensure it's not a privilege issue.

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/walkthrough-register-app-azure-active-directory
    https://docs.microsoft.com/en-us/power-platform/admin/create-users-assign-online-security-roles#create-an-application-user

    Hope this helps..

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard