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/component-framework/reference/utility/lookupobjects.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Model-driven apps
29
29
30
30
| Parameter Name|Type|Required|Description|
31
31
| ------------- |----|--------|-----------|
32
-
|lookupOptions|`UtilityApi.LookupOptions`|Yes|Defines the options for opening the lookup dialog. The LookupOptions has the following elements:<br/>- **allowMultiSelect**: `Boolean`. Indicates whether the lookup allows more than one item to be selected.<br/>- **defaultEntityType**: `String`. The default table type to use.<br/>- **defaultViewId**: `String`. The default view to use.<br/>- **entityTypes**: `String[]`. The table types to display.<br/>- **viewIds**: `String[]`. The views to be available in the view picker. Only System views are supported (not user views).|
32
+
|lookupOptions|`UtilityApi.LookupOptions`|Yes|Defines the options for opening the lookup dialog. For a list of lookupOptions, see [lookupOptions](../../../model-driven-apps/clientapi/reference/Xrm-Utility/lookupObjects.md)|
Copy file name to clipboardExpand all lines: powerapps-docs/developer/data-platform/webapi/samples/basic-operations-client-side-javascript.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -36,15 +36,15 @@ This sample demonstrates how to perform basic CRUD (create, retrieve, update, an
36
36
37
37
To run this sample, the following is required:
38
38
39
-
- Access to Microsoft Dataverse online or on-premises version 8.0 or higher.
39
+
- Access to Microsoft Dataverse environment.
40
40
41
41
- A user account with privileges to import solutions and perform CRUD operations, typically a system administrator or system customizer security role.
42
42
43
43
<aname="bkmk_runsample"></a>
44
44
45
45
## Run this sample
46
46
47
-
To run this sample, download the solution package here [Microsoft CRM Web API Basic Operations Sample (Client-side JavaScript)](/samples/browse/). Download the Microsoft CRM Web API Basic Operations Sample (Client-side JavaScript).zip file and extract the contents. Locate the WebAPIBasicOperations_1_0_0_1_managed.zip solution and import it into your Dataverse organization and run the sample. For instructions on how to import the sample solution, see [Web API Samples (Client-side JavaScript)](../web-api-samples-client-side-javascript.md).
47
+
To run this sample, download the solution package from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/webapi/JS/WebAPIBasicOperations)and extract the contents. Locate the `WebAPIBasicOperations_1_0_0_1_managed.zip` solution and import it into your Dataverse environment and run the sample. For instructions on how to import the sample solution, see [Web API Samples (Client-side JavaScript)](../web-api-samples-client-side-javascript.md).
48
48
49
49
<aname="bkmk_codesample"></a>
50
50
@@ -868,9 +868,9 @@ Sdk.deleteSampleData = function () {
868
868
### See also
869
869
870
870
[Use the Dataverse Web API](../overview.md)<br />
871
-
[Create an entity using the Web API](../create-entity-web-api.md)<br />
872
-
[Retrieve an entity using the Web API](../retrieve-entity-using-web-api.md)<br />
873
-
[Update and delete entities using the Web API](../update-delete-entities-using-web-api.md)<br />
871
+
[Create a table using the Web API](../create-entity-web-api.md)<br />
872
+
[Retrieve a table using the Web API](../retrieve-entity-using-web-api.md)<br />
873
+
[Update and delete tables using the Web API](../update-delete-entities-using-web-api.md)<br />
874
874
[Web API Samples](../web-api-samples.md)<br />
875
875
[Web API Basic Operations Sample](../web-api-basic-operations-sample.md)<br />
876
876
[Web API Basic Operations Sample (C#)](cdswebapiservice-basic-operations.md)<br />
Copy file name to clipboardExpand all lines: powerapps-docs/developer/data-platform/webapi/samples/conditional-operations-client-side-javascript.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -36,15 +36,15 @@ This sample demonstrates how to perform conditional operations using Microsoft D
36
36
37
37
To run this sample, the following is required:
38
38
39
-
- Access to Dataverse online version 8.0 or higher.
39
+
- Access to Dataverse environment.
40
40
41
41
- A user account with privileges to import solutions and perform CRUD operations, typically a system administrator or system customizer security role.
42
42
43
43
<aname="bkmk_runsample"></a>
44
44
45
45
## Run this sample
46
46
47
-
To run this sample, go to [Microsoft CRM Web API Conditional Operations Sample (Client-side JavaScript)](/samples/browse/) and download the Microsoft CRM Web API Conditional Operations Sample (Client-side JavaScript).zip sample file. Extract the contents and locate the WebAPIConditionalOperations_1_0_0_0_managed.zip managed solution. Import the managed solution into your Dataverse organization and view the solution configuration page to run the sample. For instructions on how to import the sample solution, see [Web API Samples (Client-side JavaScript)](../web-api-samples-client-side-javascript.md).
47
+
To run this sample, download the solution package from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/webapi/JS/WebAPIConditionalOperations), extract the contents, and locate the `WebAPIConditionalOperations_1_0_0_0_managed.zip` managed solution. Import the managed solution into your Dataverse environment and view the solution configuration page to run the sample. For instructions on how to import the sample solution, see [Web API Samples (Client-side JavaScript)](../web-api-samples-client-side-javascript.md).
Copy file name to clipboardExpand all lines: powerapps-docs/developer/data-platform/webapi/samples/functions-actions-client-side-javascript.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,14 +41,14 @@ This sample demonstrates how to perform bound and unbound functions and actions,
41
41
42
42
To run this sample, the following is required:
43
43
44
-
- Access to Dataverse online or on-premises version 8.0 or higher.
44
+
- Access to Dataverse environment.
45
45
- A user account with privileges to import solutions and perform CRUD operations, typically a system administrator or system customizer security role.
46
46
47
47
<aname="bkmk_runsample"></a>
48
48
49
49
## Run this sample
50
50
51
-
To run this sample, go to [Microsoft CRM Web API Functions and Actions Sample (Client-side JavaScript)](/samples/browse/) and download the Microsoft CRM Web API Functions and Actions Sample (Client-side JavaScript).zip sample file. Extract the contents and locate the WebAPIFunctionsandActions_1_0_0_0_managed.zip managed solution file. Import the managed solution into your Dataverse organization and view the configuration page of the solution to run the sample. For instructions on how to import the sample solution, see [Web API Samples (Client-side JavaScript)](../web-api-samples-client-side-javascript.md).
51
+
To run this sample, download the solution package from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/webapi/JS/WebAPIFunctionsAndActions), extract the contents, and locate the `WebAPIFunctionsandActions_1_0_0_0_managed.zip` managed solution file. Import the managed solution into your Dataverse organization and view the configuration page of the solution to run the sample. For instructions on how to import the sample solution, see [Web API Samples (Client-side JavaScript)](../web-api-samples-client-side-javascript.md).
Copy file name to clipboardExpand all lines: powerapps-docs/developer/data-platform/webapi/samples/query-data-client-side-javascript.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ This sample demonstrates how to perform basic query requests using the Microsoft
43
43
44
44
## Run this sample
45
45
46
-
To run this sample, go to [Microsoft CRM Web API Query Data Sample (Client-side JavaScript)](/samples/browse/) and download the sample archive file: Microsoft CRM Web API Query Data Sample (Client-side JavaScript).zip. Extract the contents of the sample archieve and locate the WebAPIQueryData_1_0_0_0_managed.zip managed solution file. Import the managed solution into your Dataverse organization and run the sample. For instructions on how to import the sample solution, see [Web API Samples (Client-side JavaScript)](../web-api-samples-client-side-javascript.md).
46
+
To run this sample,download the solution package from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/webapi/JS/WebAPIQueryData). Extract the contents of the sample and locate the `WebAPIQueryData_1_0_0_0_managed.zip` managed solution file. Import the managed solution into your Dataverse organization and run the sample. For instructions on how to import the sample solution, see [Web API Samples (Client-side JavaScript)](../web-api-samples-client-side-javascript.md).
This topic provides common understanding about Web API samples using client-side JavaScript. While each sample focuses on a different aspect of Microsoft Dataverse Web API, they all follow similar process and structure described in this topic.
29
+
This article provides common understanding about Web API samples using client-side JavaScript. While each sample focuses on a different aspect of Microsoft Dataverse Web API, they all follow similar process and structure described in this topic.
30
30
31
31
<aname="bkmk_listOfSamples"></a>
32
32
## Web API Samples using client-side JavaScript
@@ -40,16 +40,20 @@ This topic provides common understanding about Web API samples using client-side
40
40
|[Web API Functions and Actions Sample (Client-side JavaScript)](samples/functions-actions-client-side-javascript.md)|[Web API Functions and Actions Sample](web-api-functions-actions-sample.md)|Demonstrates how to use bound and unbound functions and actions, including custom actions.|
41
41
42
42
<aname="bkmk_howToDownload"></a>
43
+
43
44
## How to download the source code for the sample.
44
-
The source code for each sample is available on [MSDN Code Gallery](https://code.msdn.microsoft.com/site/search?f%5b0%5d.type=user&f%5b0%5d.value=microsoft%20dynamics%20crm%20sdk%20documentation%20team). The link to download each sample is included in the individual page for that sample.
45
+
46
+
The source code for each sample is available on [GitHub](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/webapi/JS). The link to download each sample is included in the individual page for that sample.
45
47
46
-
After you download the sample, extract the compressed file. Find the Microsoft Visual Studio 2015 solution for each sample within the C# folder because the project is an empty ASP.NET web application project. A Dataverse solution is also provided in the download that you can import and run.
48
+
After you download the sample, extract the compressed file. Find the solution for each sample within the C# folder because the project is an empty ASP.NET web application project. A Dataverse solution is also provided in the download that you can import and run.
47
49
48
50
> [!NOTE]
49
-
> Neither Visual Studio or ASP.NET is required to develop client-side JavaScript for Dataverse, however the MSDN Code Gallery site requires files be included in a Visual Studio as a container. However, Visual Studio does provide a good experience for writing JavaScript.
51
+
> Neither Visual Studio or ASP.NET is required to develop client-side JavaScript for Dataverse. However, Visual Studio does provide a good experience for writing JavaScript.
50
52
51
53
<aname="bkmk_HowToImport"></a>
54
+
52
55
## How to import the Dataverse solution that contains the sample.
56
+
53
57
Within each project you will find a Dataverse managed solution file. The name of this file will depend on the sample's project name, but the file name will end with `_managed.zip`.
54
58
55
59
To import the Dataverse solution to your Dataverse server, do the following:
@@ -58,27 +62,27 @@ This topic provides common understanding about Web API samples using client-side
58
62
59
63
2. In the Dataverse UI, go to **Settings > Solutions**. This page lists all solutions on your Dataverse server. After you finished importing this solution, the solution name for that sample will appear in this list (e.g.: **Web API Basics Operations**).
60
64
61
-
3.Click**Import** and follow the instructions on the import dialog to complete this action.
65
+
3.Select**Import** and follow the instructions on the import dialog to complete this action.
62
66
63
67
<aname="bkmk_howToRunSample"></a>
64
68
## How to run the sample to see the script in action
65
69
The sample program runs as a web resource within Dataverse. The imported solution provides a configuration page that gives you an option to keep or delete sample data and a button to start the sample program.
66
70
67
71
To run the sample, do the following:
68
72
69
-
1. From the **All Solutions** page in Dataverse, click the solution name (e.g.: **Web API Basics Operations** link). This will open the solution's properties in a new window.
73
+
1. From the **All Solutions** page in Dataverse, select the solution name (e.g.: **Web API Basics Operations** link). This will open the solution's properties in a new window.
70
74
71
-
2. From the left navigation menu, click**Configuration**.
75
+
2. From the left navigation menu, select**Configuration**.
72
76
73
-
3.Click**Start Sample** button to execute the sample code.
77
+
3.Select**Start Sample** button to execute the sample code.
74
78
75
79
<aname="bkmk_commonElements"></a>
76
80
## Common elements found in each sample
77
81
The following list highlights some common elements found in each of these samples.
78
82
79
-
- The `Sdk.startSample` function is called when a user clicks the **Start Sample** button from the HTML page. The `Sdk.startSample` function initializes global variables and kicks off the first operation in the chain.
83
+
- The `Sdk.startSample` function is called when a user selects the **Start Sample** button from the HTML page. The `Sdk.startSample` function initializes global variables and kicks off the first operation in the chain.
80
84
81
-
- Program output and error messages are sent to the browser’s debugger console. To see these output, open the console window first before running the sample. Press F12 to access the developer tools, including the console window, in the Internet Explorer and Microsoft Edge browsers.
85
+
- Program output and error messages are sent to the browser’s debugger console. To see these output, open the console window first before running the sample. Press F12 to access the developer tools, including the console window, in Microsoft Edge browser.
82
86
83
87
- These samples use the browser native [ES6-Promise](https://msdn.microsoft.com/library/dn802826\(v=vs.94\).aspx) implementation for modern browsers that support it. For Internet Explorer, this sample uses the [ES6-Promise polyfill](https://github.com/stefanpenner/es6-promise) because Internet Explorer is the only browser supported by Dataverse which does not have native support for this feature.
0 commit comments