We’ve been able to successfully create Transfer Or...
# suitetalkapi
s
We’ve been able to successfully create Transfer Orders and other record types, but when attempting to create a Sales Order we’re running into an error. This is a new feature we’re adding, so we want to confirm what might be missing or required for Sales Orders.
Copy code
@message="Permission Violation: The restrictions on your role deny you access to this record.",
Copy code
<soapenv:Body>
<addResponse xmlns="urn:messages_2021_2.platform.webservices.netsuite.com">
<writeResponse>
<platformCore:status xmlns:platformCore="urn:core_2021_2.platform.webservices.netsuite.com" isSuccess="false">
<platformCore:statusDetail type="ERROR">
<platformCore:code>INSUFFICIENT_PERMISSION</platformCore:code>
<platformCore:message>Permission Violation: The restrictions on your role deny you access to this record.</platformCore:message>
</platformCore:statusDetail>
</platformCore:status>
</writeResponse>
</addResponse>
</soapenv:Body>
</soapenv:Envelope>
Here is the request XML
Copy code
`<env:Body>
<platformMsgs:add>
<platformMsgs:record xsi:type="tranSales:SalesOrder">
<tranSales:entity internalId="327"/>
<tranSales:memo>PO-211-11627888021110725</tranSales:memo>
<tranSales:subsidiary internalId="2"/>
<tranSales:location internalId="14"/>
<tranSales:itemList>
<tranSales:item>
<tranSales:item internalId="37545"/>
<tranSales:rate xsi:nil="true"/>
<tranSales:quantity>1</tranSales:quantity>
<tranSales:location internalId="14"/>
</tranSales:item>
</tranSales:itemList>
<tranSales:shippingAddress>
<platformCommon:addressee>Gen Ziehr</platformCommon:addressee>
<platformCommon:addr1>2916 Jefferson Ave</platformCommon:addr1>
<platformCommon:city>EVANSVILLE</platformCommon:city>
<platformCommon:state>IN</platformCommon:state>
<platformCommon:zip>47714-3322</platformCommon:zip>
</tranSales:shippingAddress>
<tranSales:customFieldList>
<platformCore:customField scriptId="custbody19" xsi:type="platformCore:StringCustomFieldRef">
<platformCore:value>PO-211-11627888021110725</platformCore:value>
</platformCore:customField>
</tranSales:customFieldList>
</platformMsgs:record>
</platformMsgs:add>
</env:Body>
m
Restrictions to me generally point me toward employee/subsidiary/department/class restrictions on the role. Are you trying to create an SO in a subsidiary for which the role doesn't have access?
s
Update the restriction that was coming from the customer