Update an activity objective

patch

/crmRestApi/resources/11.13.18.05/activities/{ActivityNumber}/child/ActivityObjectives/{ObjectiveId}

Request

Path Parameters
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: Activity ID
    The unique identifier of the parent activity.
  • Maximum Length: 64
    The unique number of the activity. The number can also be generated from an external source.
  • Maximum Length: 255
    The objective for the activity.
  • Maximum Length: 30
    The attribute category associated with the activity.
  • Title: Complete
    Maximum Length: 1
    Indicates if the activity objective is completed. If True, the activity is completed.
  • Default Value: 0
    The unique identifier for the conflict in the activity objectives.
  • Maximum Length: 15
    The corporate currency code associated with the activity contact. This attribute is used by CRM Extensibility framework. A list of accepted values is defined in the lookup ZCA_COMMON_CORPORATE_CURRENCY. Review and update the profile option using the Setup and Maintenance work area, Manage Trading Community Common Lookups task.
  • Maximum Length: 30
    The currency conversion rate type associated with the activity contact. This attribute is used by CRM Extensibility framework. A list of accepted values is defined in the lookup ZCA_COMMON_RATE_TYPE. Review and update the value for this attribute using the Setup and Maintenance work area, Manage Trading Community Common Lookups task.
  • Maximum Length: 15
    The currency code. This attribute is used by CRM Extensibility framework. A list of valid values are defined in the lookup ZCA_COMMON_CORPORATE_CURRENCY. Review and update the profile option using the Setup and Maintenance work area, Manage Currency Profile Options task.
  • Title: Objective
    Maximum Length: 30
    The code indicating the objectives of an activity. A list of valid values is defined in the lookup ORA_ZMM_ACTIVITY_OBJECTIVE.
  • Title: Objective Text
    Maximum Length: 80
    The text area to describe the objective of the activity.
  • The unique identifier for the series that links instances of a series together.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : activities-ActivityObjectives-item-response
Type: object
Show Source
  • Title: Activity ID
    The unique identifier of the parent activity.
  • Maximum Length: 64
    The unique number of the activity. The number can also be generated from an external source.
  • Maximum Length: 255
    The objective for the activity.
  • Title: Activity Number
    Maximum Length: 64
    The unique number of the activity. The number can also be generated from an external source.
  • Maximum Length: 30
    The attribute category associated with the activity.
  • Title: Complete
    Maximum Length: 1
    Indicates if the activity objective is completed. If True, the activity is completed.
  • Default Value: 0
    The unique identifier for the conflict in the activity objectives.
  • Maximum Length: 15
    The corporate currency code associated with the activity contact. This attribute is used by CRM Extensibility framework. A list of accepted values is defined in the lookup ZCA_COMMON_CORPORATE_CURRENCY. Review and update the profile option using the Setup and Maintenance work area, Manage Trading Community Common Lookups task.
  • Read Only: true
    Maximum Length: 64
    The user who created the activity objective.
  • Read Only: true
    The date and time when the activity objective was created.
  • Maximum Length: 30
    The currency conversion rate type associated with the activity contact. This attribute is used by CRM Extensibility framework. A list of accepted values is defined in the lookup ZCA_COMMON_RATE_TYPE. Review and update the value for this attribute using the Setup and Maintenance work area, Manage Trading Community Common Lookups task.
  • Maximum Length: 15
    The currency code. This attribute is used by CRM Extensibility framework. A list of valid values are defined in the lookup ZCA_COMMON_CORPORATE_CURRENCY. Review and update the profile option using the Setup and Maintenance work area, Manage Currency Profile Options task.
  • Read Only: true
    The date and time when the activity objective was last updated.
  • Read Only: true
    Maximum Length: 64
    The user who last updated the activity objective.
  • Read Only: true
    Maximum Length: 32
    The login details of the user who last updated the activity objective.
  • Links
  • Title: Objective
    Maximum Length: 30
    The code indicating the objectives of an activity. A list of valid values is defined in the lookup ORA_ZMM_ACTIVITY_OBJECTIVE.
  • Title: Objective Text
    Maximum Length: 80
    The text area to describe the objective of the activity.
  • Title: Objective ID
    The unique identifier of the objective.
  • The unique identifier for the series that links instances of a series together.
Back to Top

Examples

The following example shows how to update an activity objective by submitting a PATCH request on the REST resource using cURL.

curl -u <username:password> \ -X PATCH -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/activities/CDRM_167267/child/ActivityObjectives/300100091331231

Example of Request Body

The following shows an example of the request body.

{ 
                          "ObjectiveCode":"DEMO_PRODUCT", 
                           "CompletedFlag": false,
                            "ObjectiveFreefmtText":"NEW_OBJ1235", 
                           "CompletedFlag": false 
                     
 }

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
"ActivityId": 300100091331227
"ObjectiveCode": "DEMO_PRODUCT"
"ObjectiveFreefmtText": "NEW_OBJ1235"
"ObjectiveId": 300100091331231
"AttributeCategory": null
"CreationDate": "2016-08-24T00:02:57-07:00"
"CreatedBy": "SALES_ADMIN"
"LastUpdateDate": "2016-08-24T02:20:01-07:00"
"LastUpdatedBy": "SALES_ADMIN"
"LastUpdateLogin": "3ACBFC03100C5FB5E053780CF10AE876"
"ObjectVersionNumber": 4
"ConflictId": 0
"CompletedFlag": false
"ActivityNumber": null
"RecurSeriesId": null
"ObjectiveCompletedFlag": "false"
"CorpCurrencyCode": "EUR"
"CurcyConvRateType": "Corporate"
"CurrencyCode": "EUR"
-
}
Back to Top