Jump to content

Recommended Posts

Posted

I'm noticed what I think is some odd behavior when I'm attempting to update the Country on Contacts and Customers (Vendors actually seem unaffected).  Note that ISO Country Codes are required in my environment.  

If I send to Intacct an UPDATE request that only changes Country, no changes are reflected in the interface:

<update>
    <CUSTOMER>
        <RECORDNO>123</RECORDNO>
        <DISPLAYCONTACT>
            <MAILADDRESS>
                <COUNTRY>Taiwan</COUNTRY>
                <ISOCOUNTRYCODE>TW</ISOCOUNTRYCODE>
            </MAILADDRESS>
        </DISPLAYCONTACT>
    </CUSTOMER>
</update>
 
If I do send the same request but add the city and pass the original CITY vale, I get the same result:
 
<update>
    <CUSTOMER>
        <RECORDNO>1066</RECORDNO>
        <DISPLAYCONTACT>
            <MAILADDRESS>
                <CITY>ORIGINAL CITY</CITY>
                <COUNTRY>Taiwan</COUNTRY>
                <ISOCOUNTRYCODE>TW</ISOCOUNTRYCODE>
            </MAILADDRESS>
        </DISPLAYCONTACT>
    </CUSTOMER>
</update>
 
But if I also change the city, the interface reflects both the city and country change correctly.   
<update>
    <CUSTOMER>
        <RECORDNO>1066</RECORDNO>
        <DISPLAYCONTACT>
            <MAILADDRESS>
                <CITY>UPDATED CITY</CITY>
                <COUNTRY>Taiwan</COUNTRY>
                <ISOCOUNTRYCODE>TW</ISOCOUNTRYCODE>
            </MAILADDRESS>
        </DISPLAYCONTACT>
    </CUSTOMER>
</update>

 

No errors are reported.  I see the same results when sending the requests through the .NET API.  I actually started there, had issues, and went to Postman to be sure I wasn't doing something in .NET incorrectly or that I didn't need to write a Custom update.

Is this known functionality?  Is there something else I could pass to ensure the country change?  It may not happen often that only the Country needs to change on a record but I'd like to think we could if even just to fix a previously mis-entered value.

 
 
×
×
  • Create New...