Think Dynamic, Do Dynamic Microsoft Dynamic CE | Powerapps || Dynamic CRM || Power Apps || Power Platform

Saturday, 23 March 2024

Unable to cast object of type ‘Microsoft.Xrm.Sdk.OptionSetValue’ to type ‘System.String’

 Unable to cast object of type ‘Microsoft.Xrm.Sdk.OptionSetValue’ to type ‘System.String’

if you facing OptionSetValue Cast error in your Plugin use this code to resolve the problem

 OptionSetValue learnerAggrementoptionSetValue = guids.GetAttributeValue<OptionSetValue>(“vwi_learneragreementtype”);

 

if (learnerAggrementoptionSetValue != null)

{

int selectedOptionValue = learnerAggrementoptionSetValue.Value;

}



No comments:

Post a Comment

Popular Posts

Featured post

Understanding Dataverse MCP vs Power Apps MCP – Quick Review

  Understanding Dataverse MCP vs Power Apps MCP – Quick Review Model Context Protocol (MCP) has quickly become one of the hottest topics in ...

Post Top Ad

Your Ad Spot

Pages