Create BP Record

POST /ws/rest/service/v2/bp/record

Purpose

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

The input JSON provides various options to be considered for fetching the data.

This V2 service will use the step form (creation form) to create the BP record. All the required fields and validation rules will be run against the creation form used in the workflow details.

Prerequisites

Auto-Creation setting is mandatory in Shell or Company BP Setup in Admin mode.

Request Format

All parameters should be URL encoded.

Both input & output in JSON format in the body.

Notes:

Request Parameters

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.

Sample Request

{

"options":{

"project_number" : "P-0002",

"bpname":"Vendors",

"workflow_details":{

"workflow_name":"workflow_name",

"user_name":"first_name last_name",

"action_name":"action_name"

}

},

"data":[

{

"record_no":"hello",

"uuu_user_id":"a@abc.com",

"title":"v-00101",

"uveLicenseNoTB16":null,

"uuu_contact_company":"v-00101",

"uveCOIAmoutCA":0,

"_bp_lineitems":[

{

"uirCntctFstNmTB":"a",

"uuu_tab_id":"List of Contacts",

"title":"t",

"short_desc":"Vendor Contact",

"uriCntctLstNmTB":"b",

"ugenStatePD":null,

"ugenZipCodeTXT16":null,

"uveEmailTB120":"hello@abc.com",

"ugenAddress3TXT120":null

}

],

"creator_id":"Company Administrator",

"uveVendorIDTB16":"v-00101",

"uuu_contact_first_name":"a",

"status":"Active"

}

]

}

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 Success Response

{

"data": [],

"message": [

{

"_record_status": "success",

"uuu_user_id": "a@abc.com",

"uuu_record_last_update_date": "04-12-2018",

"uveFaxTB16": null,

"uveCertificateNoTB64": null,

"uvePrimaryContactTB64": "a",

"title": "v-00101",

"uveLicenseNoTB16": null,

"uuu_contact_company": "v-00101",

"uveCOIAmoutCA": 0,

"_bp_lineitems": [

{

"uirCntctFstNmTB": "a",

"uuu_user_workphone": null,

"uuu_tab_id": "List of Contacts",

"title": "t",

"ugenAddress1TXT120": null,

"ugenAddress2TXT120": null,

"ugenCountryPD": null,

"ugenCityTXT50": null,

"short_desc": "Vendor Contact",

"uriCntctLstNmTB": "b",

"ugenStatePD": null,

"ugenZipCodeTXT16": null,

"uveEmailTB120": "hello@abc.com",

"ugenAddress3TXT120": null

}

],

"uvePolicyNoTB32": null,

"record_no": "hello",

"_attachment": [

{

"file_name": "new 1.txt"

}

],

"uveVendorTypePD": "Architect",

"ugenCityTXT50": null,

"uveCoiExpDOP": null,

"uuu_dm_publish_path": "v_path",

"uuu_contact_last_name": "b",

"ugenZipCodeTXT16": null,

"uveEmailTB120": "a@abc.com",

"ugenAddress3TXT120": null,

"uveReferenceIdTB16": null,

"uuu_creation_date": "04-12-2018",

"ugenRemarksTB4000": null,

"uvePhoneTB64": null,

"uveTaxIDTB16": null,

"uveMinorityBusCB": 0,

"uveInsuranceCoTB32": null,

"ugenExpirationDateDOP": null,

"uveWomanOwnedCB": 0,

"uveVendorNameTB50": "v-00101",

"ugenAddress1TXT120": null,

"uveDisadvantagedBusCB": 0,

"ugenDiscipline": null,

"creator_id": "Company Administrator",

"ugenAddress2TXT120": null,

"ugenCountryPD": null,

"uveVendorIDTB16": "v-00101",

"ugenStatePD": null,

"uuu_contact_first_name": "a",

"status": "Active"

}

],

"status": 200

}

Sample Failed Response

This is an example of a failed response

{

"data": [],

"message": [

{

"_record_status": "Error Business Process record_no hello already exists. ",

"record": {

"uuu_user_id": "a@abc.com",

"uuu_record_last_update_date": "04-12-2018",

"uveFaxTB16": null,

"uveCertificateNoTB64": null,

"uvePrimaryContactTB64": "a",

"title": "v-00101",

"uveLicenseNoTB16": null,

"uuu_contact_company": "v-00101",

"uveCOIAmoutCA": 0,

"_bp_lineitems": [

{

"uirCntctFstNmTB": "a",

"uuu_user_workphone": null,

"uuu_tab_id": "List of Contacts",

"title": "t",

"ugenAddress1TXT120": null,

"ugenAddress2TXT120": null,

"ugenCountryPD": null,

"ugenCityTXT50": null,

"short_desc": "Vendor Contact",

"uriCntctLstNmTB": "b",

"ugenStatePD": null,

"ugenZipCodeTXT16": null,

"uveEmailTB120": "hello@abc.com",

"ugenAddress3TXT120": null

}

],

"uvePolicyNoTB32": null,

"record_no": "hello",

"_attachment": [

{

"file_name": "new 1.txt"

}

],

"uveVendorTypePD": "Architect",

"ugenCityTXT50": null,

"uveCoiExpDOP": null,

"uuu_dm_publish_path": "v_path",

"uuu_contact_last_name": "b",

"ugenZipCodeTXT16": null,

"uveEmailTB120": "a@abc.com",

"ugenAddress3TXT120": null,

"uveReferenceIdTB16": null,

"uuu_creation_date": "04-12-2018",

"ugenRemarksTB4000": null,

"uvePhoneTB64": null,

"uveTaxIDTB16": null,

"uveMinorityBusCB": 0,

"uveInsuranceCoTB32": null,

"ugenExpirationDateDOP": null,

"uveWomanOwnedCB": 0,

"uveVendorNameTB50": "v-00101",

"ugenAddress1TXT120": null,

"uveDisadvantagedBusCB": 0,

"ugenDiscipline": null,

"creator_id": "Company Administrator",

"ugenAddress2TXT120": null,

"ugenCountryPD": null,

"uveVendorIDTB16": "v-00101",

"ugenStatePD": null,

"uuu_contact_first_name": "a",

"status": "Active"

}

}

],

"status": 3000

}

Validations

The following validations are performed:

Error Messages

The following error messages may display:

Related Topics

Business Processes

Update 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