
Hi, I am working on a task in CRM and still learning.
The task is: We add training plans to users in CRM. If a step in training plan is deactivated (its status is inactive), we shouldn't be able to allocate that step.
So basically,
here before Values I have to check if step field is active or inactive. How do i do that?
Hi,
The following code example shows how to use the ConditionExpression class to test for the inactive state.
ConditionExpression condition3 = new ConditionExpression();
condition3.AttributeName = "statecode";
condition3.Operator = ConditionOperator.Equal;
condition3.Values.Add(AccountState.Active);
Thanks,
Arshad
Please like and subscribe my YouTube Channel and follow my blog for latest interview question and answer.
www.youtube.com/.../videos