Skip to content

Commit 0dd116b

Browse files
authored
Merge branch 'main' into pnghub-patch-2
2 parents c4a92be + 7b642a3 commit 0dd116b

16 files changed

+193
-41
lines changed

powerapps-docs/developer/data-platform/authenticate-oauth.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Use OAuth authentication with Microsoft Dataverse (Dataverse) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
33
description: "Learn how to authenticate applications with Microsoft Dataverse using OAuth." # 115-145 characters including spaces. This abstract displays in the search result.
44
ms.custom: has-adal-ref
5-
ms.date: 09/12/2022
5+
ms.date: 10/16/2023
66
ms.reviewer: pehecke
77
ms.topic: article
88
author: ritesp # GitHub ID
@@ -16,11 +16,11 @@ contributors:
1616

1717
# Use OAuth authentication with Microsoft Dataverse
1818

19-
[OAuth 2.0](https://oauth.net/2/) is the industry-standard protocol for authorization. After application users provide credentials to authenticate, OAuth determines whether they are authorized to access the resources.
19+
[OAuth 2.0](https://oauth.net/2/) is the industry-standard protocol for authorization. After application users provide credentials to authenticate, OAuth determines whether they're authorized to access the resources.
2020

2121
Client applications must support the use of OAuth to access data using the Web API. OAuth enables two-factor authentication (2FA) or certificate-based authentication for server-to-server application scenarios.
2222

23-
OAuth requires an identity provider for authentication. For Dataverse, the identity provider is Azure Active Directory (AAD). To authenticate with AAD using a Microsoft work or school account, use the [Microsoft Authentication Library](/azure/active-directory/develop/msal-overview#languages-and-frameworks) (MSAL).
23+
OAuth requires an identity provider for authentication. For Dataverse, the identity provider is Azure Active Directory (AD). To authenticate with AD using a Microsoft work or school account, use the [Microsoft Authentication Library](/azure/active-directory/develop/msal-overview#languages-and-frameworks) (MSAL).
2424

2525
> [!NOTE]
2626
> This topic will introduce common concepts related to connecting to Dataverse using OAuth with authentication libraries. This content will focus on how a developer can connect to Dataverse but not on the inner workings of OAuth or the libraries. For complete information related to authentication see the Azure Active Directory documentation. [What is authentication?](/azure/active-directory/develop/authentication-scenarios) is a good place to start.
@@ -29,38 +29,38 @@ OAuth requires an identity provider for authentication. For Dataverse, the ident
2929
3030
## App Registration
3131

32-
When you connect using OAuth you must first register an application in your Azure AD tenant. How you should register your app depends on the type of app you want to make.
32+
When you connect using OAuth, you must first register an application in your Azure AD tenant. How you should register your app depends on the type of app you want to make.
3333

34-
In all cases, start with basic steps to register an app described in the AAD topic: [Quickstart: Register an application with the Microsoft identity platform](/azure/active-directory/develop/quickstart-register-app). For Dataverse specific instructions see [Walkthrough: Register an app with Azure Active Directory > Create an application registration](walkthrough-register-app-azure-active-directory.md#create-an-application-registration).
34+
In all cases, start with basic steps to register an app described in the AD article: [Quickstart: Register an application with the Microsoft identity platform](/azure/active-directory/develop/quickstart-register-app). For Dataverse specific instructions see [Walkthrough: Register an app with Azure Active Directory > Create an application registration](walkthrough-register-app-azure-active-directory.md#create-an-application-registration).
3535

36-
The decisions you will need to make in this step mostly depend on the Application Type choice (see below).
36+
The decisions you need to make in this step mostly depend on the Application Type choice (see below).
3737

3838
### Types of app registration
3939

40-
When you register an app with Azure AD one of the decisions you must make is the application type. There are two types of applications you can register:
40+
When you register an app with Azure AD one of the decisions, you must make is the application type. There are two types of applications you can register:
4141

4242
| Application type | Description|
4343
|------------------|------------|
4444
| Web app /API | **Web client**<br />A type of [client application](/azure/active-directory/develop/developer-glossary#client-application) that executes all code on a web server.<br /><br />**User-agent-based client**<br />A type of [client application](/azure/active-directory/develop/developer-glossary#client-application) that downloads code from a web server and executes within a user-agent (for instance, a web browser), such as a Single Page Application (SPA). |
4545
|Native|A type of [client application](/azure/active-directory/develop/developer-glossary#client-application) that is installed natively on a device. |
4646

47-
When you select **Web app /API** you must provide a **Sign-On URL** which is the URL where Azure AD will send the authentication response, including a token if authentication was successful. While you develop an app, this is usually set to `https://localhost/appname:[port]` so you can develop and debug your app locally. When you publish your app, you need to change this value to the published URL of the app.
47+
When you select **Web app /API** you must provide a **Sign-On URL** which is the URL where Azure AD sends the authentication response, including a token if authentication was successful. While you develop an app, this URL is usually set to `https://localhost/appname:[port]` so you can develop and debug your app locally. When you publish your app, you need to change this value to the published URL of the app.
4848

49-
When you select **Native**, you must provide a Redirect URI. This is a unique identifier to which Azure AD will redirect the user-agent in an OAuth 2.0 request. This is typically a value formatted like so: `app://<guid>`.
49+
When you select **Native**, you must provide a Redirect URI. This URL is a unique identifier to which Azure AD will redirect the user-agent in an OAuth 2.0 request. This URL is typically a value formatted like so: `app://<guid>`.
5050

5151
### Giving access to Dataverse
5252

53-
If your app will be a client which allows the authenticated user to perform operations, you must configure the application to have the Access Dynamics 365 as organization users delegated permission.
53+
If your app is a client that allows the authenticated user to perform operations, you must configure the application to have the Access Dynamics 365 as organization users delegated permission.
5454

55-
For specific steps to do this, see [Walkthrough: Register an app with Azure Active Directory > Apply Permissions](walkthrough-register-app-azure-active-directory.md).
55+
For specific steps to set permissions, see [Walkthrough: Register an app with Azure Active Directory > Apply Permissions](walkthrough-register-app-azure-active-directory.md).
5656

5757
<!-- TODO Verify this -->
5858

59-
If your app will use Server-to-Server (S2S) authentication, this step is not required. That configuration requires a specific system user and the operations will be performed by that user account rather than any user that must be authenticated.
59+
If your app uses Server-to-Server (S2S) authentication, this step isn't required. That configuration requires a specific system user and the operations are performed by that user account rather than any user that must be authenticated.
6060

6161
### Use Client Secrets & Certificates
6262

63-
For server to server scenarios there will not be an interactive user account to authenticate. In these cases, you need to provide some means to confirm that the application is trusted. This is done using client secrets or certificates.
63+
For server-to-server scenarios there won't be an interactive user account to authenticate. In these cases, you need to provide some means to confirm that the application is trusted. This is done using client secrets or certificates.
6464

6565
For apps that are registered with the **Web app /API** application type, you can configure secrets. These are set using the **Keys** area under **API Access** in the **Settings** for the app registration.
6666

@@ -85,12 +85,14 @@ Dataverse SDK for .NET includes client classes [CrmServiceClient](xref:Microsoft
8585

8686
## Use the AccessToken with your requests
8787

88-
The point of using the authentication libraries is to get an access token that you can include with your requests.
89-
This only requires a few lines of code, and just a few more lines to configure an [HttpClient](xref:System.Net.Http.HttpClient) to execute a request.
88+
The point of using the authentication libraries is to get an access token that you can include with your requests. Getting the token only requires a few lines of code, and just a few more lines to configure an [HttpClient](xref:System.Net.Http.HttpClient) to execute a request.
89+
90+
> [!IMPORTANT]
91+
> As demonstrated in the sample code of this article, use a "\<environment-url>/user_impersonation" scope for a public client. For a confidential client, use a scope of "\<environment-url>/.default".
9092
9193
### Simple example
9294

93-
The following is the minimum amount of code needed to execute a single Web API request, but it is not the recommended approach. Note that this code uses the MSAL library and is taken from the [QuickStart](https://github.com/microsoft/PowerApps-Samples/tree/master/dataverse/webapi/C%23/QuickStart) sample.
95+
The following is the minimum amount of code needed to execute a single Web API request, but it isn't the recommended approach. Note that this code uses the MSAL library and is taken from the [QuickStart](https://github.com/microsoft/PowerApps-Samples/tree/master/dataverse/webapi/C%23/QuickStart) sample.
9496

9597
```csharp
9698
string resource = "https://contoso.api.crm.dynamics.com";
@@ -102,7 +104,7 @@ var authBuilder = PublicClientApplicationBuilder.Create(clientId)
102104
.WithAuthority(AadAuthorityAudience.AzureAdMultipleOrgs)
103105
.WithRedirectUri(redirectUri)
104106
.Build();
105-
var scope = resource + "/.default";
107+
var scope = resource + "/user_impersonation";
106108
string[] scopes = { scope };
107109

108110
AuthenticationResult token =
@@ -148,7 +150,7 @@ class OAuthMessageHandler : DelegatingHandler
148150
.WithAuthority(AadAuthorityAudience.AzureAdMultipleOrgs)
149151
.WithRedirectUri(redirectUrl)
150152
.Build();
151-
var scope = serviceUrl + "//.default";
153+
var scope = serviceUrl + "/user_impersonation";
152154
string[] scopes = { scope };
153155
// First try to get an authentication token from the cache using a hint.
154156
AuthenticationResult authBuilderResult=null;

powerapps-docs/developer/data-platform/data-export-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ var authBuilder = PublicClientApplicationBuilder.Create(AppId)
117117
.WithAuthority(AadAuthorityAudience.AzureAdMultipleOrgs)
118118
.WithRedirectUri(redirectUri)
119119
.Build();
120-
var scope = resource + "/.default";
120+
var scope = resource + "/user_impersonation";
121121
string[] scopes = { scope };
122122

123123
// Use interactive username and password prompt

powerapps-docs/developer/data-platform/webapi/quick-start-console-app-csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Follow these next steps to add code for the main program.
100100
.WithAuthority(AadAuthorityAudience.AzureAdMultipleOrgs)
101101
.WithRedirectUri(redirectUri)
102102
.Build();
103-
var scope = resource + "/.default";
103+
var scope = resource + "/user_impersonation";
104104
string[] scopes = { scope };
105105

106106
AuthenticationResult token =

powerapps-docs/maker/TOC.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,9 @@
17041704
href: ./model-driven-apps/add-ai-copilot.md
17051705
- name: Use Excel and Word templates
17061706
href: ./model-driven-apps/templates-overview.md
1707-
- name: Use themes to apply organization branding
1707+
- name: Use modern themes
1708+
href: ./model-driven-apps/modern-theme-overrides.md
1709+
- name: Use themes to apply organization branding (classic)
17081710
href: ./model-driven-apps/create-themes-organization-branding.md
17091711
- name: Create guided help for your app
17101712
href: ./data-platform/create-custom-help-pages.md

powerapps-docs/maker/data-platform/preferred-solution.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ search.audienceType:
1212
ms.custom:
1313
- ai-gen-docs-bap
1414
- ai-gen-desc
15-
- ai-seo-date:10/11/2023
15+
- ai-seo-date:10/17/2023
1616
---
1717
# Set the preferred solution (preview)
1818

@@ -27,6 +27,7 @@ Using preferred solutions is a way to set which solution will support each maker
2727
> - This is a preview feature.
2828
> - [!INCLUDE [cc-preview-features-definition](../../includes/cc-preview-features-definition.md)]
2929
> - You can't set or view the preferred solution in the classic solution explorer.
30+
> - Components that are created in the classic solution explorer won't go into the preferred solution.
3031
3132
## Prerequisites
3233

powerapps-docs/maker/model-driven-apps/create-themes-organization-branding.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Change the color scheme or add a logo to match your brand (contains video) | MicrosoftDocs"
33
description: Learn how to change the color scheme for your app with Power Apps
44
ms.custom: ""
5-
ms.date: 01/12/2021
5+
ms.date: 10/16/2023
66
ms.reviewer: ""
77
ms.suite: ""
88
ms.tgt_pltfrm: ""
@@ -17,11 +17,11 @@ search.audienceType:
1717
---
1818
# Use a theme to create a custom look for your app
1919

20-
21-
2220
You can create a custom look and feel (a theme), for your app by making changes to the default colors and visual elements provided in the uncustomized system. For example, you can create your personal product branding by adding a company logo and providing table-specific coloring. A theme can be created by using the **Themes** area, without requiring a developer to write code. You can create, clone, change, or delete themes that are used in your environment.
2321

2422
> [!NOTE]
23+
> There's new way to create themes in model-driven apps for customizing the model-driven app header. More information: [Use modern themes](modern-theme-overrides.md)
24+
>
2525
> You can define multiple themes, but only a single theme can be active in an environment and is identified as the default theme. To make a theme active, you publish it.
2626
2727
<a name="UseThemes"></a>
Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,55 @@
11
---
2-
title: "FAQs for timeline control (section) in Power Apps | MicrosoftDocs"
3-
description: "FAQs for timeline control (section) in Power Apps"
4-
ms.date: 09/10/2021
5-
2+
title: "FAQs for timeline control in Power Apps | MicrosoftDocs"
3+
description: "Frequently asked questions (FAQs) for the timeline control in Power Apps"
4+
ms.date: 10/05/2023
65
ms.topic: troubleshooting
76
author: "lalexms"
8-
ms.assetid: 7F495EE1-1208-49DA-9B02-17855CEB2FDF
97
ms.subservice: mda-maker
108
ms.author: "laalexan"
9+
contributors:
10+
- dsierman
1111
search.audienceType:
1212
- maker
1313
---
14+
# FAQs for the timeline control
1415

15-
# FAQs for timeline control (classic)
16+
## A command isn't working. How do I use the command checker tool for timeline?
1617

18+
For instructions about how to enable and use the command checker, go to [Troubleshooting ribbon issues in Power Apps](/troubleshoot/power-platform/power-apps/create-and-use-apps/ribbon-issues)
1719

20+
If an error dialog box displays "We can't compete the action you've selected" when trying to use the command action for activities on a timeline, it might be that the command action is hidden by custom rules. You can confirm by checking if the same action is hidden from **Related** > **Activities**.
1821

19-
There aren't currently any FAQs. As new FAQs are raised, we will update this topic.
22+
:::image type="content" source="media/related-activities.png" alt-text="Go to related activities in the timeline":::
2023

24+
From the **Activities** tab, select the same activity that you want to perform the action on, and then check if you can perform the same command action from there.
2125

22-
## See also
26+
:::image type="content" source="media/select-related-activity.png" alt-text="Select the related activity that you want":::
2327

24-
[Set up timeline control](set-up-timeline-control.md)
28+
If the command action works here but not from the timeline, contact [Microsoft Support](/power-platform/admin/get-help-support).
29+
30+
If you can't find the command action from the related activity grid, you can further troubleshoot the issue with [command checker](https://powerapps.microsoft.com/en-us/blog/introducing-command-checker-for-model-app-ribbons/) to find out which custom rule hides the command.
31+
32+
1. Play the model-driven app that has the timeline.
33+
1. From a table record that displays the timeline, select **Related** > **Activities** to go to the **Open Activity Associated View**.
34+
1. Enable the command checker tool by appending the `&ribbondebug=true` parameter to the app URL.
35+
36+
:::image type="content" source="media/command-checker-url-param.png" alt-text="Append URL parameter to add command checker":::
37+
38+
1. Select the **Command checker** command, which now appears on the app command bar. It might be listed on the **More** overflow flyout menu.
2539

26-
[Timeline section in the Customer Service Hub app](/dynamics365/customer-service/customer-service-hub-user-guide-basics#timeline)
40+
:::image type="content" source="media/start-command-checker.png" alt-text="Start command checker":::
2741

28-
[Add an appointment, email, phone call, note, or task activity to the timeline](../../user/add-activities.md)
42+
1. From the command checker page that is displayed, select **Group Id: Mscrm.SubGrid.activitypointer.MainTab.Actions**, select a hidden command such as **Mark Complete (hidden)**, and then select the **Command properties** tab on the right to find out what custom rules are used to hide the command action.
43+
44+
:::image type="content" source="media/find-group-id.png" alt-text="Find group ID":::
45+
46+
> [!NOTE]
47+
> The timeline always displays command actions without honoring the custom rules to hide or disable the command button for performance reasons.
48+
49+
## See also
50+
51+
[Set up timeline control](set-up-timeline-control.md)
2952

53+
[Use the timeline control](../../user/add-activities.md)
3054

3155
[!INCLUDE[footer-include](../../includes/footer-banner.md)]
21.7 KB
Loading
131 KB
Loading
65.5 KB
Loading

0 commit comments

Comments
 (0)