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
delta.shridelta.shri 

How do I create a dynamic picklist that gets it's values from another object

 

Let's say we have 2 objects "Project" and "Project_Status".

 

"Project_Status" has reference-type data... and let's say we have 3 records "active", "inprocess" and "complete".

 

Every "Project" will have a "Status".

 

So, I want "status" attribute of "Project" to be of type "picklist" (getting it's values from "Project_Status" object). 

 

PS: I do NOT want to use a "lookup" type here... I want it to be a "picklist"

 

What is the best practice to deal with this kind of a situation?

 

How do I configure "Status" attribute of "Project"

 

 

-Shri

 

imutsavimutsav
What else is there in Project_Status. I am asking this because I want to know why are you creating Project _Status as a different Object.
delta.shridelta.shri

Essentially, Project_Status will have various status in which a project can be. In one organization (tenant), a project can be either "active" or "inactive".. in which case, "Project_Status" will have 2 records (1. Active   2. InActive). Some other organization (tenant) may have 6 records: 1. Requirement Gathering   2. Design    3. Development    4. Testing   5. UAT   6. Production

 

So, it's up to the tenant to define values here. Tenants will create project-status that makes sense to their organizations.

 

That's why I have created it as another object. 

 

 

-Shri