web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Validate if Active or Inactive

(0) ShareShare
ReportReport
Posted on by 105

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, 

625347.Untitled.png

here before Values I have to check if step field is active or inactive. How do i do that?

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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

    juniorcrmblog.blogspot.com/

    juniorazurecrm.blogspot.com/

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 96 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans