CRM 2013 - Javascript - Retrieve Multiple + Option Set RRS feed

  • Question

  • Hi,

    My problem is that I want to retrieve all of my account codes (I have unique account codes for all records in the entity accounts). After retrieving all of the account codes I then want them to be populated into a Option Set that is on the form

    The trouble is that I want this to work on an entity called Addresses, not the actual address form. Also, how would I populate them into an option set.

    Is it by moving all the account codes into an array, then go from there? Or is there a different way

    Example code would be appreciated. 

    Also, it's not needed but preferred that each account has a account code, from that code I could identify each account name which would make it easier for my users to know what account they are selecting, is there a way of doing this.

    Thanks, Shaun


    Monday, June 16, 2014 9:39 AM