Questions tagged [getpicklistvalues]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

LWC Datatable with OpportunityContactRole 'Role' picklist

I'm trying to display a list of Opportunity Contact Roles within a datatable. I'm having trouble showing the 'Role' field as a picklist. Does anyone know what I'm missing? I've wired in the ...
Matt Godfroy's user avatar
0 votes
1 answer
34 views

How to select the default picklist value for lightning-combobox in lwc?

For a picklist field, it is possible within Object Manager, to select one picklist value as the default value, so that for new records this field is automatically selected in the dropdown. I want to ...
PieterJacob's user avatar
0 votes
1 answer
58 views

Fetching mulitiselect picklist values for <lightning-checkbox-group>

I'm using getPicklistValues to fetch the multiselect picklist values in LWC and using it for <lightning-checkbox-group>. But it is not showing anything. And if I use same code for <lightning-...
Ruturaj Chothe's user avatar
0 votes
1 answer
814 views

How to set default picklist value for lightning-combobox?

I have lightning-combobox for which the picklist values are retrieved through getPicklistValues. How can I set default value of this field as the first picklist value? HTML: <lightning-combobox id=&...
coder123's user avatar
  • 107
0 votes
1 answer
86 views

Picklist values from different object not retrieving

I am trying to fetch two picklist values from two different objects but I am only able to get one field from either of the object. Not sure if there is any limitation that only one object field can be ...
Sam-dev-sfdc's user avatar
0 votes
1 answer
40 views

How can I get the field information by its name in static method?

I tried to write my code like this: public static string getPicklistValues(String fieldApi) { List<String> picklistValue = new List<String>(); Schema.DescribeFieldResult picklist = ...
Tuấn Trần quốc's user avatar
0 votes
1 answer
53 views

LWC looks different in prod environment

Hello guys I made a LWC form embebed in an Aura component in my scratch org and deployed to the production environment. When I was testing two things happened. The first one is related when I scroll ...
user avatar
-2 votes
1 answer
40 views

get picklist values from Prod

Hello guys I have been working with a LWC form at the dev environment and I made a LWC form that gets the picklist values from an specific object with the default recordTypeId 012000000000000AAA. In ...
TechGuy's user avatar
  • 97
0 votes
1 answer
3k views

Get Picklist value not working in LWC

I have been trying to get the picklist values dynamically in LWC without using the Apex Code but somehow I am unable to get them. Not sure what is the actual problem import { getObjectInfo, ...
Sam-dev-sfdc's user avatar
2 votes
1 answer
293 views

Import wire methods from gbloal class to specific js LWC

Hello everybody I am working on various LWC forms that contains several fields from an specific object. I want to create a global js file where I can put all of the field imports like this one: import ...
TechGuy's user avatar
  • 97
2 votes
1 answer
622 views

Fetch user selected Picklist value from flex card

I have picklists in flex card, where user can select Product attribute values. I am only able to see the updated value inside the flex card. I want to store the user selected value in a variable and ...
Avin Babu Pattathy's user avatar
0 votes
1 answer
1k views

Sort a list alphabetically

i have a multiselect picklist field Roles and i was trying to get the values in alphabetical order based on that(Roles) field.The method is as follows public static List<opportunityRoles> ...
Tency Serah's user avatar
0 votes
0 answers
776 views

System.DmlException: Update failed. First exception on row 0 with id; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST

This error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: pba.ListingTriggerDispatcher: execution of BeforeUpdate caused by: System.DmlException: Update failed. First exception on row 0 with id ...
user121228's user avatar
1 vote
0 answers
973 views

Flow - Update picklist with label value, not API name

I have a flow that is comparing the value of a text field (BillingCountry) to a picklist (Billing_Country_Name__C). If the text input is a valid Country picklist value, the flow should update the ...
Leon B's user avatar
  • 11
0 votes
1 answer
850 views

ILLEGAL_QUERY_PARAMETER_VALUE -- Expected '.' in all qualified names: RecordTypeId is invalid

Usecase is to get the picklist values according to the record type of the Record. selectedCaseId; caseRecordTypeId; wiredCaseRecordTypeId; @wire(getRecord, { recordId: "$selectedCaseId",...
Muskan Agarwal's user avatar
0 votes
1 answer
395 views

I am trying to use getPicklistValuesRecordType adapter to get picklist values from Account Object.but Combobox is not visible on page

.html <template if:true={industryOptions}> <lightning-combobox name="industry" label="industry" value={selectedIndustry} placeholder="Select Industry"...
Vinayak Karande's user avatar
2 votes
2 answers
457 views

Why does the second instance of my wire adapter not work when I am using @api variables?

I am trying to retrieve picklists from two different record types of the object Case by using getPicklistValuesByRecordType(). I can accomplish this if i write my code like the following: import { ...
Svante Jonsson's user avatar
0 votes
1 answer
963 views

Date Field should populate date everytime, whenever picklist value is changed

Whenever a picklist value is changed ( considering I have 3 picklist values in the Picklist field), I want my date field to be updated for today's date. And this update should happen each and every ...
Zain Khan's user avatar
1 vote
1 answer
87 views

UIAPI retrieve picklist values for record type stopped working - returns only one value

I have an aura component that's been working for years. It calls the uiapi to retrieve and display a multi-picklist based on the available picklist values for a specific contact record type. Yesterday ...
hgolov's user avatar
  • 733
1 vote
2 answers
733 views

UI API: How to retrieve translated values of a picklist using UI API

We are using the salesforce API to consume picklist fields and display it on a webpage on a multilingual community "/services/data/v49.0/ui-api/object-info/Case/picklist-values/{recordtypeId}/...
Saad's user avatar
  • 11
0 votes
2 answers
4k views

How to get Custom Metadata Type PickList field values using LWC getPicklistValues and getObjectInfo

I'd like to access the picklist values of a field on a Custom Metadata Type from an LWC: import { getPicklistValues } from "lightning/uiObjectInfoApi"; import { getObjectInfo } from "...
Robs's user avatar
  • 9,330