0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Get Started with Picklists / Share Values with Global Value Sets

Last updated at Posted at 2022-11-05

We can't find the correct formula to set the Default Value for the Macaron Flavor picklist.

I created the Macaron Flavor picklist on the incorrect object.

Create a global picklist value Flavors and with the values as required.

Mark 'Gingerbread' value as default.

Now create a new picklist field 'Macaron Flavor' in Product standard object.

Use the global picklist value that was created previously.

In the default field use the formula

CASE(MONTH(TODAY()),1, "Gingerbread",2, "Strawberry",4, "Chocolate",7, "Raspberry",11, "Pumpkin",12, "Mint", "Vanilla")

Set the 'Restrict picklist to the values defined in the value set' checkbox to true.

The above should ensure your task completion.

https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8vFkSAJ

We can't find a picklist field with the label Macaron Flavor in the product object

We couldn’t find a global value set named 'Flavors'.

Couldn’t find global value set named 'Flavors'.

image.png

Make sure that you have followed below steps.

Create a Picklist Macaron Flavor, add your values and save.

Go back and edit this Picklist, you will notice Promote to Global Value Set on the edit page.

Click on it, New Global Value Set screen will appear. GIve it the name Flavors and click on Promote to Global Value Set. Now this is available under Global Value Sets.

Click a new field under product as Shirt and assign this Global value set Flavors to complete the challenge.

Also refer below links.

https://developer.salesforce.com/forums/?id=9060G000000MSOjQAO

https://developer.salesforce.com/forums/?id=9060G0000005VntQAE

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?