Hi team.
I hope you can help me.
We are syncing Credit Memos from the NetSuite using SOAP.
Request:
<soapenv:Body>
<search xmlns="urn:messages_2020_1.platform.webservices.netsuite.com">
<searchRecord xmlns:ns12="urn:sales_2020_1.transactions.webservices.netsuite.com" xsi:type="ns12:TransactionSearch">
<ns12:basic xmlns:ns13="urn:common_2020_1.platform.webservices.netsuite.com" xsi:type="ns13:TransactionSearchBasic">
<ns13:internalId xmlns:ns14="urn:core_2020_1.platform.webservices.netsuite.com" operator="anyOf" xsi:type="ns14:SearchMultiSelectField">
<ns14:searchValue externalId="" internalId="XXXXXXX" type="creditMemo" xsi:type="ns14:RecordRef">
<ns14:name xsi:type="xsd:string"/>
</ns14:searchValue>
<ns14:searchValue externalId="" internalId="XXXXXXX" type="creditMemo" xsi:type="ns14:RecordRef">
<ns14:name xsi:type="xsd:string"/>
</ns14:searchValue>
<ns14:searchValue externalId="" internalId="XXXXXXX" type="creditMemo" xsi:type="ns14:RecordRef">
<ns14:name xsi:type="xsd:string"/>
</ns14:searchValue>
<ns14:searchValue externalId="" internalId="XXXXXXX" type="creditMemo" xsi:type="ns14:RecordRef">
<ns14:name xsi:type="xsd:string"/>
</ns14:searchValue>
</ns13:internalId>
<ns13:memorized xmlns:ns15="urn:core_2020_1.platform.webservices.netsuite.com" xsi:type="ns15:SearchBooleanField">
<ns15:searchValue xsi:type="xsd:boolean">false</ns15:searchValue>
</ns13:memorized>
<ns13:recordType xmlns:ns16="urn:core_2020_1.platform.webservices.netsuite.com" operator="is" xsi:type="ns16:SearchStringField">
<ns16:searchValue xsi:type="xsd:string">creditMemo</ns16:searchValue>
</ns13:recordType>
<ns13:subsidiary xmlns:ns17="urn:core_2020_1.platform.webservices.netsuite.com" operator="anyOf" xsi:type="ns17:SearchMultiSelectField">
<ns17:searchValue externalId="" internalId="2" type="subsidiary" xsi:type="ns17:RecordRef">
<ns17:name xsi:type="xsd:string"/>
</ns17:searchValue>
</ns13:subsidiary>
</ns12:basic>
</searchRecord>
</search>
</soapenv:Body>
response:
<searchResponse xmlns="urn:messages_2020_1.platform.webservices.netsuite.com">
<platformCore:searchResult xmlns:platformCore="urn:core_2020_1.platform.webservices.netsuite.com">
<platformCore:status isSuccess="false">
<platformCore:statusDetail type="ERROR">
<platformCore:code>USER_ERROR</platformCore:code>
<platformCore:message>You don't have permission to access this record. </platformCore:message>
</platformCore:statusDetail>
</platformCore:status>
</platformCore:searchResult>
</searchResponse>
Could you please tell me what could be the reason for such an error?
We have all the needed permissions:
Transaction:
Lists
Setup