Hi,
Previously, I had experience with default actions for Bill that are depicted at screen
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/aa154104-f0a3-4fb8-acde-b05852b06deb.png)
For using them it was enough to send such request
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/a8ea4cce-b681-4b63-93f3-5964ceb03f05.png)
Our client is using custom entity named Subcontracts
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/4ef2bd03-39df-41bd-ab80-853c818526e9.png)
I need to send new fields from this entity to Bill, these fields are SubcontractNbr and SubcontractLine
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/8052652d-cc12-4397-bee8-3f41db3c25b1.png)
Client’s Acumatica already contains such actions for this entity
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/ef782ebe-6bbd-4cbf-9920-b0302e785484.png)
I assume that I need to use addSubContractLines action as I need to add these fields to Bill’s columns in Details
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/8de95551-94bd-4390-9af2-183686cc06ef.png)
However this action does not contain any parameters
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/855c23fe-90be-4273-acc1-96078a6b00e8.png)
My question is : how to use action for adding these custom fields : SubcontractNbr and SubcontractLine to Bill and how to form such request ?
This is my request for creating Bill
URL : https://mcicj.acumatica.com/entity/ARTSDocAlphaEndpoint/20.200.001/Bill
Body :
{
"VendorRef": {
"value": "1ABL-217i941"
},
"DueDate": {
"value": "3/2/2023"
},
"Vendor": {
"value": "V-06702"
},
"Date": {
"value": "1/31/2023"
},
"Terms": {
"value": "PWP"
},
"PostPeriod": {
"value": "01-2023"
},
"Details": [
{
"Description": {
"value": "Line 001 - Gypcrete"
},
"Qty": {
"value": 1
},
"UnitCost": {
"value": "34573.2"
},
"ExtendedCost": {
"value": "34573.2"
},
"Account": {
"value": "5430"
},
"SubcontractLine": {
"value": "1"
},
"SubcontractNbr": {
"value": "234567"
},
"rowNumber": {
"value": "1"
}
}
]
}
Thanks in Advance