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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 128 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 113

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans