Get Field Service Object Field
Retrieves the value of an object’s field according to the value of another field. Relevant for Field Service objects only. For example, returns the ID of a Scheduling Policy according to a specific policy’s name.
This action is available in API version 65.0 and later.
Supported REST HTTP Methods
URI: /services/data/vXX.X/actions/standard/getFieldServiceObjectProperty
Where XX.X is the latest API version.
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is a variable.
Inputs
Input Type Description objectNamestring Required. The developer name of the Field Service object. For example, SchedulingPolicy. fieldNamestring Required. The name of the object’s field used to find the relevant object. For example Name. fieldValuestring Required. The value of the specific field used to find the relevant object. For example, Customer First. fieldToReturnstring Required. The name of the field whose value you want to return. For example, Id. isCustomObjectboolean Required. Indicates whether the object is a custom object (true) or a standard object (false).
Outputs
Output Type Description fieldServiceStandardVariablestring Returns the value of an object’s field as an Apex object, which contains a textValue, integerValue, or booleanValue.
Example
Sample request body:
1 {
2 "inputs" : [{
3 "objectName" : "SchedulingPolicy",
4 "fieldName" : "Name",
5 "fieldValue" : "Customer First",
6 "fieldToReturn" : "Id",
7 "isCustomObject" : false
8 }]
9 }
Sample response body:
1 {
2 "actionName" : "getFieldServiceObjectProperty",
3 "errors" : null,
4 "isSuccess" : true,
5 "outputValues" : {
6 "fieldServiceStandardVariable" : {
7 "textValue" : "0Vr000000000001AAA",
8 "integerValue" : null,
9 "booleanValue" : null
10 }
11 }
12 }