Hi, does anyone know how to create custom record t...
# general
r
Hi, does anyone know how to create custom record through SuiteTalk? This is what I have in my request. Removing customFieldList will allow me to create the record with name field set successfully
Copy code
<Body>
        <add xmlns="urn:customization_2020_1.setup.webservices.netsuite.com">
            <record xsi:type="q1:CustomRecord" xmlns:q1="urn:customization_2020_1.setup.webservices.netsuite.com">
                <recType internalId="143" xmlns:q1="urn:customization_2020_1.setup.webservices.netsuite.com"/>
                <name>test</name>
                <customFieldList xmlns:q1="urn:core_2020_1.platform.webservices.netsuite.com">
                    <customField scriptId="custrecord_myfield" xsi:type="StringCustomFieldRef" xmlns:q1="urn:core_2020_1.platform.webservices.netsuite.com">
                        <value>salesorder</value>
                    </customField>
                </customFieldList>
            </record>
        </add>
    </Body>
b
namespace problems:
<customField scriptId="custrecord_myfield" xsi:type="q1:StringCustomFieldRef" xmlns:q1="urn:core_2020_1.platform.webservices.netsuite.com">
nobody likes generating soap by hand
r
right, trying to create a sample payload for somebody else to reference in postman... both core and customization returns namespace error
b
most of the time you are better just relying on namespace inheritance
you should only need to define the namespaces where you use xsi:type
r
gotcha, let me give that a try. thx for the help