Dataverse.InsertOptionValue(serviceClient, "account", "paymenttermscode", 1, "Credit Hold");
public static int? DeleteOptionValue(ServiceClient sc, string entityLogicalName, string attributeLogicalName, int value)
{
int? ret = null;
try
{
var deleteOptionValueRequest = new DeleteOptionValueRequest
{
EntityLogicalName = entityLogicalName,
AttributeLogicalName = attributeLogicalName,
Value = value,
};
var res = (DeleteOptionValueResponse)sc.Execute(deleteOptionValueRequest);
}
catch (Exception e)
{
Console.WriteLine(e);
}
return ret;
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156