Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

update Satisfaction

$
0
0

how can i update the Satisfaction. In the incident case form i have case status 

if the case status = complete 

=>> Satisfaction will be sastisfied

if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity)
{
try
{
Entity entity = (Entity)context.InputParameters["Target"];
EntityReference Casestatus= entity["cos_csucasestatus"] as EntityReference;
Entity customer

}
catch
{
throw;
}
}

}
public bool Checkcasestatuc(EntityCollection Casestatus)
{


if (Casestatus.Entities.All(x => x.GetAttributeValue<OptionSetValue>("cos_csucasestatus")?.Value == 769190006))
{
//Console.WriteLine("All task completed");
return true;
}
else
{
return false;
}


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images