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/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 the required fields and validation rules run against the step form used in the workflow details. The form in the End step is a View form and cannot be updated.

Prerequisite

Auto Creation settings are mandatory in Setup of the Business Process for the Shell or Company in Admin mode.

Request Format

All parameters should be URL encoded.

Both input & output in JSON format in the body.

Notes:

Behavior of the Due Date (due_date) Field

When you create workflow BP records through a REST service, the system currently sets the Due Date automatically based on the Workflow Settings; the Due Date provided in the input request is ignored.

When you update workflow BP records through a REST service, you cannot change the Due Date.

Response Format

A JSON object is returned in the following format.

{

"data": [],

"message": [],

"status": <REST status code value>

}

A successful response displays a status code 200.

A failed response displays a message with a status code.

Sample Request

Send a request in the following format:

{

"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"

}

]

}

Adding LineItemIdentifiers in the BP Design

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. Go to the Company Workspace tab and switch to Admin mode.
  4. In the left Navigator, select uDesigner, and then select Business Processes.
  5. Open the BP.
  6. From the toolbar, click Open, and select Data Elements to open the Data Elements Configuration window.
  7. Click the Auto Sequence tab and click Add.
  8. Select the Data element added in the detail form and select the level as 'Per record'.
  9. Provide the start value and click Create (next to format), add the parameter 'Sys Sequence counter', and click OK.
  10. Select Integration, select Detail, and then add the DE.
  11. Set the "Direction" to "Both" for that DE.
  12. Complete and deploy the BP.
  13. 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 Request

{

"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"

}

]

}

Sample Update Response

{

"data": [],

"message": [

{

"_record_status": "success",

"record": {

"ugenUserIDPK": null,

"record_no": "uxli6-0021",

"title": "title_m112244"

}

}

],

"status": 200

}

Unsupported Data Elements in Line Items

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

Related Topics

Business Processes

Create BP Record

Create BP Record with Attachment

Update BP Record with Attachment

Payment Application with Auto-populate from SOV and Commits

Get BP Record Permission

Update BP Record Permission

Add Assignees to Workflow BP Records

Task Reassignment of Workflow Records

Bulk Create Records

Bulk Create Workflow BPs

Bulk Update Records

Bulk Reverse Auto-populate Records

Get Schedule of Values (SOVs) For Base Commit Type BPs

Terminate Workflow and Non-Workflow BP Records

Response Error Codes



Last Published Wednesday, April 9, 2025