Update BP Record

PUT /ws/rest/service/v1/bp/record/{project_number}

Purpose

Update record in a specific BP in a shell based on shell number or from company level if project/shell number is not provided.

Path Parameter

project_number: Specify the Project number in which the records exists; if not provided, records are from Company Level.

Request Parameters

All parameters should be URL encoded. The input JSON provides various options to be considered for fetching the data.

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.

Additional Information

The "record_no" is mandatory, and it is a part of data for the UpdateBPRecord call.

The "bpname" is mandatory, and it is a part of options form parameter.

The "WFCurrentStepName" and "WFActionName" are part of the "workflow_details," and they are for Workflow type BPs.

If the values for "WFCurrentStepName" and "WFActionName" are provided, the record will be updated and sent to the next step of workflow.

If the values for "WFCurrentStepName" and "WFActionName" are not provided, the record will be updated but will remain in the same workflow step.

The "LineItemIdentifier" is a part of options form parameter. The "LineItemIdentifier" value will be the DE name that is present in the "lineItem." The DE is present in the "data" (input record JSON) along with its value.

In the "_bp_lineitems" section, if "row_id" is modified along with other attributes, update the Fund Code for the line item in the "data" (with the "Lineitemidentifier" specified).

Any auto-populate DEs that are based on the "row_id" (Fund Code) will be populated by means of the update.

Formulas based on auto-populate DES will be evaluated in the line item.

When a record is routed to next step for workflow BPs, if the "work_flow" details are specified, verify that in the Fund sheet the line item amount is rolled up to the modified Fund Code.

The rules that are based on the Fund Code will be evaluated when routing the record through the "UpdateBPRecord" call.

For non-workflow Fund BP, if in the input request the status is specified along with the Fund Code in the line item, upon successful request the existing line item will be updated with the specified Fund Code, and the Fund Sheet will show the line item amount against the modified Fund Code.

Note: For the line item with both Fund Code and CBS Code BPs, only the Fund Code for the existing line items can be modified, by using the "UpdateBPRecord" call.

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

PUT

{

"options":{

"bpname":"line6",

"LineItemIdentifier":"upwoLISAS",

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

}

]

}

Sample Request to Delete a Line-Item

To delete a 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": {

"bpname":"line6",

"LineItemIdentifier":"upwoLISAS"

},

"data": [

{

"ugenUserIDPK":null,

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

"record_no":"uxli6-0021",

"title":"title_m112244"

}

]

}

Note: PUT call has input & output, both as JSON in the body.

Sample Response

{

"data": [],

"message": [

{

"_record_status": "success",

"record": {

"ugenUserIDPK": null,

"record_no": "uxli6-0021",

"title": "title_m112244"

}

}

],

"status": 200

}

An Integration user can modify the Fund Code for an existing record line items, by using UpdateBPRecord call.

A user can see the Fund Code for an existing record line items being updated and the line item amount is rolled up to the Fund Sheet, based on updated Fund Code.

Data Elements in Line Items

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

Related Topics

Business Processes

Fetch BP Record List

Get BP Record

Get BP Record With Attachments

Create BP Record

Update BP Record with Attachment

Create BP Record with Attachment

Fetch BP Record List with filter_criteria

Payment Application with Auto-populate from SOV and Commits

Asynchronous Bulk BP Operations

Asynchronous REST Call Status

Fetch List of Attached Files in a BP

Download a Single Attached File in a BP

Download Multipart or Large Files



Last Published Tuesday, April 15, 2025