Oracle Field Service
App · 19 actions
Read and monitor Oracle Field Service records from your connected account.
Actions
| Action | What it does |
|---|---|
| Get a field resource | Get a field resource. |
| Get an activity | Get an activity. |
| List activity resource preferences | List activity resource preferences. |
| List child resources | List child resources. |
| List customer inventory for an activity | List customer inventory for an activity. |
| List daily extract dates | List daily extract dates. |
| List descendant resources | List descendant resources. |
| List dispatched activities | List dispatched activities. |
| List event subscriptions | List event subscriptions. |
| List field resources | List field resources. |
| List inventory installed during an activity | List inventory installed during an activity. |
| List inventory removed during an activity | List inventory removed during an activity. |
| List linked activities | List linked activities. |
| List required activity inventory | List required activity inventory. |
| List resource assistants | List resource assistants. |
| List resource inventory | List resource inventory. |
| List resource work skills | List resource work skills. |
| List submitted activity forms | List submitted activity forms. |
| List users assigned to a resource | List users assigned to a resource. |
Get a field resource
Get a field resource.
Inputs
- Resource
resource_idtextRequired - The unique identifier of the resource in Oracle Field Service.
- Expand
expandlist - The sub-entities that are embedded into each resource item returned in the response. The value is a comma-separated string containing a combination of the following values: inventories, workZones, workSkills, and workSchedules. If one or more values are specified then tOne or more of:
inventories,workSkills,workZones,workSchedules. - Fields
fieldslist - The comma-separated names of the resource fields that are returned in the response. If the value of this parameter is not specified, then all the resource fields and custom properties are returned by default. If the resource fields are specified, then only the 'resource
Outputs
dataobject- The resource used for an activity. For example, a resource can be a technician, a truck, or a bucket. Note : This resource is not the same as a REST resource.
Example output
{
"data": {
"avatar": {
"links": [
{}
]
},
"dateFormat": "Example",
"durationStatisticsInitialPeriod": 1,
"durationStatisticsInitialRatio": 1,
"email": "Example",
"language": "Example",
"name": "Example",
"organization": "Example",
"parentResourceId": "sample_parentResourceId",
"phone": "Example",
"resourceId": "sample_resourceId",
"resourceInternalId": 1,
"resourceType": "Example",
"status": "active",
"timeFormat": "Example",
"timeZone": "Example",
"timeZoneDiff": 1,
"timeZoneIANA": "Example"
}
}Get an activity
Get an activity.
Inputs
- Activity ID
activity_idnumberRequired - The unique identifier of the activity in Oracle Field Service.
Outputs
dataobject- The properties of the activity.
Example output
{
"data": {
"accessSchedule": "Example",
"activityId": 1,
"autoRoutedToDate": "Example",
"city": "Example",
"customerEmail": "Example",
"customerName": "Example",
"date": "Example",
"deliveryWindowStart": "Example",
"endTime": "Example",
"firstManualOperation": "Example",
"ibAssetId": 1,
"masterActivityId": 1,
"pjfProjectElementId": 1,
"pjfProjectId": 1,
"reminderTime": 1,
"resourceId": "sample_resourceId",
"resourceTimeZone": "Example",
"resourceTimeZoneDiff": 1,
"resourceTimeZoneIANA": "Example",
"serviceWindowEnd": "Example",
"serviceWindowStart": "Example",
"slaWindowEnd": "Example",
"slaWindowStart": "Example",
"startTime": "Example",
"stateProvince": "Example",
"status": "cancelled",
"streetAddress": "Example",
"svcWorkOrderId": 1,
"teamResourceId": "sample_teamResourceId",
"timeOfBooking": "Example",
"timeZone": "Example",
"timeZoneIANA": "Example",
"travelTime": 1,
"wieWorkOrderId": 1,
"wieWorkOrderOperationId": 1,
"workZone": "Example"
}
}List activity resource preferences
List activity resource preferences.
Inputs
- Activity
activity_idtextRequired - The unique identifier of the activity in Oracle Field Service.
Outputs
dataobject- The collection of resource preferences that can be assigned to an activity.
Example output
{
"data": {
"items": [
{
"preferenceType": "required",
"resourceId": "sample_resourceId"
}
]
}
}List child resources
List child resources.
Inputs
- Resource
resource_idtextRequired - The unique identifier of the resource in Oracle Field Service.
- Can be team holder
can_be_team_holdertrue/false - If specified, the response will be filtered accordingly to the resource type feature 'Can be a team holder'
- Can participate in team
can_participate_in_teamtrue/false - If specified, the response will be filtered accordingly to the resource type feature 'Can participate in team'
- Offset
offsetnumber - The record number from which the retrieval starts. The default value is zero. If no value is specified, then it defaults to zero. The value zero indicates that the retrieval will start from the beginning of the collection.
- Limit
limitnumber - The number of items to be returned in the response. The minimum value that can be specified is 1 and the maximum value that can be specified is 100. If the specified value is greater than 100, zero, or if no value is specified, then it defaults to 100.
- Expand
expandlist - The sub-entities that are embedded into each resource item returned in the response. The value is a comma-separated string containing a combination of the following values: inventories, workZones, workSkills, and workSchedules. If one or more values are specified then tOne or more of:
inventories,workSkills,workZones,workSchedules. - Fields
fieldslist - The comma-separated names of the resource fields that are returned in the response. If the value of this parameter is not specified, then all the resource fields and custom properties are returned by default. If the resource fields are specified, then only the 'resource
Outputs
dataobject- The collection of resources.
Example output
{
"data": {
"items": [
{
"avatar": {},
"dateFormat": "Example",
"durationStatisticsInitialPeriod": 1,
"durationStatisticsInitialRatio": 1,
"email": "Example",
"language": "Example",
"name": "Example",
"organization": "Example",
"parentResourceId": "sample_parentResourceId",
"phone": "Example",
"resourceId": "sample_resourceId",
"resourceInternalId": 1,
"resourceType": "Example",
"status": "active",
"timeFormat": "Example",
"timeZone": "Example",
"timeZoneDiff": 1,
"timeZoneIANA": "Example"
}
],
"limit": 1,
"offset": 1,
"totalResults": 1
}
}List customer inventory for an activity
List customer inventory for an activity.
Inputs
- Activity ID
activity_idnumberRequired - The unique identifier of the activity in Oracle Field Service.
- Offset
offsetnumber - The record number from which the retrieval starts. The default value is zero. If no value is specified, then it defaults to zero. The value zero indicates that the retrieval will start from the beginning of the collection.
- Limit
limitnumber - The number of items to be returned in the response. The minimum value that can be specified is 1 and the maximum value that can be specified is 100. If the specified value is greater than 100, zero, or if no value is specified, then it defaults to 100.
- Filter
filtertext - Boolean filter expression used to filter inventory items returned by the API. Supported fields: inventoryType , serialNumber , quantity Supported operators: < , > , <= , >= , == , != , AND , OR , NOT Rules: String values must use single quotes. Numeric value
Outputs
dataobject- The collection of customer inventories assigned to the specified activity.
Example output
{
"data": {
"items": [
{
"activityId": 1,
"exchangedInventoryId": 1,
"inventoryId": 1,
"inventoryType": "Example",
"quantity": 1,
"resourceId": "sample_resourceId",
"serialNumber": "Example",
"status": "customer"
}
]
}
}List daily extract dates
List daily extract dates.
Inputs
None.
Outputs
dataobject- The list of subfolders with daily extract files. Each subfolder is named in the 'YYYY-MM-DD' format.
Example output
{
"data": {
"items": [
{
"links": [
{}
],
"name": "Example"
}
]
}
}List descendant resources
List descendant resources.
Inputs
- Resource
resource_idtextRequired - The unique identifier of the resource in Oracle Field Service.
- Can be team holder
can_be_team_holdertrue/false - If specified, the response will be filtered accordingly to the resource type feature 'Can be a team holder'
- Can participate in team
can_participate_in_teamtrue/false - If specified, the response will be filtered accordingly to the resource type feature 'Can participate in team'
- Offset
offsetnumber - The record number from which the retrieval starts. The default value is zero. If no value is specified, then it defaults to zero. The value zero indicates that the retrieval will start from the beginning of the collection.
- Limit
limitnumber - The number of items to be returned in the response. The minimum value that can be specified is 1 and the maximum value that can be specified is 100. If the specified value is greater than 100, zero, or if no value is specified, then it defaults to 100.
- Expand
expandlist - The sub-entities that are embedded into each resource item returned in the response. The value is a comma-separated string containing a combination of the following values: inventories, workZones, workSkills, and workSchedules. If one or more values are specified then tOne or more of:
inventories,workSkills,workZones,workSchedules. - Fields
fieldslist - The comma-separated names of the resource fields that are returned in the response. If the value of this parameter is not specified, then all the resource fields and custom properties are returned by default. If the resource fields are specified, then only the 'resource
Outputs
dataobject- The collection of resources.
Example output
{
"data": {
"items": [
{
"avatar": {},
"dateFormat": "Example",
"durationStatisticsInitialPeriod": 1,
"durationStatisticsInitialRatio": 1,
"email": "Example",
"language": "Example",
"name": "Example",
"organization": "Example",
"parentResourceId": "sample_parentResourceId",
"phone": "Example",
"resourceId": "sample_resourceId",
"resourceInternalId": 1,
"resourceType": "Example",
"status": "active",
"timeFormat": "Example",
"timeZone": "Example",
"timeZoneDiff": 1,
"timeZoneIANA": "Example"
}
],
"limit": 1,
"offset": 1,
"totalResults": 1
}
}List dispatched activities
List dispatched activities.
Inputs
- Resources
resourceslist - The comma-separated list of resource IDs that are returned in the response. This parameter works in conjunction with the includeChildren parameter.
- Include children
include_childrentext - Indicates whether the subordinate resources must be returned. If the value is none, then only the activities assigned to the specified resource are returned. If the value is immediate, then the activities assigned to the specified resource and its first level descendantOne of:
none,immediate,all. - Q
qtext - Boolean filter expression used to filter inventory items returned by the API. Supported fields: inventoryType , serialNumber , quantity Supported operators: < , > , <= , >= , == , != , AND , OR , NOT Rules: String values must use single quotes. Numeric value
- Date from
date_fromdate - The activities that begin from the specified date are retrieved in the response. Specify the date in YYYY-MM-DD format. It is optional if the parameter 'includeNonScheduled' = true. If the dateForm is specified, the dateTo parameter should also be specified. Example: ht
- Date to
date_todate - The activities that end until the specified date are retrieved in the response. Specify the date in YYYY-MM-DD format. If dateTo is specified, the dateFrom parameter must also be specified. Example: https://<environment_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v
- Fields
fieldslist - The comma-separated field names that are returned in the response. The field names are the names that you specify when you create an activity or retrieve an activity. The field names can also contain custom property names. 'positionInRoute' cannot be retrieved via API.
- Include non scheduled
include_non_scheduledtrue/false - Indicates whether non-scheduled activities must be returned. If the value is not specified, then non-scheduled activities are not returned. If the value of this parameter is 'true', then the 'dateFrom' and 'dateTo' are not required. If the 'dateFrom' and 'dateTo' parame
- Svc work order ID
svc_work_order_idnumber - Optional parameter. Allows to limit the search to the activities related to the specific Work Order (activity field svcWorkOrderId). only for activities related to the specified work order. If this parameter is specified, the parameters dateFrom, dateTo and resources be
- Offset
offsetnumber - The record number from which the retrieval starts. The default value is zero. If no value is specified, then it defaults to zero. The value zero indicates that the retrieval will start from the beginning of the collection.
- Limit
limitnumber - The number of activities to be returned in the response. The minimum value that can be specified is 1 and the maximum value that can be specified is 100,000. If the specified value is greater than 100,000, then it defaults to 100,000.
Outputs
dataobject- The collection of activities.
Example output
{
"data": {
"expression": "Example",
"hasMore": false,
"items": [
{
"accessSchedule": "Example",
"activityId": 1,
"autoRoutedToDate": "Example",
"customerEmail": "Example",
"customerName": "Example",
"date": "Example",
"endTime": "Example",
"ibAssetId": 1,
"masterActivityId": 1,
"pjfProjectElementId": 1,
"pjfProjectId": 1,
"reminderTime": 1,
"resourceId": "sample_resourceId",
"startTime": "Example",
"status": "cancelled",
"svcWorkOrderId": 1,
"teamResourceId": "sample_teamResourceId",
"travelTime": 1,
"wieWorkOrderId": 1,
"wieWorkOrderOperationId": 1
}
],
"limit": 1,
"offset": 1
}
}List event subscriptions
List event subscriptions.
Inputs
- All subscriptions
all_subscriptionstrue/false - Contains one of the following values: true or false. If true, all subscriptions in the Oracle Field Service application are returned, even if the subscriptions are created by other applications. If false, then only the subscriptions created by other applications are ret
Outputs
datalist- The response from Oracle Field Service.
Example output
{
"data": [
{
"applicationId": "sample_applicationId",
"createdTime": "Example",
"expirationTime": "Example",
"subscriptionConfig": [
{}
],
"subscriptionId": "sample_subscriptionId",
"subscriptionTitle": "Example"
}
]
}List field resources
List field resources.
Inputs
- Can be team holder
can_be_team_holdertrue/false - If specified, the response will be filtered accordingly to the resource type feature 'Can be a team holder'
- Can participate in team
can_participate_in_teamtrue/false - If specified, the response will be filtered accordingly to the resource type feature 'Can participate in team'
- Offset
offsetnumber - The record number from which the retrieval starts. The default value is zero. If no value is specified, then it defaults to zero. The value zero indicates that the retrieval will start from the beginning of the collection.
- Limit
limitnumber - The number of items to be returned in the response. The minimum value that can be specified is 1 and the maximum value that can be specified is 100. If the specified value is greater than 100, zero, or if no value is specified, then it defaults to 100.
- Expand
expandlist - The sub-entities that are embedded into each resource item returned in the response. The value is a comma-separated string containing a combination of the following values: inventories, workZones, workSkills, and workSchedules. If one or more values are specified then tOne or more of:
inventories,workSkills,workZones,workSchedules. - Fields
fieldslist - The comma-separated names of the resource fields that are returned in the response. If the value of this parameter is not specified, then all the resource fields and custom properties are returned by default. If the resource fields are specified, then only the 'resource
Outputs
dataobject- The collection of resources.
Example output
{
"data": {
"items": [
{
"avatar": {},
"dateFormat": "Example",
"durationStatisticsInitialPeriod": 1,
"durationStatisticsInitialRatio": 1,
"email": "Example",
"language": "Example",
"name": "Example",
"organization": "Example",
"parentResourceId": "sample_parentResourceId",
"phone": "Example",
"resourceId": "sample_resourceId",
"resourceInternalId": 1,
"resourceType": "Example",
"status": "active",
"timeFormat": "Example",
"timeZone": "Example",
"timeZoneDiff": 1,
"timeZoneIANA": "Example"
}
],
"limit": 1,
"offset": 1,
"totalResults": 1
}
}List inventory installed during an activity
List inventory installed during an activity.
Inputs
- Activity ID
activity_idnumberRequired - The unique identifier of the activity in Oracle Field Service.
- Offset
offsetnumber - The record number from which the retrieval starts. The default value is zero. If no value is specified, then it defaults to zero. The value zero indicates that the retrieval will start from the beginning of the collection.
- Limit
limitnumber - The number of items to be returned in the response. The minimum value that can be specified is 1 and the maximum value that can be specified is 100. If the specified value is greater than 100, zero, or if no value is specified, then it defaults to 100.
- Filter
filtertext - Boolean filter expression used to filter inventory items returned by the API. Supported fields: inventoryType , serialNumber , quantity Supported operators: < , > , <= , >= , == , != , AND , OR , NOT Rules: String values must use single quotes. Numeric value
Outputs
dataobject- The collection of installed inventories assigned to the specified activity.
Example output
{
"data": {
"items": [
{
"activityId": 1,
"exchangedInventoryId": 1,
"inventoryId": 1,
"inventoryType": "Example",
"quantity": 1,
"resourceId": "sample_resourceId",
"serialNumber": "Example",
"status": "customer"
}
]
}
}List inventory removed during an activity
List inventory removed during an activity.
Inputs
- Activity ID
activity_idnumberRequired - The unique identifier of the activity in Oracle Field Service.
- Offset
offsetnumber - The record number from which the retrieval starts. The default value is zero. If no value is specified, then it defaults to zero. The value zero indicates that the retrieval will start from the beginning of the collection.
- Limit
limitnumber - The number of items to be returned in the response. The minimum value that can be specified is 1 and the maximum value that can be specified is 100. If the specified value is greater than 100, zero, or if no value is specified, then it defaults to 100.
- Filter
filtertext - Boolean filter expression used to filter inventory items returned by the API. Supported fields: inventoryType , serialNumber , quantity Supported operators: < , > , <= , >= , == , != , AND , OR , NOT Rules: String values must use single quotes. Numeric value
Outputs
dataobject- The collection of deinstalled inventories assigned to the specified activity.
Example output
{
"data": {
"items": [
{
"activityId": 1,
"exchangedInventoryId": 1,
"inventoryId": 1,
"inventoryType": "Example",
"quantity": 1,
"resourceId": "sample_resourceId",
"serialNumber": "Example",
"status": "customer"
}
]
}
}List linked activities
List linked activities.
Inputs
- Activity
activity_idtextRequired - The unique identifier of the activity in Oracle Field Service.
Outputs
dataobject- The collection of activity-to-activity relations.
Example output
{
"data": {
"items": [
{
"alerts": 1,
"fromActivityId": 1,
"linkType": "Example",
"maxIntervalValue": 1,
"minIntervalValue": 1,
"toActivityId": 1
}
]
}
}List required activity inventory
List required activity inventory.
Inputs
- Activity
activity_idtextRequired - The unique identifier of the activity in Oracle Field Service.
- Offset
offsetnumber - The record number from which the retrieval starts. The default value is zero. If no value is specified, then it defaults to zero. The value zero indicates that the retrieval will start from the beginning of the collection.
- Limit
limitnumber - The number of items to be returned in the response. The minimum value that can be specified is 1 and the maximum value that can be specified is 100. If the specified value is greater than 100, zero, or if no value is specified, then it defaults to 100.
Outputs
dataobject- The schema of the request body object for this operation.
Example output
{
"data": {
"items": [
{
"inventoryType": "Example",
"model": "Example",
"quantity": 1
}
]
}
}List resource assistants
List resource assistants.
Inputs
- Resource
resource_idtextRequired - The unique identifier of the resource for which the list of assistants should be collected .
- Date from
date_fromdateRequired - Mandatory parameter.The assisting activities will be collected starting from the specified date in YYYY-MM-DD format. Past dates are not accepted.
- Date to
date_todate - The assisting activities will be collected up until the specified date in YYYY-MM-DD format. If this parameter is absent then only one date specified in "dateFrom" is processed. if the parameter "dateTo" is specified it must not be smaller then the value of dateFrom, to
- Resource fields
resource_fieldstext - The comma-separated names of the resource fields that are returned in the response for each assistant. The response structures for resources always contain "resourceId". If it is empty, then the "resourceInternalId" field is provided instead. In addition to those, field
- Expand
expandtext - The sub-entities that are embedded into each resource item returned in the response. Only one option is supported: workSkills. To avoid huge responses, if a sub-entity contains more than 500 items is not expanded, and it is returned as a link. The link can be used to re
Outputs
dataobject- The collection of resources.
Example output
{
"data": {
"items": {}
}
}List resource inventory
List resource inventory.
Inputs
- Resource
resource_idtextRequired - The unique identifier of the resource in Oracle Field Service.
- Offset
offsetnumber - The record number from which the retrieval starts. The default value is zero. If no value is specified, then it defaults to zero. The value zero indicates that the retrieval will start from the beginning of the collection.
- Limit
limitnumber - The number of items to be returned in the response. The minimum value that can be specified is 1 and the maximum value that can be specified is 100. If the specified value is greater than 100, zero, or if no value is specified, then it defaults to 100.
- Filter
filtertext - Boolean filter expression used to filter inventory items returned by the API. Supported fields: inventoryType , serialNumber , quantity Supported operators: < , > , <= , >= , == , != , AND , OR , NOT Rules: String values must use single quotes. Numeric value
Outputs
dataobject- The collection of resource inventories.
Example output
{
"data": {
"items": [
{
"activityId": 1,
"exchangedInventoryId": 1,
"inventoryId": 1,
"inventoryType": "Example",
"quantity": 1,
"resourceId": "sample_resourceId",
"serialNumber": "Example",
"status": "customer"
}
]
}
}List resource work skills
List resource work skills.
Inputs
- Resource
resource_idtextRequired - The unique identifier of the resource in Oracle Field Service.
- Date from
date_fromdate - The work skills, which are active starting from the specified date, are retrieved in the response. Specify the date in YYYY-MM-DD format.
- Date to
date_todate - The work skills, which are active starting from the date in the dateFrom parameter till the specified date, are retrieved in the response. Specify the date in YYYY-MM-DD format. If you specify the dateTo parameter, then you must also specify the dateFrom parameter.
Outputs
dataobject- The collection of resource work skill items.
Example output
{
"data": {
"items": [
{
"endDate": "Example",
"ratio": 1,
"startDate": "Example",
"workSkill": "Example"
}
],
"links": [
{
"href": "Example",
"rel": "Example"
}
],
"totalResults": 1
}
}List submitted activity forms
List submitted activity forms.
Inputs
- Activity ID
activity_idnumberRequired - The unique identifier of the activity in Oracle Field Service.
- Scope
scopetext - Scope. Whether to return submitted forms related only to the activity or to all bundled activities. If the value is 'activity', all data of all submitted forms related to the activity is returned. If the value is 'bundles' then only submitted forms related to configured
- Bundle
bundletext - Label of a bundling rule. The parameter allows to specify the label of the bundle to filter the returned data. Only submitted forms related to a specific bundle will be present in the response. If the parameter is not specified, all the submitted forms related to all bu
- Offset
offsetnumber - The record number from which the retrieval starts. The default value is zero. If no value is specified, then it defaults to zero. The value zero indicates that the retrieval will start from the beginning of the collection.
- Limit
limitnumber - The number of items to be returned in the response. The minimum value that can be specified is 1 and the maximum value that can be specified is 100. If the specified value is greater than 100, zero, or if no value is specified, then it defaults to 100.
Outputs
dataobject- The collection of associated submitted forms that are registered for the activity.
Example output
{
"data": {
"hasMore": false,
"items": [
{
"activityDetails": {},
"bundles": [
"Example"
],
"formDetails": {},
"formIdentifier": {},
"time": "Example",
"user": "Example"
}
],
"limit": 1,
"offset": 1,
"totalResults": 1
}
}List users assigned to a resource
List users assigned to a resource.
Inputs
- Resource
resource_idtextRequired - The unique identifier of the resource in Oracle Field Service.
- Offset
offsetnumber - The record number from which the retrieval starts. The default value is zero. If no value is specified, then it defaults to zero. The value zero indicates that the retrieval will start from the beginning of the collection.
- Limit
limitnumber - The number of items to be returned in the response. The minimum value that can be specified is 1 and the maximum value that can be specified is 100. If the specified value is greater than 100, zero, or if no value is specified, then it defaults to 100.
Outputs
dataobject- The list of users assigned to the resource.
Example output
{
"data": {
"items": [
{
"login": "Example"
}
]
}
}