locked
retrieve all the attribute from soap request RRS feed

  • Question


  • I need to retrieve all the attribute value from soap request.

    I have an retrieve soap request method. I need to retrieve each attribute value , like Json methos

    can you plz give some sample code.

    Friday, December 13, 2013 11:52 AM

All replies

  • any Help 

    Thanks . 

    Friday, December 13, 2013 5:20 PM
  • Hello,

    During the Soap Request if entity field doesn't contain any values (it is null) it would not be returned. So you will have to analyze response and if field is not on the response it is equals to null.


    Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
    My blog

    Friday, December 13, 2013 9:31 PM
    Moderator
  • hi ,

    I am able to  get  soap response

    <a:Attributes xmlns:a="http://schemas.microsoft.com/xrm/2011/Contracts"><a:KeyValuePairOfstringanyType><c:key xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">transactioncurrencyid</c:key><c:value xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:type="a:EntityReference"><a:Id>fa83bfb3-6956-e311-a132-d89d67652150</a:Id><a:LogicalName>transactioncurrency</a:LogicalName><a:Name>Rupee;</a:Name></c:value></a:KeyValuePairOfstringanyType><a:KeyValuePairOfstringanyType><c:key xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">address1_city</c:key><c:value xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:type="d:string">Renton</c:value></a:KeyValuePairOfstringanyType><a:KeyValuePairOfstringanyType><c:key xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">parentcustomerid</c:key><c:value xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:type="a:EntityReference"><a:Id>6cd17393-6356-e311-b0af-d89d676580c8</a:Id><a:LogicalName>account</a:LogicalName><a:Name>Mike  </a:Name></c:value></a:KeyValuePairOfstringanyType><a:KeyValuePairOfstringanyType><c:key xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">telephone1</c:key><c:value xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:type="d:string">555-0150</c:value></a:KeyValuePairOfstringanyType><a:KeyValuePairOfstringanyType><c:key xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">address1_postalcode</c:key><c:value xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:type="d:string">20175</c:value></a:KeyValuePairOfstringanyType><a:KeyValuePairOfstringanyType><c:key xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">address1_stateorprovince</c:key><c:value xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:type="d:string">TX</c:value></a:KeyValuePairOfstringanyType><a:KeyValuePairOfstringanyType><c:key xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">address1_country</c:key><c:value xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:type="d:string">U.S.</c:value></a:KeyValuePairOfstringanyType><a:KeyValuePairOfstringanyType><c:key xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">address1_line1</c:key><c:value xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:type="d:string">5009 Orange Street</c:value></a:KeyValuePairOfstringanyType></a:Attributes>

    where I am trying to retrieve each attribute details using bellow sample

    http://crm2011lookuppreview.codeplex.com/discussions/431830

    But I am not able to get proper attribute details like currency , lookup , whole number.

    can any plz guide how to proceed further with sample code.

    thanks .

    Sunday, December 15, 2013 5:29 PM