2

Um OptionSet Informationen zu erhalten, können wir eine Anfrage erteilen:Wie RetrieveAttributeRequest über Odata implementieren?

// Create the request 
RetrieveAttributeRequest attributeRequest = new RetrieveAttributeRequest 
{ 
    EntityLogicalName = Contact.EntityLogicalName, 
    LogicalName = "new_string", 
    RetrieveAsIfPublished = false 
}; 

// Execute the request 
RetrieveAttributeResponse attributeResponse = 
    (RetrieveAttributeResponse)_serviceProxy.Execute(attributeRequest); 

Console.WriteLine("Retrieved the attribute {0}.", 
    attributeResponse.AttributeMetadata.SchemaName); 

Gibt es eine Möglichkeit, dies mit einem OData Anfrage in crm 2016 zu tun?

+0

Mögliche Duplikat [Rufen Sie alle OptionSet Werte mit OData in Dynamics CRM] gefunden (https://stackoverflow.com/questions/39427389/retrieve-all-optionset -Werte-Verwenden-Odata-in-Dynamics-CRM) –

Antwort

Verwandte Themen