Events
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
[This topic is pre-release documentation and is subject to change.]
Microsoft Dataverse offers a powerful solution for achieving more efficient data architecture and reducing client-side workload through functions (formerly known as instant low-code plug-ins). Functions in Dataverse use Power Fx to create your business logic. Power Fx is a general-purpose, strong-typed, declarative, and functional programming language. Whereas functions in Dataverse are reusable solution objects, which execute a specific set of commands within Dataverse, running server-side.
Important
Traditionally, functions were created using plug-ins. These plug-ins were created as custom classes compiled into a .NET Framework assembly, which were then uploaded and registered within Dataverse. However, now with the introduction of functions, users can create them with minimal or no coding required, and without the need for manual registration.
Functions are stored within a Dataverse database and can be seamlessly integrated into Power Apps and Power Automate. The behavior of the workflow is defined using the Power Fx expression language and can directly connect with Dataverse business data and external data sources through Power Platform connectors. With functions, makers can rapidly construct complex logic with minimal coding expertise.
Defining server-side business logic offers several benefits, including:
Functions in Dataverse use Power Fx. Power Fx is the low-code language that is used across Microsoft Power Platform. It's a general-purpose, strong-typed, declarative, and functional programming language used in Power Apps canvas apps as well as areas in model-driven apps, such as custom pages and commanding.
Functions offer these benefits:
Functions have these general properties.
Property | Description |
---|---|
Display name | The human-readable name of the function. Can't be changed once created. |
Name | The internal name of the function. It's used by the platform to identify the component in code and database operations. Can't be changed once created. |
Description | Used to provide additional context about the function, such as purpose, behavior, and so on. Can't be changed once created. |
Solution | Used to group components and export to other environments. Learn more about solutions. |
Expression | This is the custom function that can be used to perform actions or calculations, defined using the Power Fx expression language. Go to Supported functions for more details. |
A function is custom code logic that's manually invoked by a user. Custom input and output parameters can be used with these unique properties.
Property | Column2 |
---|---|
Table Reference | Used to associate Functions to specific tables. You can select up to five tables to read or write from in your function’s formula. |
Parameters | Parameters allow you to pass information between the function and the context that runs it, making it easier to design business logic that can be reused in varying situations. Input parameters are used to provide data to the function, and allow you to control how the function behaves by passing in different values you specify in the Power Fx formula. Output parameters allow you to retrieve the results of a function for further use in your program. More information: Supported data types for input and output parameters |
For more information about how to integrate from a canvas app or in a Power Automate cloud flow, go to Invoke a function from a canvas app or custom page.
How run | Description |
---|---|
Design time | Makers who have system customizer security role membership or higher level role in the Power Platform environment can access all functions in that environment. Custom security roles can be used to restrict access to functions. |
Run time | When a function is invoked, it accesses the table data involved in the function definition, which includes the tables that are part of the formula in the context of the user who invoked it. |
Events
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreTraining
Module
Introduction to expressions in Power Automate - Training
Learn how to write expressions in Power Automate.
Certification
Microsoft Certified: Power Platform Functional Consultant Associate - Certifications
Demonstrate the use of Microsoft Power Platform solutions to simplify, automate, and empower business processes for organizations in the role of a Functional Consultant.
Documentation
Invoke a function using Power Platform - Power Apps
Learn how to invoke a function from an app, flow, code, or from another function in Power Apps.
Create and use functions in Microsoft Dataverse - Power Apps
Learn how to create functions that can be used to execute a specific set of commands within Dataverse.
Example functions in Microsoft Dataverse - Power Apps
View function examples to help you understand how functions work in Dataverse