Get associated submitted forms
get
/rest/ofscCore/v1/activities/{activityId}/submittedForms
The function allows to retrieve all submitted data related to an activity or bundle of activities.
Request
Path Parameters
-
activityId(required): integer
The unique identifier of the activity in Oracle Field Service.
Query Parameters
-
bundle: string
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 bundles will be returned. This parameter is not allowed if the 'scope' parameter has value 'activity'. Default: all the submitted forms related to all bundles related to the activity will be returned
-
limit: integer
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.
-
offset: integer
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.
-
scope: string
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 bundles are returned. Allowed values [ activity, bundles ]. Default: bundles
Response
Supported Media Types
- application/json
200 Response
This section describes the 200 status response for this operation.
Root Schema : submittedForms
Type:
objectThe collection of associated submitted forms that are registered for the activity.
Show Source
-
hasMore:
boolean
Title:
Has More ResultsContains one of the following values: true or false. If true, then there are more results that can be retrieved with successive paging requests. If false or if the value is not present, then there are no more results or this is the final page. The default value is true. -
items:
array Items
Title:
ItemsThe collection of associated submitted forms that are registered for the activity. -
limit:
integer
Title:
LimitThe limit value specified in the request (May be different form specified in the request parameter). -
offset:
integer
Title:
OffsetThe offset value specified in the request. -
totalResults:
integer
Title:
Total ResultsTotal number of submitted forms that match the request.
Nested Schema : Items
Type:
arrayTitle:
ItemsThe collection of associated submitted forms that are registered for the activity.
Show Source
-
Array of:
object submittedForm
Associated submitted form to the activity.
Nested Schema : submittedForm
Type:
objectAssociated submitted form to the activity.
Show Source
-
activityDetails:
object Form activity details
Title:
Form activity detailsThis object will contain activity fields that can be submitted with a particular form. -
bundles:
array Bundle Labels
Title:
Bundle LabelsList of the labels of the configured bundles to which the submitted form is related. This value is not present if the request parameter "scope" is "activity" -
formDetails:
object Form details
Title:
Form detailsThis object will contain the fields that can be submitted with a particular form. -
formIdentifier:
object Form identifier
Title:
Form identifierLabel of the form and unique id of the submitted form. -
time:
string
Title:
TimeThe datetime in UTC when the form was submitted. For example, 2016-04-25 12:36:11. -
user:
string
Title:
UserThe user identifier (login) of the user who submitted the form.
Nested Schema : Form activity details
Type:
objectTitle:
Form activity detailsThis object will contain activity fields that can be submitted with a particular form.
Nested Schema : Bundle Labels
Type:
arrayTitle:
Bundle LabelsList of the labels of the configured bundles to which the submitted form is related. This value is not present if the request parameter "scope" is "activity"
Show Source
Nested Schema : Form details
Type:
objectTitle:
Form detailsThis object will contain the fields that can be submitted with a particular form.
Nested Schema : Form identifier
Type:
objectTitle:
Form identifierLabel of the form and unique id of the submitted form.
Show Source
-
formLabel:
string
Title:
Form LabelThe label of the submitted form -
formSubmitId:
integer
Title:
Form submit IDUnique id of the submitted form
Default Response
This section describes the default error response for this operation.
Root Schema : Error
Type:
Show Source
object-
detail:
string
The detailed description of this error.
-
status:
string
The HTTP status code of this error.
-
title(required):
string
The brief description of this error.
-
type(required):
string
The URL of the web page containing more details about this error.