Skip to main content
Community site session details

Community site session details

Session Id : xHxr1YS8LP6PF+GLd2grPL
Power Apps - Microsoft Dataverse
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 17 Jun 2020 05:45:42 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

 

  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on 17 Jun 2020 at 06:50:53
    Re: Data Insertion (in Power App Entity) Issue Using Comman Data Service with C# Console App

    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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics