function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anna SliwaAnna Sliwa 

Check if an account is a member

Hi, 

I am beginner in apex, and I am just wondering if it's possible to write a logic that will check if an account is a member( member = account which has an active contract)and display that as a green box above the name of the account. I think the second part it is possible but I am not sure if the first one.

I also would like to calculate how many members (accounts with active contracts) we have in the system. I created a report but we have some Accounts with more than one active contract and the system treats that as more than one member eg, Company XYZ has three active contracts for the system that are 3 members, I want the system to calculate that as 1 member (unique calculation). 

Do you think I can achieve that with apex?

Hailey NelsonHailey Nelson
Thanks. Im looking an answer for it.
word finder (https://wordfinder.onl/)