Skip to main content

Notifications

Community site session details

Community site session details

Session Id : isWcs3dqWySWUEYYKkq8uM
Power Apps - Microsoft Dataverse
Suggested answer

Dataverse access via Web Service API

Like (1) ShareShare
ReportReport
Posted on 15 Dec 2024 13:45:07 by 2

I am working on a project and we use D365 Field Service for our Support system, but part of our solution is a Mobile App built in Flutter that uses Azure C# Web Services APIs to connect to Azure SQL. I have been searching if there is a way to access Dataverse via a web API, and so far have had no luck. The samples I have found such as these:

https://learn.microsoft.com/en-us/training/modules/dataverse-web-api/

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/quick-start-blazor-server-app

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/get-started-dynamics-365-web-api-csharp

all require the User to authenticate via a Popup, which won't work in this case as they need the Authentication to happen in the C# Web Service, transparent to the User.

So the flow would be: User Clicks "View Cases" in the Mobile AppMobile App calls C# web service on Azure, which Authenticates the User, and retrieves all the cases assigned to that UserWeb Service returns the Cases to the Mobile App and they are displayed.

This is very easy to do with Azure SQL via secure SQL connections but I am hitting a wall trying to access the Cases in Dataverse. 

Can anyone help?

Thanks!

John.

  • Suggested answer
    MichaelFP Profile Picture
    1,831 Super User 2025 Season 1 on 19 Dec 2024 at 14:19:26
    Dataverse access via Web Service API
    Hello!
     
    To authenticate for that scenario of web api, I would recommend to use Non-Interactive users or Application users, for both cases you will  be able to generate a token authentication using OAuth flow without need a pop-up and MFA.
     
     
     
    If my answer helped you, please give me a thumbs up (👍). If solve your question please mark as answer ✔️. This is help the community.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 15

#2
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

Overall leaderboard

Featured topics

Loading started