domingo, 15 de septiembre de 2013

CRM 4.0 - Picklist en varios idiomas con el metadata



PickList en varios idiomas con el metadata


RetrieveAttributeRequest req;
            req = new RetrieveAttributeRequest();
            req.EntityLogicalName = "new_evento";
            req.LogicalName = "new_tipodeevento";
            req.RetrieveAsIfPublished = true;
            RetrieveAttributeResponse resp = crmMetaService.Execute(req) as RetrieveAttributeResponse;
            PicklistAttributeMetadata listData = resp.AttributeMetadata as PicklistAttributeMetadata;
           
            foreach (Option option in listData.Options) {
                for (int i = 0; i < option.Label.LocLabels.Length; i++) {
                    if (option.Label.LocLabels[i].Label.ToUpper() == "??") {

                    }
                }
            }

No hay comentarios:

Publicar un comentario