What's the deal with Deno? We talk with a major contributor to find out. Listen now.

New answers tagged

0

The line <option key={option.label} class="uiInputSelectOption" value={option.value}>{option.value}</option> will work only if you are that structure from Apex or are manipulating it in JavaScript. The correct way looking at you code would be <option key={option.Id} class="uiInputSelectOption" value={option.Id}>{option....


1

During the insert the record type assignment is missing and the default record type may not have the picklist value that you are trying to insert with, so add the record type assignment- Case newCase = new Case(); ... newCase.RecordTypeId = '{get value from describe call}'; newCase.Close_Code__c = 'test'; insert newCase;


0

I ran into this problem as well. Since Salesforce does not officially support Formulas in Email Templates there seem to be a lot of things that just don't work. Such as Displaying Picklist fields. We are also unable to convert them to text in the Template. However, you have the option to create a Formula field that converts the Picklist to text and you are ...


0

import { LightningElement,wire } from 'lwc'; import { getPicklistValues } from 'lightning/uiObjectInfoApi'; import LeadSource from '@salesforce/schema/Contact.LeadSource'; import { getObjectInfo } from 'lightning/uiObjectInfoApi'; import CONTACT_OBJECT from '@salesforce/schema/Contact'; export default class LwcPicklistWithoutRecordtypeextends ...


2

Use the "null" record type Id, "012000000000000AAA" as the record type Id. @wire(getPicklistValues, { objectApiName: PRICEBOOK_OBJECT, recordTypeId: '012000000000000AAA'}) This is demonstrated in the documentation.


1

You'd have to use the metadata API, but it looks like it's possible to check the State / Country picklist settings in an org.


Top 50 recent answers are included