Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

How to set a NAMED_ID by its Name (not by its Id) using SOAP (4 Comments)

$
0
0

Topic by Eric Den Hollander

Hi, I'm trying to write a SOAP message that will update a NAMED_ID object by its Name (as opposed to its ID). 

I know I can do this by its id, for example to set the alternative email 2:

<ns4:Emails>
<ns4:EmailList action="update"><ns4:Address>test@test.com</ns4:Address>
<ns4:AddressType><ID xmlns="urn:base.ws.rightnow.com/v1_2" id="2" /></ns4:AddressType>
</ns4:EmailList>

But how do you set it by using its name. For example, if I were to update the StateOrProvince of an Address object:
 
<ns4:Address>
<ns4:StateOrProvince><ID xmlns="urn:base.ws.rightnow.com/v1_2" name="CA" /></ns4:StateOrProvince>
<ns4:Address>
 
This does not work.

Viewing all articles
Browse latest Browse all 2504

Trending Articles