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 / How do I add Dataverse...
Power Apps
Answered

How do I add Dataverse as a data source in my code app?

(1) ShareShare
ReportReport
Posted on by 5
I have been trying to add Dataverse as a data source in my code app, but I can't seem to get it to work. I referred to a Microsoft documentation where it was mentioned we need a dataset and table name for tabular data and add it with the following PAC command: pac code add-data-souce -a <api-id> -c <connection-id> -d <data-set-name> -t <table-name> but I can't get this to work.
I have the same question (0)
  • Verified answer
    rezarizvii Profile Picture
    123 on at
    Hi @CU03040922-0, hope you are doing well.
     

    You can add Dataverse as data source in your code app using the command below:

    pac code add-data-source -a dataverse -t <table-logical-name>

     

    Quick notes:

    • Ensure your Power Platform CLI is updated to the latest version. (personal experience: this command won't work in older Power Platform CLI versions)
    • Ensure you are connected to the right environment
      • Use pac auth list and pac auth select -n <profile-name> or pac auth select -i <profile-index> to connect to an existing profile
      • Use pac auth create -env <environment-url or environment-guid> -n <profile-name> to create a profile connected to an environment

     

    Here's the documentation you can reference for adding Dataverse as a data source to your app: How to: Connect your code app to Dataverse - Power Apps | Microsoft Learn

     

    If this reply helped you in any way, please give it a Like 💜 and in case it resolved your issue, please mark it as the Verified Answer ✅.

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard