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/maker/portals/add-web-resource.md
+21-13Lines changed: 21 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,30 @@
1
1
---
2
-
title: "Add azure storage web resource to a form | MicrosoftDocs"
3
-
description: "Steps to add azure storage web resource to a form to enable uploading attachments to Azure Storage."
2
+
title: "Add Azure storage web resource to a form | MicrosoftDocs"
3
+
description: "Steps to add Azure storage web resource to a form to enable uploading attachments to Azure Storage."
4
4
author: tapanm-msft
5
5
manager: kvivek
6
6
ms.service: powerapps
7
7
ms.topic: conceptual
8
8
ms.custom:
9
-
ms.date: 02/11/2020
9
+
ms.date: 05/05/2020
10
10
ms.author: tapanm
11
11
ms.reviewer: tapanm
12
12
---
13
13
14
14
# Add the Azure Storage web resource to a form
15
15
16
-
Attachments uploaded to Azure Storage instead of directly to Common Data Service can be managed by using notes in Common Data Service.
16
+
Attachments uploaded to Azure Storage instead of directly to Common Data Service can be managed by using notes in Common Data Service.
17
17
18
18
To enable attachments from a particular form to be uploaded into Azure Storage, you must add a web resource to that form and you must [configure Azure Storage for your organization](enable-azure-storage.md).
19
19
20
20
> [!NOTE]
21
-
In this example, the form is added to the Lead form for the Lead entity. We recommend using caution when editing existing forms.
21
+
> In this example, the form is added to the Lead form for the Lead entity. We recommend using caution when editing existing forms.
22
22
23
-
When a file (for example, attachments.zip) is uploaded to Azure Storage by using the portal, it is represented by a note on an entity and a placeholder for the attachment.
23
+
When a file (for example, attachments.zip) is uploaded to Azure Storage by using the portal, it's represented by a note on an entity and a placeholder for the attachment.
24
24
25
25

26
26
27
-
Note that the attachment file is now named attachment.zip.txt. By default, Common Data Service has no conception of an Azure file, so this placeholder .txt file is stored in Common Data Service instead. The Azure Storage context for the placeholder file shows details about the file.
27
+
The attachment file is now named attachment.zip.txt. By default, Common Data Service has no conception of an Azure file, so this placeholder .txt file is stored in Common Data Service instead. The Azure Storage context for the placeholder file shows details about the file.
28
28
```
29
29
{
30
30
Name: attachment.zip,
@@ -34,7 +34,7 @@ Note that the attachment file is now named attachment.zip.txt. By default, Commo
34
34
}
35
35
```
36
36
37
-
To see and interact with the file stored in Azure, you must add the web resource adx.annotations.html to the form. As a pre-requisite, ensure that your users have read access to adx_setting. Otherwise, the web resource will not render properly.
37
+
To see and interact with the file stored in Azure, you must add the web resource adx.annotations.html to the form. As a pre-requisite, ensure that your users have read access to adx_setting. Otherwise, the web resource won't render properly.
38
38
39
39
1. In the form editor for the relevant form, select **Web Resource** on the **Insert** tab.
40
40
@@ -48,7 +48,7 @@ To see and interact with the file stored in Azure, you must add the web resource
48
48
49
49
6. Select **OK** to save the resource.
50
50
51
-
7. Optionally, you might want to remove the existing notes control, or move it to a tab or section that is marked to be not visible by default.
51
+
7. Optionally, you can remove the existing notes control. Or move it to a tab or a section marked to be not visible by default.
52
52
53
53
8. Save the form, and then publish the changes.
54
54
@@ -58,25 +58,33 @@ The new control will now be rendered on the page, giving you the ability to mana
58
58
59
59

60
60
61
-
The paper-clip icon has been replaced with a cloud icon to denote that this file is stored in Azure Storage. You can continue to store attachments in Common Data Service; those files will be denoted with the paper-clip icon.
61
+
The paper-clip icon has been replaced with a cloud icon to denote that this file is stored in Azure Storage. You can continue to store attachments in Common Data Service; those files will be denoted with the paper-clip icon.
62
62
63
63
> [!Note]
64
64
> You must add cross-origin resource sharing (CORS) rule on your Azure Storage account as follows, otherwise you will see the regular attachment icon rather than the cloud icon.
65
65
> -**Allowed origins**: Specify your ___domain. For example, `https://contoso.crm.dynamics.com`.
66
66
> -**Allowed verbs**: GET, PUT, DELETE, HEAD, POST
67
67
> -**Allowed headers**: Specify the request headers that the origin ___domain may specify on the CORS request. For example, x-ms-meta-data\*, x-ms-meta-target\*. For this scenario, you must specify *, otherwise the web resource will not render properly.
68
-
> -**Exposed headers**: Specify the response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer. For example, x-ms-meta-\*.
68
+
> -**Exposed headers**: Specify the response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer. Examples - \* or x-ms-meta-\*. For this scenario, you must specify *, otherwise the web resource will not render properly.
69
69
> -**Maximum age (seconds)**: Specify the maximum amount time that a browser should cache the preflight OPTIONS request. For example, 200.
70
70
>
71
71
> [!include[More information](../../includes/proc-more-information.md)][CORS support for the Azure Storage Services](https://docs.microsoft.com/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services).
72
72
73
-
If the attached file is an image, the control will display the image as a thumbnail whether it is stored in Common Data Service or Azure Storage.
73
+
If the attached file is an image, the control will display the image as a thumbnail whether it's stored in Common Data Service or Azure Storage.
74
74
75
75
> [!Note]
76
76
> The thumbnail feature is limited to images under 1 MB in size.
During migration, the processes may get deactivated. This may cause attachments to upload to Common Data Service instead of Azure Storage after you follow steps to add web resource. Ensure these two processes are activated to upload attachments to Azure Storage.
87
+
80
88
## CORS protocol support
81
89
82
90
The [cross-origin resource sharing (CORS)](https://www.w3.org/TR/cors/) protocol consists of a set of headers that indicates whether a response can be shared with another ___domain.
@@ -87,7 +95,7 @@ The following site settings are used to configure CORS:
87
95
| HTTP/Access-Control-Allow-Credentials | Access-Control-Allow-Credentials | The only valid value for this header is true (case-sensitive). If you don't need credentials, omit this header entirely (rather than setting its value to false).
88
96
| HTTP/Access-Control-Allow-Headers | Access-Control-Allow-Headers | A comma-delimited list of the supported HTTP request headers.
89
97
| HTTP/Access-Control-Allow-Methods | Access-Control-Allow-Methods | A comma-delimited list of the allowed HTTP request methods such as GET, POST, OPTIONS.
90
-
| HTTP/Access-Control-Allow-Origin | Access-Control-Allow-Origin |To allow any resource to access your resources, you can specify \*. Otherwise, specify the URI that can access the resources. |
98
+
| HTTP/Access-Control-Allow-Origin | Access-Control-Allow-Origin |URL of the Dynamics 365 instance, such as https://contoso.crm.dynamics.com. To allow any URI to access your resources, use \*.|
91
99
| HTTP/Access-Control-Expose-Headers | Access-Control-Expose-Headers | A comma-delimited list of HTTP header names other than the simple response headers that the resource might use and can be exposed.
92
100
| HTTP/Access-Control-Max-Age | Access-Control-Max-Age | Maximum number of seconds the results can be cached.
93
101
| HTTP/Content-Security-Policy | Content-Security-Policy | Controls resources the user agent is allowed to load for a given page.
0 commit comments