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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create a Code Componen...
Power Apps
Answered

Create a Code Component from C# service

(0) ShareShare
ReportReport
Posted on by 111

Hi All,

 

I have a C# service that I would like to convert to a code component. Does anyone know where I can get some details examples and how-to documentation that could help me with this? I tried the default Microsoft documentation but it seems to be too broad for my application. Any help would be greatly appreciated.

 

Thank you

I have the same question (0)
  • Verified answer
    DTreg85 Profile Picture
    111 on at

    I was able to recreate the service through a flow with some more recent updates. This was before ChatGPT as well, today that would probably be some help.

  • DTreg85 Profile Picture
    111 on at

    @cchannon I haven't had a chance to try it yet but I believe the Azure Functions will be what I need. Still working on getting the service enabled on my license as my free trial is expired.

  • cchannon Profile Picture
    4,702 Moderator on at

    @DTreg1 did this post help solve your issue? Please mark it as resolved or update us if you went a different route.

  • cchannon Profile Picture
    4,702 Moderator on at

    OK, great. So, the reason you're not finding documentation for this is that this is not what code components do. 

    Code Components are Single Page Apps that enable developers to replace UI elements with totally custom experiences. Usually, these are written in React/Typescript, but they are definitely just client-side stuff.

     

    What you're looking for is server-executing code for running that service, and it could take a couple different forms:

    • If you're using Dataverse, then you can register your code as a Plugin or Custom API.
      • Plugins allow you to tie server-executing C# code to database events such as Create/Update/Delete and others
      • Custom APIs allow you to deploy C# code that you can invoke with a custom message to Dataverse as an API call.
    • If you aren't using Dataverse, then you're looking for an Azure Function. Functions allow you to deploy serverless compute to the cloud and run your C# code on any arbitrary trigger, executing as an API, on a schedule, or as a listener for other connected services such as a Service Bus.

     

  • DTreg85 Profile Picture
    111 on at

    No, no Blazer app. To clarify, it's a Windows Service that runs a C# console application. I'm not sure if code components can even accomplish recreating it but I'm just looking for some documentation that goes over code components with C#.

  • cchannon Profile Picture
    4,702 Moderator on at

    I assume you're not talking about a Blazor app or something... what exactly do you mean by "C# service", and what are you trying to accomplish? Most likely, the reason you're not finding good documentation is that there are a lot of ways to tackle your objective. It will help if I understand more about it.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 428

#2
WarrenBelz Profile Picture

WarrenBelz 374 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard