Topic by Qing Liu
Hello Everyone,
I am trying to use SOAP API to create an organization. It went fine, however, the data of address does not filled in. The custom fields of organization works fine.
<soapenv:Body>
<rnm:Batch xmlns:rnm="urn:messages.ws.rightnow.com/v1_3" xmlns:rng="urn:generic.ws.rightnow.com/v1_3" xmlns:rno="urn:objects.ws.rightnow.com/v1_3" xmlns:rnb="urn:base.ws.rightnow.com/v1_3" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<rnm:BatchRequestItem>
<rnm:CreateMsg>
<rnm:RNObjects xsi:type="rno:Organization" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<rnb:ID xsi:type="rnb:ChainSourceID" id="5378054" variableName="W5378054"/>
<rno:Addresses>
<rno:TypedAddressList xsi:type="rno:TypedAddress">
<rno:City>Den Haag</rno:City>
<rno:Country>
<rnb:ID id="2"/>
<rnb:Name>NL</rnb:Name>
</rno:Country>
<rno:PostalCode>7100TT</rno:PostalCode>
<rno:Street>Teststraat 1</rno:Street>
<rno:AddressType>
<rnb:ID id="2"/>
<rnb:Name>Shipping</rnb:Name>
</rno:AddressType>
</rno:TypedAddressList>
</rno:Addresses>
<rno:CustomFields>
<rng:ObjectType>
<rng:TypeName>OrganizationCustomFields</rng:TypeName>
</rng:ObjectType>
<rng:GenericFields dataType="OBJECT" name="c">
<rng:DataValue>
<rng:ObjectValue xsi:type="rng:GenericObject">
<rng:ObjectType>
<rng:TypeName>OrganizationCustomFieldsc</rng:TypeName>
</rng:ObjectType>
<rng:GenericFields dataType="STRING" name="rel_number">
<rng:DataValue>
<rng:StringValue>5378054</rng:StringValue>
</rng:DataValue>
</rng:GenericFields>
<rng:GenericFields dataType="STRING" name="handelsnaam">
<rng:DataValue>
<rng:StringValue>Acta Marine B.V.</rng:StringValue>
</rng:DataValue>
</rng:GenericFields>
<rng:GenericFields dataType="STRING" name="werkgevernummer">
<rng:DataValue>
<rng:StringValue>138381</rng:StringValue>
</rng:DataValue>
</rng:GenericFields>
<rng:GenericFields dataType="STRING" name="status">
<rng:DataValue>
<rng:StringValue>Actief</rng:StringValue>
</rng:DataValue>
</rng:GenericFields>
<rng:GenericFields dataType="STRING" name="kvk">
<rng:DataValue>
<rng:StringValue>01080154</rng:StringValue>
</rng:DataValue>
</rng:GenericFields>
</rng:ObjectValue>
</rng:DataValue>
</rng:GenericFields>
</rno:CustomFields>
<rno:Name>Test Werkgever3</rno:Name>
</rnm:RNObjects>
<rnm:ProcessingOptions>
<rnm:SuppressExternalEvents>false</rnm:SuppressExternalEvents>
<rnm:SuppressRules>false</rnm:SuppressRules>
<rnm:ReturnExpandedSoapFaults>true</rnm:ReturnExpandedSoapFaults>
</rnm:ProcessingOptions>
</rnm:CreateMsg>
</rnm:BatchRequestItem>
</rnm:Batch>
</soapenv:Body>
Anyone experiences similar issue before? Any tips, thank you.
Yours Sincerely,
Qing