John Finlay
12/19/2023, 4:07 PMIsrael Gonzalez
12/27/2023, 8:02 PMsuitedev
01/02/2024, 5:15 PMbeckyd
01/09/2024, 5:47 PMKushington
01/11/2024, 11:13 AMjarens
01/11/2024, 5:06 PMManish Kumar Gupta
01/12/2024, 6:09 AMAvy Faingezicht
01/12/2024, 5:26 PMRobert Vice
01/17/2024, 8:08 PMenablesourcing
via SuiteScript. He has custom segments that are populating via the UI, but not via the REST API creating a Sales Order.
I haven't dug in to see if the custom segments are done via script or if it's the path of enableSourcing.
Anyone have experience or info here? ThanksIsrael Gonzalez
01/23/2024, 8:37 PM<tranInvt:record xsi:type="tranInvt:InventoryTransfer">
<tranInvt:location internalId="39" xsi:type="tranInvt:location"/>
<tranInvt:transferLocation internalId="8" xsi:type="tranInvt:transferLocation"/>
<tranInvt:subsidiary type="subsidiary" internalId="3" xsi:type="tranInvt:subsidiary"/>
<tranInvt:memo>Move by USERNAME </tranInvt:memo>
<tranInvt:inventoryList>
<tranInvt:inventory>
<tranInvt:item internalId="41998" xsi:type="listAcct:InventoryItem"/>
<tranInvt:adjustQtyBy>80</tranInvt:adjustQtyBy>
<tranInvt:fromBinNumbers>SO13</tranInvt:fromBinNumbers>
<tranInvt:toBinNumbers>OZ0104F</tranInvt:toBinNumbers>
</tranInvt:inventory>
</tranInvt:inventoryList>
</tranInvt:record>
Trying to do the same in REST API using:
{
"subsidiary": {
"id": 3
},
"location": {
"id": 14
},
"transferLocation": {
"id": 8
},
"memo": "Move by USERNAME",
"custbody_a1wms_dnloadtowms": false,
"inventory": {
"items": [
{
"item": {
"id": 1869
},
"adjustQtyBy": 5,
"fromBinNumbers": "M2214A",
"toBinNumbers": "OZ1206G"
}
]
}
}
but get the error message: Error while accessing a resource. The number of bins entered (0) is not equal to the item quantity (5).Carlos S
01/26/2024, 4:32 PMManish Kumar Gupta
01/30/2024, 12:15 PMLivio
01/30/2024, 4:55 PMManish Kumar Gupta
02/01/2024, 12:46 PM{{REST_SERVICES}}/record/v1/salesOrder/1234/!transform/itemFulfillment
With the Body
{
"item": {
"items": [
{
"orderLine": 1,
"itemreceive": true,
"location": 6
},
{
"orderLine": 2,
"itemreceive": true
}
]
},
"shipStatus": {
"id": "C"
}
}
The first order line is the inventory item
The second order line is non-inventory resale item
If I make separate requests for both the line items i can create item fulfilment but if I combine them in one request like above I get this error
{
"type": "<https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.1>",
"title": "Bad Request",
"status": 400,
"o:errorDetails": [
{
"detail": "Error while accessing a resource. Fulfillments can be shipped from only one location when using Multi-Location Inventory.",
"o:errorCode": "USER_ERROR"
}
]
}
Can somebody help me in getting this done in a single request?
ThanksIsrael Gonzalez
02/02/2024, 11:52 PMAnas Jakwani
02/06/2024, 9:31 AMBen Tanner
02/09/2024, 10:59 PMAlan Watts
02/13/2024, 3:28 PMmtoniato
02/21/2024, 5:50 PM{
"apply": {
"items": [
{
"apply": true,
"doc": {
"id": "6791"
},
"line": 0,
"amount": 0.01
}
]
},
"currency": {
"id": "1"
},
"customer": {
"id": "1730"
},
"toBeEmailed": false,
"tranDate": "2024-02-21",
"tranId": "PYMT10"
}
The result is always:
{
"type": "<https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.1>",
"title": "Bad Request",
"status": 400,
"o:errorDetails": [
{
"detail": "Error while accessing a resource. You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist.",
"o:errorPath": "apply",
"o:errorCode": "USER_ERROR"
}
]
}
I tried many variants but the result is always the same. The invoice id "6791" is correct and it has only one line.
Does anybody knows where the problem is?
Thanks in advance!Israel Gonzalez
02/21/2024, 11:48 PM{
"memo": "",
"custrecord_ait_bin_binlocked": true,
"custrecord_ait_bin_itemsbinlocked": {
"id": 56591
}
}
{
"type": "<https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.1>",
"title": "Bad Request",
"status": 400,
"o:errorDetails": [
{
"detail": "Invalid value for the resource or sub-resource field 'custrecord_ait_bin_itemsbinlocked'. Provide a valid value.",
"o:errorPath": "custrecord_ait_bin_itemsbinlocked",
"o:errorCode": "INVALID_VALUE"
}
]
}
Rahul Thakur
02/22/2024, 11:58 AMalien4u
02/26/2024, 3:19 PMYvonne
02/27/2024, 1:15 AM{
"type": "<https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.5>",
"title": "Not Found",
"status": 404,
"o:errorDetails": [
{
"detail": "Record type 'note' does not exist.",
"o:errorUrl": "/services/rest/record/v1/note",
"o:errorCode": "NONEXISTENT_ID"
}
]
}
Unfortunately I don't have permissions in NS to view user access - would someone happen to know which permission I need on the role to access the note record? I asked someone in the team who could edit but they couldn't see any changes made to my permissions, so I was hoping to just know the specific name so I could ask her to check for me whether that's definitely still included in my role. Thank you!Ben Tanner
03/07/2024, 9:16 PMtranId
. Sales orders are set up to allow override. The calls fail with this error:
NETSUITE_ERROR: Status was not successful with code INSUFFICIENT_PERMISSION and message "You do not have permissions to set a value for element generatetranidonsave due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases."
I'm pretty sure it's possible to set the value but am I missing something? Is there an additional permission related to that?SUNG YOUNG LEE
03/13/2024, 6:52 PMJian Liao
03/13/2024, 8:49 PMMuhammad Hafiz
03/14/2024, 6:46 AM{
"account": {
"id": "122"
},
"location": {
"id": "1"
},
"customer": {
"id": "501"
},
"payment": 100,
"trandate": "2024-03-12",
"memo": "LOGIFRAME TEST",
"apply": {
"items": [
{
"doc": {
"id": "33207"
},
"line": 0,
"apply": true,
"amount": 100,
"type": "Invoice",
"refnum": "INV241",
"applydate": "2024-03-12"
}
]
}
}
But I get this error :
{
"type": "<https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.1>",
"title": "Bad Request",
"status": 400,
"o:errorDetails": [
{
"detail": "Error while accessing a resource. You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist.",
"o:errorPath": "apply",
"o:errorCode": "USER_ERROR"
}
]
}
Anybody know the correct payload or any documentation on this? I tried from REST API browser but still not succeededSUNG YOUNG LEE
03/14/2024, 7:13 PMJian Liao
03/14/2024, 8:03 PMNetsuiteError: Unable to parse value '01/04/2024' (String) from the LocalDate,LocalDate field (custcol1).