Update BP Record

PUT /ws/rest/service/v2/bp/record

Purpose:

Update a record in a specific BP in a shell based on "project_number" (provided in input JSON options) or from Company level if the project or shell number is not provided.

The input json shall provide various options to be considered for fetching the data.

This V2 service will use the step form to update the BP record. All of the required fields and Validation rules will be run against the step form used in the workflow details.

Form in the End step is a View Form and cannot be updated.

Input:

All parameters should be URL encoded.

Both input & output in JSON format in the body.

Update BP Record Input

{

"options":{

"project_number" : "P-0002",

"bpname":"line6",

"LineItemIdentifier":"upwoLISAS",

"optimizedPickerExecution" : "true",

"workflow_details":{

"WFCurrentStepName":"Step 4",

"WFActionName":"Line 3"

}

},

"data":[

{

"ugenUserIDPK":null,

"_bp_lineitems":[

{

"ugenShellPK":"/AP1",

"uuu_tab_id":"Standard",

"short_desc":"desc3_m11",

"upwoLISAS":"0001",

"uuu_line_item_status":"Active"

}

],

"record_no":"uxli6-0020",

"title":"new title"

}

]

}

Notes:

Steps to add LineItemIdentifier in the BP design:

  1. Create a custom DE whose Data definition is 'Sys Auto Sequence'.
  2. Add this DE to the detail form of the BP whose line items needs to be updated.
  3. Navigate to Company Workspace > Business Processes and open the BP.
  4. Navigate to the BP-Home > click Open drop-down > Data Elements. A data element configuration screen appears
  5. Click on Auto Sequence tab and click Add.
  6. Select the Data element added in the detail form and select the level as 'Per record'.
  7. Provide the start value and click Create (next to format), add the parameter 'Sys Sequence counter', and click OK.
  8. Add the DE to Integration > Detail and select "Direction" to "Both" for the DE.
  9. Complete and deploy the BP.
  10. In the body of the request add this DE name as Lineitem identifier and send the request.

Delete the Line-Item, using Update Request:

To delete the line-Item using update request, the field "_delete_line_item" should be used (value of which will be comma separated values of LineItemIdentifier DE) as shown in the following example:

Sample: Delete line-item input

{

"options":{

"project_number" : "P-0002",

"bpname":"line6",

"LineItemIdentifier":"upwoLISAS"

},

"data":[

{

"ugenUserIDPK":null,

"_delete_bp_lineitems":"0002,0001,0003",

"record_no":"uxli6-0021",

"title":"title_m112244"

}

]

}

Output:

JSON object containing 'status', 'data', 'message'

A message will be present if status is not 200 .

Status codes are:

1>200 OK, if all update succeeds.

2>3000, if any of records update fails.

Sample: Update BP Record Response

{

"data": [],

"message": [

{

"_record_status": "success",

"record": {

"ugenUserIDPK": null,

"record_no": "uxli6-0021",

"title": "title_m112244"

}

}

],

"status": 200

}

Data Elements in Line Items

If the following Data Elements are present in the Line Items, they will not be updated during UpdateRecordV2 call.



Legal Notices | Your Privacy Rights
Copyright © 1998, 2022

Last Published Tuesday, February 8, 2022