Update BP Record with Attachment

The following applies to the Update BP Record with Attachment (REST API Details in Business Processes) Web Services V1:

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

Purpose

Update a record with attachment in a specific BP in a shell based on shell number 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.

Input

All parameters must be URL encoded.

Path Parameter

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

Both input & output in JSON format in the body.

Update BP Record with Attachment

{

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

"_attachment":[

{

"file_name":"file_1.txt",

"title":"file_title1",

"issue_date":"05/06/2018",

"revision_no":"300"

},

{

"file_name":"file_2.txt",

"title":"file_title2",

"issue_date":"05/06/2018",

"revision_no":"200"

}

]

}

],

"_attachment":

{

"zipped_file_name" : "zip_file_name.zip",

"zipped_file_size": "746089",

"zipped_file_content" :"<base64_encoded string of zip_file_name.zip file>"

}

}

Notes:

Steps to add LineItemIdentifier in the BP design:

  1. Create a custom DE with DD: Sys Auto Sequence.
  2. Add this DE to the Detail Form of the BP with the line items that need to be updated.
  3. Navigate to the Company Workspace > Admin mode > Business Processes and open the BP.
  4. Click Open drop-down to open and select Data Elements to open the Data Elements Configuration window.
  5. Click the 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.
  8. Add the parameter "Sys Sequence counter" and click OK.
  9. Add the DE to Integration > Detail.
  10. Set the "Direction" to "Both" for that DE.
  11. Complete and deploy the BP.
  12. In the body of the request, add the 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":{

"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 creation succeeds.

2>3000, if any of records creation fails.

Sample: Update record with attachment response

{

"data":[

],

"message":[

{

"_record_status":"success",

"record":{

"ugenUserIDPK":null,

"record_no":"uxli6-0021",

"title":"title_m112244"

}

}

],

"status":200

}

or if zip_file_size of uploaded zip file is not correct :

{

"data": [],

"message": [

"Uploaded Zip file is invalid"

],

"status": 3003

}

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

Create BP Record with Attachment

Fetch BP Record List with filter_criteria

Payment Application with Auto-populate from SOV and Commits

Bulk Create Records

Bulk Update Records

Bulk Reverse Auto-populate Records

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, July 1, 2025