You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/developer/data-platform/bypass-custom-business-logic-preview.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -287,7 +287,7 @@ Use this FetchXml query to return `step.sdkmessageprocessingstepid` values you c
287
287
288
288
### Limit to the number of steps
289
289
290
-
To ensure that the parameter size isn't too large, the default limit on the number of steps you can pass is three. The limit is controlled using data in the [Organization table OrgDbOrgSettings column](reference/entities/organization.md#BKMK_OrgDbOrgSettings). Don't try to edit this value yourself. Use the [OrgDBOrgSettings tool for Microsoft Dynamics CRM](https://support.microsoft.com/topic/orgdborgsettings-tool-for-microsoft-dynamics-crm-20a10f46-2a24-a156-7144-365d49b842ba) or [OrgDbOrgSettings app](https://github.com/seanmcne/OrgDbOrgSettings?tab=readme-ov-file#where-to-find-the-releases) to change the `BypassBusinessLogicExecutionStepIdsLimit` value.
290
+
To ensure that the parameter size isn't too large, the default limit on the number of steps you can pass is three. The limit is controlled using data in the [Organization table OrgDbOrgSettings column](reference/entities/organization.md#BKMK_OrgDbOrgSettings). Use the [OrgDBOrgSettings tool for Microsoft Dynamics CRM](https://support.microsoft.com/topic/orgdborgsettings-tool-for-microsoft-dynamics-crm-20a10f46-2a24-a156-7144-365d49b842ba) or [OrgDbOrgSettings app](https://github.com/seanmcne/OrgDbOrgSettings?tab=readme-ov-file#where-to-find-the-releases) to change the `BypassBusinessLogicExecutionStepIdsLimit` value.
291
291
292
292
The maximum recommended size for this limit is 10 steps.
Copy file name to clipboardExpand all lines: powerapps-docs/developer/data-platform/fetchxml/optimize-performance.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ If you select many lookup and computed columns, and you're experiencing performa
29
29
Using the `latematerialize` attribute might not always provide a performance benefit. It might make simple queries run more slowly. It's most beneficial when your query:
30
30
31
31
- Has many joins
32
-
- Contains many columns lookup columns or computed columns
title: "Work with data using code in Microsoft Dataverse (PowerApps) | Microsoft Docs"
3
-
description: "Microsoft Dataverse provides web services and APIs that you can use to interact with your data."# 115-145 characters including spaces. This abstract displays in the search result.
4
-
ms.date: 03/24/2023
3
+
description: "Microsoft Dataverse provides web services and APIs that you can use to interact with your data."
4
+
ms.date: 05/20/2024
5
5
ms.reviewer: pehecke
6
6
ms.topic: article
7
7
author: divkamath # GitHub ID Temp owner
@@ -15,45 +15,70 @@ contributors:
15
15
---
16
16
# Work with data using code in Microsoft Dataverse
There are several different ways to access Dataverse data using code.
19
19
20
-
Dataverse has [tables](entities.md) that are used to model and manage business data. You can use the stock provided tables or define your own custom tables to store data.
20
+
- Use the Dataverse [SDK for .NET](#sdk-for-net) or [Web API](#web-api) to retrieve, add, and modify data.
21
+
- Use [Dataverse search](#search-dataverse-data) search Dataverse data.
22
+
- Use the Dataverse Tabular Data Stream (TDS) endpoint to [query data with SQL](#query-data-with-sql).
21
23
22
-
Dataverse also has APIs known as *messages*. Messages define a set of input parameters and output properties to encapsulate logic that executes on the server. Each message has a name. If you come from a SQL database background, you can think of these like SQL stored procedures. You can use messages that Dataverse provides or you can create your own messages.
24
+
This article introduces the options you have to work with Dataverse data using code.
23
25
24
-
## Use web services to work with data
26
+
<!--
27
+
Use Dataverse tables to model and manage business data. You can use [existing tables](reference/about-entity-reference.md) and customize them, or [create your own custom tables](../../maker/data-platform/create-edit-entities-portal.md) to store data.
25
28
26
-
Dataverse provides two ways to work with data: Web API & SDK for .NET. Choose the one that best matches the requirement and your skills.
29
+
Dataverse also has APIs known as *messages*. Each message has a name like `Create`, `Delete`, or `WhoAmI`. Messages define a set of input parameters and output properties to encapsulate logic that executes on the server. If you come from a SQL database background, you can think of these like SQL stored procedures. You can use messages that Dataverse provides or you can [create your own messages](custom-actions.md).
30
+
-->
27
31
28
-
<!---->
32
+
## Retrieve, add, and modify data
29
33
30
-
### Web API
31
-
32
-
The Web API is an OData v4 RESTful endpoint. Use the Web API for any programming language that supports HTTP requests and authentication using OAuth 2.0.
34
+
Dataverse provides two ways to retrieve, add, and modify data: SDK for .NET & Web API. Choose the one that best matches the requirements, your skills, and preferences.
33
35
34
-
More information: [Use the Dataverse Web API](webapi/overview.md)
36
+
:::image type="content" source="media/whentousewebapi.svg" alt-text="Flow diagram to choose programming style":::
35
37
36
38
### SDK for .NET
37
39
38
-
Use classes provided in the Dataverse SDK for .NET assemblies for custom apps, or for extending Dataverse operations using custom plug-ins and workflow activities. The Dataverse SDK for .NET supports build targets for both .NET Framework and .NET 6+. However, plug-in and custom workflow activities must be coded using .NET Framework.
40
+
If you are working with .NET, we recommend using our [SDK for .NET](org-service/overview.md).
39
41
40
-
More information: [Use the Dataverse SDK for .NET](org-service/overview.md)
42
+
- Use the [ServiceClient class](/dotnet/api/microsoft.powerplatform.dataverse.client.serviceclient) in the [DataverseServiceClient NuGet package](https://www.nuget.org/packages/Microsoft.PowerPlatform.Dataverse.Client/) if you have a client application.
43
+
- Use the [Microsoft.CrmSdk.CoreAssemblies NuGet package](https://www.nuget.org/packages/Microsoft.CrmSdk.CoreAssemblies/) when you are writing a plug-in or custom workflow activity.
41
44
42
-
> [!NOTE]
43
-
> Use the Xrm.Tooling assemblies if you want to use the SDK for .NET using our PowerShell module or are creating a Windows client application and you want to use our custom login control. More information: [Build Windows client applications using the XRM tools](xrm-tooling/build-windows-client-applications-xrm-tools.md)
45
+
The Dataverse SDK for .NET supports build targets for both .NET Framework and .NET 6+. However, plug-in and custom workflow activities must use .NET Framework.
44
46
45
-
## Limitations
47
+
If you are using our [PowerShell module](https://www.powershellgallery.com/packages/Microsoft.Xrm.Tooling.CrmConnector.PowerShell/) or using our [custom log-in control](xrm-tooling/use-xrm-tooling-common-login-control-client-applications.md) with a Windows client application, use the [the Xrm.Tooling](xrm-tooling/build-windows-client-applications-xrm-tools.md)
46
48
47
-
There's a 1-GB size limitation on the size of a response that Dataverse returns. Few APIs or queries are capable of returning this much data. If you encounter this limit, you should consider what other options are available to get the data in multiple, smaller requests.
49
+
-[Use the SDK for .NET](org-service/overview.md)
50
+
-[Quickstart: Execute an SDK for .NET request (C#)](org-service/quick-start-org-service-console-app.md)
48
51
49
-
The deprecated SOAP endpoint returns serialized XML data that is much more verbose than the serialized JSON data returned by the Web API. If you're using the deprecated SOAP endpoint, you should use the Web API equivalent operation. More information: [About the legacy SOAP endpoint](org-service/overview.md#about-the-legacy-soap-endpoint)
52
+
### Web API
53
+
54
+
The Dataverse Web API is an OData v4 RESTful endpoint. Use the Web API for any programming language that supports HTTP requests and authentication using OAuth 2.0, including .NET.
55
+
56
+
-[Learn to use the Dataverse Web API](webapi/overview.md)
57
+
-[Quick Start: Web API with PowerShell and Visual Studio Code](webapi/quick-start-ps.md)
58
+
-[Quick Start: Web API sample (C#)](webapi/quick-start-console-app-csharp.md)
50
59
51
-
### Search
60
+
61
+
## Search Dataverse data
52
62
53
63
Dataverse search delivers fast and comprehensive search results across multiple tables, in a single list, sorted by relevance. It also provides capabilities to support suggestions and autocompletion experiences in apps.
54
64
55
-
Search has a native endpoint and there are Dataverse messages that you can use from the Web API or Organization service.
65
+
Search has a native endpoint and there are Dataverse messages that you can use from the Web API or SDK for .NET.
66
+
67
+
[Learn to search for Dataverse records](search/overview.md)
56
68
57
-
More information: [Search for Dataverse records](search/overview.md)
69
+
## Query data with SQL
70
+
71
+
The [Power Query Dataverse connector](/power-query/connectors/dataverse) uses the Dataverse Tabular Data Stream (TDS) endpoint to retrieve data using [Dataverse SQL](how-dataverse-sql-differs-from-transact-sql.md), a subset of Transact-SQL.
72
+
73
+
[Retrieving data using SQL Management Studio (SSMS)](dataverse-sql-query.md#sql-server-management-studio-preview) is a preview feature.
74
+
75
+
[Learn to use SQL to query data](dataverse-sql-query.md)
76
+
77
+
78
+
## Limitations
79
+
80
+
There's a 1-GB size limitation on the size of a response that Dataverse returns. Few APIs or queries are capable of returning this much data. If you encounter this limit, you should consider what other options are available to get the data in multiple, smaller requests.
81
+
82
+
The deprecated SOAP endpoint returns serialized XML data that is much more verbose than the serialized JSON data returned by the Web API. If you're using the deprecated SOAP endpoint, you should use the Web API equivalent operation. More information: [About the legacy SOAP endpoint](org-service/overview.md#about-the-legacy-soap-endpoint)
title: Understand your app's functionality through code view (preview)
3
+
description: Understanding app functionality through code view for canvas apps.
4
+
author: marcelbf
5
+
6
+
ms.custom: canvas
7
+
ms.collection: get-started
8
+
ms.topic: conceptual
9
+
ms.reviewer: mkaur
10
+
ms.date: 5/14/2024
11
+
ms.subservice: canvas-maker
12
+
ms.author: marcelbf
13
+
search.audienceType:
14
+
- maker
15
+
- developer
16
+
---
17
+
# Understand app functionality through code view (preview)
18
+
19
+
[This article is prerelease documentation and is subject to change.]
20
+
21
+
Use code view to see your app's underlying code to better understand the app's functionality. Each control on the screen has a code representation that uses a format that is a subset of YAML and an improvement from the [YAML formula grammar](/power-platform/power-fx/yaml-formula-grammar).
22
+
23
+
With code view you can:
24
+
25
+
- See a code representation of each control on your screen.
26
+
- Copy a control as code and share outside of Power Apps Studio.
27
+
- Copy an paste a control as code and create new control based on the copied code.
28
+
29
+
> [!IMPORTANT]
30
+
> - Format is subjected to change. We don’t guarantee compatibility with the final version.
31
+
> - The current code format isn't suitable to source control during the preview period.
32
+
33
+
## Prerequisites
34
+
35
+
The Power Fx formula bar must be turned on to view the code for a control.
36
+
37
+
The formula bar is **ON** by default for new apps. For existing apps, follow these steps to turn on the Power Fx formula bar:
38
+
- Open our app in Power Apps Studio, select **Settings** > **Upcoming features** > **Preview** > set the **Power Fx formula bar** toggle to **ON**.
39
+
40
+
41
+
## View, copy, and paste code
42
+
43
+
The **View code** feature shows the code for the selected control and all underlying controls. You can also use the shortcut **Ctrl + F** to find a specific string in the code.
44
+
45
+
Follow these steps to view, copy, and paste the code for a control:
46
+
47
+
1. Open your app for [editing](edit-app.md) in Power Apps Studio.
48
+
1.**Right-click** on the control in the **Tree view** or on the screen or and then select, **View code (preview)**.
49
+
50
+
:::image type="content" source="media/code-view/view-code.png" alt-text="View code for a control":::
51
+
52
+
1. Select **Copy code** and then paste the copied code into any window outside of your browser.
53
+
54
+
1. To generate a new control from the copied code, right-click on the control where you want to create a new control and the select, **Paste code (preview)**.
You must use the YAML format that's generated by Power Apps Studio. The code also goes through validation check before it's created.
60
+
61
+
## Know limitations
62
+
63
+
* You can't copy and paste and there’s no code view for the **App Object**.
64
+
* You can’t edit the code in the code view.
65
+
* You can only copy controls that are on a screen. Copying a screen isn't supported.
66
+
67
+
This article provides an overview of working with formulas. For more detailed information about functions, operators, and other building blocks, see [Formula reference](formula-reference.md).
Copy file name to clipboardExpand all lines: powerapps-docs/maker/common/responsible-ai-overview.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: FAQ about using AI responsibly in Power Apps
3
3
description: Find FAQ about how to use copilot AI responsibly with Power Apps to build apps through conversation, generate app descriptions, edit apps, and more.
4
-
ms.date: 05/15/2024
4
+
ms.date: 05/31/2024
5
5
ms.custom:
6
6
- responsible-ai-faqs
7
7
- ai-gen-docs-bap
@@ -45,3 +45,4 @@ ms.collection:
45
45
-[FAQs about using Copilot with Power Fx](./faqs-copilot-powerfx.md)
46
46
-[Use field suggestions by Copilot](../canvas-apps/ai-field-suggestions.md)
47
47
-[FAQs for field suggestions by Copilot](faq-field-suggestions.md)
48
+
-[FAQ about filtering, sorting, and searching canvas galleries with Copilot](faq-filter-with-copilot.md)
0 commit comments