Form-Based Query a. (Available only for collection of objects) Under the Filter group, do the following: a. In the Join By list, select a logical operator to join the filter clauses. The default value is and. b. Under Filter Clauses, click Add to add a filter: ▪ Property—Select a property. ▪ Matching Condition—Select a condition. The condition depends on the type of the property selected such as String, Boolean, and so on. ▪ Value—Enter a property value. Click Add to add multiple filters. Click to delete any filter that you added. If you add the same properties and select AND in the Join By list, the attributes are joined by the OR operator. b. Under Select Properties, click Add, and in the Property list, select the property for which you want to retrieve values. Click Add to add multiple properties. Click to delete any property that you added. By default, if you select any property, then values for the selected properties and ‘key’ properties are retrieved in the output. If you do not select any property, then by default, all entity properties are included in the output. c. Under Add Related Items, click Add, and in the Related Item list, select the related item for which you want to retrieve values. Click Add to add multiple related items. Click to delete any related item that you added. Any property marked as NavigationProperty is categorized as a Related Item. d. (Available only for collection of objects) In the Limit field, enter a value to limit the output to a specified number of entities. e. (Available only for collection of objects) In the Skip field, enter the number of resources that you want to skip. |
Discrete Query a. (Available only for collection of objects) In the Filters field, specify OData filter criteria in the propertyName operator 'value' [and | or | not]... format. For example, number eq '0000222341' or name eq 'PTC' or startswith(name, 'PTC') b. In the Select Properties field, specify an OData select expression to provide a comma-separated list of property names. By default, if you specify any property in the query, then values for the selected properties are retrieved in the output. If you do not specify any property, then by default, all entity properties are included in the output. c. In the Add Related Items field, specify an OData select expression to provide a comma-separated list of related items. Any property marked as NavigationProperty is categorized as a Related Item. d. (Available only for collection of objects) In the Limit field, enter the number of search results that you want to retrieve. e. (Available only for collection of objects) In the Skip field, enter the number of top search results that you want to skip from the result. |
Raw Query In the Query field, specify an OData query expression. For example: $select=name,number&$expand=context&$top=2&$skip=1&$orderby=name asc&$filter=name eq 'PTC' By default, if you specify any property in the query, then values for the selected properties are retrieved in the output. If you do not specify any property, then by default, all entity properties are included in the output. Any property marked as NavigationProperty is categorized as a Related Item. Depending on the return type of the function, you can provide filters, limit, and skip parameters in the query expression. |