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
Danh.ax1174Danh.ax1174 

Cross object formula with picklist

I would like to populate in a child object with a value from a Picklist. I know it isn't available with a cross object formula, however, is there a way to do it with apex code.

 

Thanks.

Steve :-/Steve :-/

You should probably ask that over on the Apex board instad of the Formula board.

Ross24Ross24

Are you stating that you would like to show a value of a field on a parent object on the child object records? If this is the case then this is entirely possible if not please explain scenario in a bit more detail and I can give a better opinion :)

Shashikant SharmaShashikant Sharma

Yes it is possible using Apex Triggers for example

 

Read this : http://forceschool.blogspot.com/search/label/Apex%20Triggers

Danh.ax1174Danh.ax1174

While you can use cross object formula fields with master detail records, you can't use dropdown values. They are not supported.

MeenakshmiMeenakshmi

Hi Danh,

If I am not mistaken you want to show the following scenario:

Picklist value of account to be shown in contact as contact is a child of account.

If the acbove scenario is a case, then try the following formula in contact:

 

TEXT(Account.picklist_field)

 

-Meenakshmi

nglngl
Thanks, Meenakshmi! Short and sweet.