2016-08-03 36 views

回答

0

我認爲像this應該工作。它用於將返回的internalId的結果轉換爲實際的文本類型,您可能能夠以另一種方式利用它。也許你可以創建一個類似這樣的查找列表(C#):

public Dictionary<string, Dictionary<long, string>> getCustomFieldLists() 
{ 
    return 
     nsService.search(new CustomListSearch()) 
      .recordList.Select(a => (CustomList) a) 
      .ToDictionary(a => a.name, 
       a => a.customValueList.customValue 
        .ToDictionary(b => b.valueId, c => c.value)); 
} 

var valueLookup = getCustomFieldLists()["award area"];