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