March 2020
Beginner to intermediate
426 pages
13h 11m
English
This method is used to get data based on the primary key. In a request, we can specify the entity name, the entity primary key, and the columns that we want to fetch. We can use the following code to get data from the vehicle entity:
Entity vehicle = OrgService.Retrieve("him_vehicle", new Guid("F8D74085-C38D-E911-A969-000D3A29FEA4"), new ColumnSet(new string[] { "him_name", "him_make", "him_model"}));
In the preceding code, we are passing a specific entity record. Keep in mind that the preceding code is for demo purposes. It is not recommended to hardcode a GUID; instead, we should retrieve multiple requests to get a record's GUID based on the required condition.
Read now
Unlock full access