Skip to content

Commit 50784ae

Browse files
authored
Update webapi-node.ts
1 parent 6dd0cf8 commit 50784ae

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/dataverse-webapi/src/webapi-node.ts

+18
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,24 @@ export function retrieve(
7878
return webApi.retrieve(apiConfig, entitySet, id, submitRequest, queryString, queryOptions);
7979
}
8080

81+
/**
82+
* Retrieve a record from CRM by Alternate Key
83+
* @param apiConfig WebApiConfig object
84+
* @param entityType Type of entity to retrieve
85+
* @param id Id of record to retrieve
86+
* @param queryString OData query string parameters
87+
* @param queryOptions Various query options for the query
88+
*/
89+
export function retrieveByKey(
90+
apiConfig: WebApiConfig,
91+
entitySet: string,
92+
key: string,
93+
queryString?: string,
94+
queryOptions?: QueryOptions
95+
): Promise<Entity> {
96+
return webApi.retrieveByKey(apiConfig, entitySet, key, submitRequest, queryString, queryOptions);
97+
}
98+
8199
/**
82100
* Retrieve multiple records from CRM
83101
* @param apiConfig WebApiConfig object

0 commit comments

Comments
 (0)