none
Explizite Propertys und Datensätze RRS feed

  • Frage

  • Hallo.

    Kurze Frage nebenan.

    Kann ich mit "einer Abfrage" aus dem CRM eine RetrieveMultiple-List von Entitäten bekommen,

    von bestimmten guid's ?

    Ich habe z.B. eine ArrayList mit 7 versch. Guid's und möchte NUR diese erhalten.

    Zu den "bestimmten" Propertys:

    Mit

    // Create the ColumnSet that indicates the properties to be retrieved.
    ColumnSet cols = new ColumnSet();
    
    // Set the properties of the ColumnSet.
    cols.Attributes = new string [] {"fullname", "contactid"};
    

    erhalte ich die Meldung, die Funktion sei schreibgeschützt.

    Somit kann ich nicht angeben welche Propertys ich nur brauche.

     

    Danke

    Donnerstag, 25. März 2010 10:57

Antworten

  • Klar sollte das funktionieren, wenn Du die Conditions setzt, siehe http://msdn.microsoft.com/en-us/library/bb929002.aspx

    In deinen Fall sind es halt die GUIDs 1 - 7 nach denen Du filterst

    // Set the condition for the retrieval to be when the contact's address' city is Sammamish.
    condition.AttributeName = "address1_city";
    condition.Operator = ConditionOperator.Like;
    condition.Values = new string [] {"Sammamish"};


    Gruß Carsten Groth http://carstengroth.spaces.live.com
    Donnerstag, 25. März 2010 13:44