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/customize-entity-metadata.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ search.app:
17
17
---
18
18
# Customize table definitions
19
19
20
-
Tables are defined by table definitions. By defining or changing the table definitions, you can control the capabilities of a able. To view the table definitions for your environment, use the metadata browser. [Download the table definitions browser](https://download.microsoft.com/download/8/E/3/8E3279FE-7915-48FE-A68B-ACAFB86DA69C/MetadataBrowser_3_0_0_5_managed.zip).
20
+
Tables are defined by table definitions. By defining or changing the table definitions, you can control the capabilities of a table. To view the table definitions for your environment, use the metadata browser. [Download the table definitions browser](https://download.microsoft.com/download/8/E/3/8E3279FE-7915-48FE-A68B-ACAFB86DA69C/MetadataBrowser_3_0_0_5_managed.zip).
> It is possible to create and update table columns using the Web API. See [Create columns](webapi/create-update-entity-definitions-using-web-api.md#create-attributes) for more details.
25
+
> It is possible to create and update table columns using the Web API. See [Create columns](webapi/create-update-entity-definitions-using-web-api.md#create-columns) for more details.
26
26
27
27
## Table column messages
28
28
29
29
The following table lists the messages that you can use to perform actions on table columns.
|CreateAttribute</br></br>Create table columns|POST to `EntityMetadata Attributes collection-valued` navigation property with JSON definition of column. More information: [Create columns](webapi/create-update-entity-definitions-using-web-api.md#create-attributes)|<xref:Microsoft.Xrm.Sdk.Messages.CreateAttributeRequest>|
33
+
|CreateAttribute</br></br>Create table columns|POST to `EntityMetadata Attributes collection-valued` navigation property with JSON definition of column. More information: [Create columns](webapi/create-update-entity-definitions-using-web-api.md#create-columns)|<xref:Microsoft.Xrm.Sdk.Messages.CreateAttributeRequest>|
34
34
|DeleteAttribute</br></br>Delete table columns|DELETE to the URL of the column.|<xref:Microsoft.Xrm.Sdk.Messages.DeleteAttributeRequest>|
35
35
|DeleteOptionValue</br></br>Delete a choice from <xref:Microsoft.Xrm.Sdk.Metadata.PicklistAttributeMetadata> or <xref:Microsoft.Xrm.Sdk.Metadata.StatusAttributeMetadata> columns|<xrefhref="Microsoft.Dynamics.CRM.DeleteOptionValue?text=DeleteOptionValue Action" />|<xref:Microsoft.Xrm.Sdk.Messages.DeleteOptionValueRequest>|
36
36
|InsertOptionValue</br></br>Add a choice to a <xref:Microsoft.Xrm.Sdk.Metadata.PicklistAttributeMetadata> column|<xrefhref="Microsoft.Dynamics.CRM.InsertOptionValue?text=InsertOptionValue Action" />|<xref:Microsoft.Xrm.Sdk.Messages.InsertOptionValueRequest>|Add a choice to a <xref:Microsoft.Xrm.Sdk.Metadata.PicklistAttributeMetadata> column.|
37
37
|InsertStatusValue</br></br>Add a choice to a <xref:Microsoft.Xrm.Sdk.Metadata.StatusAttributeMetadata> column|<xrefhref="Microsoft.Dynamics.CRM.InsertStatusValue?text=InsertStatusValue Action" />|<xref:Microsoft.Xrm.Sdk.Messages.InsertStatusValueRequest>||Changes the order of the choice presented in an <xref:Microsoft.Xrm.Sdk.Metadata.PicklistAttributeMetadata> column|<xrefhref="Microsoft.Dynamics.CRM.OrderOption?text=OrderOption Action" />|<xref:Microsoft.Xrm.Sdk.Messages.OrderOptionRequest>|
38
38
|RetrieveAttribute</br></br>Retrieve table columns|Use the Web API query mentioned in [Querying EntityMetadata columns](webapi/query-metadata-web-api.md#bkmk_queryAttributesexample) to retrieve table columns.|<xref:Microsoft.Xrm.Sdk.Messages.RetrieveAttributeRequest>|
|UpdateStateValue</br></br>Update a label for a <xref:Microsoft.Xrm.Sdk.Metadata.StateAttributeMetadata> column|<xrefhref="Microsoft.Dynamics.CRM.UpdateStateValue?text=UpdateStateValue Action" />|<xref:Microsoft.Xrm.Sdk.Messages.UpdateStateValueRequest>|
You must use OAuth as described in [Use OAuth with Dataverse](../authenticate-oauth.md).
30
27
31
28
The code you write to manage authentication when using the Web API depends on the type of deployment and where your code is.
32
29
33
-
###Authenticate with JavaScript in web resources
30
+
## Authenticate with JavaScript in web resources
34
31
35
32
When you use the Web API with JavaScript within HTML web resources, form scripts, or ribbon commands you don’t need to include any code for authentication. In each of these cases the user is already authenticated by the application and authentication is managed by the application.
36
33
@@ -44,5 +41,4 @@ If you’re creating a single page application (SPA) using JavaScript you can us
44
41
[Use OAuth with Dataverse](../authenticate-oauth.md)<br />
45
42
[Use OAuth with Cross-Origin Resource Sharing to connect a Single Page Application](../oauth-cross-origin-resource-sharing-connect-single-page-application.md)
Copy file name to clipboardExpand all lines: powerapps-docs/developer/data-platform/webapi/compose-http-requests-handle-errors.md
+14-15Lines changed: 14 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
title: "Compose HTTP requests and handle errors (Microsoft Dataverse)| Microsoft Docs"
3
-
description: "Read about the HTTP methods and headers that form a part of HTTP requests that interact with the Web API and how to identify and handle errors returned in the response"
3
+
description: "Read about the HTTP methods and headers that form a part of HTTP requests for the Web API, and then learn how to identify and handle errors returned in the response"
You interact with the Web API by composing and sending HTTP requests. You need to know how to set the appropriate HTTP headers and handle any errors included in the response.
29
30
@@ -41,14 +42,13 @@ To access the Web API you must compose a URL using the parts in the following ta
41
42
|Base URL|`dynamics.com.`|
42
43
|Web API path|The path to the web API is `/api/data/`.|
43
44
|Version| The version is expressed this way: `v[Major_version].[Minor_version][PatchVersion]/`. The valid version for this release is `v9.1`.|
44
-
|Resource|The name of the entity, function, or action you want to use.|
45
-
45
+
|Resource|The name of the entity (table), function, or action you want to use.|
46
46
47
47
The URL you will use will be composed with these parts: Protocol + Environment Name + Region + Base URL + Web API path + Version + Resource.
48
48
49
49
<aname="version_compatiblity"></a>
50
50
51
-
### Version compatibility
51
+
### Version compatibility
52
52
53
53
This release introduces capabilities which are not available in previous versions. Subsequent minor versions may provide additional capabilities which will not be back ported to earlier minor versions. Your code written for v9.0 will continue to work in future versions when you reference v9.0 in the URL you use.
54
54
@@ -105,13 +105,13 @@ You can use additional headers to enable specific capabilities.
105
105
106
106
- To return formatted values with a query, include the odata.include-annotations preference set to `Microsoft.Dynamics.CRM.formattedvalue` using the [Prefer](https://tools.ietf.org/html/rfc7240) header. More information:[Include formatted values](query-data-web-api.md#bkmk_includeFormattedValues)
107
107
108
-
- You also use the `Prefer` header with the `odata.maxpagesize` option to specify how many pages you want to return. More information:[Specify the number of entities to return in a page](query-data-web-api.md#bkmk_specifyNumber)
108
+
- You also use the `Prefer` header with the `odata.maxpagesize` option to specify how many pages you want to return. More information:[Specify the number of tables (entities) to return in a page](query-data-web-api.md#bkmk_specifyNumber)
109
109
110
-
- To impersonate another user when the caller has the privileges to do so, add the `CallerObjectId` header with the user's Azure Active Directory Object Id value of the user to impersonate. This data is in the [SystemUser entity](/reference/entities/systemuser)[AzureActiveDirectoryObjectId](/reference/entities/systemuser#BKMK_AzureActiveDirectoryObjectId) attribute. More information:[Impersonate another user using the Web API](impersonate-another-user-web-api.md).
110
+
- To impersonate another user when the caller has the privileges to do so, add the `CallerObjectId` header with the user's Azure Active Directory Object Id value of the user to impersonate. This data is in the [SystemUser table/entity](/reference/entities/systemuser)[AzureActiveDirectoryObjectId](/reference/entities/systemuser#BKMK_AzureActiveDirectoryObjectId) attribute (column). More information:[Impersonate another user using the Web API](impersonate-another-user-web-api.md).
111
111
112
112
- To apply optimistic concurrency, you can apply the [If-Match](https://tools.ietf.org/html/rfc7232#section-3.1) header with an `Etag` value. More information:[Apply optimistic concurrency](perform-conditional-operations-using-web-api.md#bkmk_Applyoptimisticconcurrency).
113
113
114
-
- To control whether an upsert operation should actually create or update an entity, you can also use the `If-Match` and [If-None-Match](https://tools.ietf.org/html/rfc7232#section-3.2) headers. More information:[Upsert an entity](update-delete-entities-using-web-api.md#bkmk_upsert).
114
+
- To control whether an upsert operation should actually create or update an entity, you can also use the `If-Match` and [If-None-Match](https://tools.ietf.org/html/rfc7232#section-3.2) headers. More information:[Upsert a table (entity)](update-delete-entities-using-web-api.md#bkmk_upsert).
115
115
116
116
- When you execute batch operations, you must apply a number of different headers in the request and with each part sent in the body. More information:[Execute batch operations using the Web API](execute-batch-operations-using-web-api.md).
117
117
@@ -288,16 +288,15 @@ This can also be done using the Organization Service: [Add a Shared Variable fro
288
288
### See also
289
289
290
290
[Perform operations using the Web API](perform-operations-web-api.md)<br />
291
-
[Query Data using the Web API](query-data-web-api.md)<br />
292
-
[Create an entity using the Web API](create-entity-web-api.md)<br />
293
-
[Retrieve an entity using the Web API](retrieve-entity-using-web-api.md)<br />
294
-
[Update and delete entities using the Web API](update-delete-entities-using-web-api.md)<br />
295
-
[Associate and disassociate entities using the Web API](associate-disassociate-entities-using-web-api.md)<br />
291
+
[Query data using the Web API](query-data-web-api.md)<br />
292
+
[Create a table (entity) using the Web API](create-entity-web-api.md)<br />
293
+
[Retrieve a table (entity) using the Web API](retrieve-entity-using-web-api.md)<br />
294
+
[Update and delete tables (entities) using the Web API](update-delete-entities-using-web-api.md)<br />
295
+
[Associate and disassociate tables (entities) using the Web API](associate-disassociate-entities-using-web-api.md)<br />
296
296
[Use Web API functions](use-web-api-functions.md)<br />
297
297
[Use Web API actions](use-web-api-actions.md)<br />
298
298
[Execute batch operations using the Web API](execute-batch-operations-using-web-api.md)<br />
299
299
[Impersonate another user using the Web API](impersonate-another-user-web-api.md)<br />
300
300
[Perform conditional operations using the Web API](perform-conditional-operations-using-web-api.md)
0 commit comments