This is an example of retrieving the label / name of a code instead of writing another function to look it up.
fakecode --> value (int)
fakecode (formatted) --> FormattedValues["fakecode"]
So in C# you can do:
string labelName = entity.FormattedValues.Contains("fakecode")
? entity.FormattedValues["fakecode"]
: null;
Or
string labelName = entity.FormattedValues.Contains("fakecode")
? entity.FormattedValues["fakecode"].ToEmptyStringIfNull()
: string.Empty;
Be First to Comment