hi all,
please suggest me how to retrieve optionset value or optionset selected text using plugin.
i tried below code but not working,throwing an error "given key was not present in dictionary"
foreach (Entity results in collection.Entities)
{
string status = results .FormattedValues["tj_status"].ToString();
int status = ((OptionSetValue)results.Attributes["tj_status"]).Value;
}
Thanks!
*This post is locked for comments
I have the same question (0)