Hi
I need to convert an optionsetvalue to a string but haven't been able to.
I'm using vb.Net
I retrieve the value initially using this
currentStatus = entity.Attributes("statecode")
*This post is locked for comments
Hi
I need to convert an optionsetvalue to a string but haven't been able to.
I'm using vb.Net
I retrieve the value initially using this
currentStatus = entity.Attributes("statecode")
*This post is locked for comments
Hi ,
This is as per my understanding that you want to retrieve label of optionset option. In that case you need use following syntax:
string actualValue = entity.FormattedValues[FieldLogicalName];
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
52
dkrishna
6