Resources for IT Professionals > Dynamics Forums > CRM > get all the address of the account
Ask a questionAsk a question
 

Answerget all the address of the account

  • Saturday, November 07, 2009 10:48 AMvarunkumar17 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    hi

    i need to retreive all the addresses (more address ) of the account in a custom aspz page(using webservices) 

    i can get the account id in that page

    Thanks
    varunkumar

Answers

  • Saturday, November 07, 2009 6:30 PMdarrenliuMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi,

    You can write fetch XML to retrieve all of the address from customeraddress entity. You need to pass in the ObjectTypeCode and the account ID, in this case, your object type code is 1.

    The addresses on the account also stored in customeraddress entitty as well.

    I hope this helps.


    Darren Liu | 刘嘉鸿 | MS CRM MVP | English Blog: http://msdynamicscrm-e.blogspot.com | Chinese Blog: http://liudarren.spaces.live.com

All Replies

  • Saturday, November 07, 2009 6:30 PMdarrenliuMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi,

    You can write fetch XML to retrieve all of the address from customeraddress entity. You need to pass in the ObjectTypeCode and the account ID, in this case, your object type code is 1.

    The addresses on the account also stored in customeraddress entitty as well.

    I hope this helps.


    Darren Liu | 刘嘉鸿 | MS CRM MVP | English Blog: http://msdynamicscrm-e.blogspot.com | Chinese Blog: http://liudarren.spaces.live.com