Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [getobjectinfo]

The tag has no usage guidance.

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

Access consent info from Individual Object

I am trying to grab the consent fields on the Individual Object (The actual object called Individual). Here is my code: import { LightningElement, wire } from "lwc"; import { getObjectInfo } ...
Darryl Le Roux's user avatar
0 votes
1 answer
106 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
4k 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
1 vote
1 answer
493 views

defaultRecordTypeId on the User object is always null

I have been trying to get the defaultRecordTypeId on my LWC component to fetch some picklist values from the User object but it's always null. Understandably so, as no record types exist on the object....
Anee's user avatar
  • 381
2 votes
1 answer
3k views

LWC - getObjectInfo not working

I am trying to get all the record type options for Opportunity. I am using getObjectInfo directly copied from the documentation but I keep getting the same error: Documentation: https://developer....
some guy's user avatar
  • 141
6 votes
1 answer
854 views

How to find the encrypted fields from inside an LWC?

I have Shield Platform Encryption turned on for Account.Name and a server-side field describe call: System.debug(JSON.serializePretty(Account.Name.getDescribe())); returns as expected these ...
Keith C's user avatar
  • 136k
1 vote
1 answer
212 views

LWC controller accessing SObject Metadata

I have imported metadata into an LWC controller : import SENIORITY_OBJECT from '@salesforce/schema/xx_Seniority__c'; ... @wire(getObjectInfo, { objectApiName: SENIORITY_OBJECT }) objectInfo; If I ...
NickJ's user avatar
  • 680
2 votes
1 answer
181 views

getObjectInfo RecordTypeInfos wrong value issue in Experience cloud

When using the getObjectInfo Method in a LWC i get two different recordType names when running the Component in Salesforce or in the Experience cloud: import { getObjectInfo} from "lightning/...
Bika's user avatar
  • 53
1 vote
1 answer
6k views

LWC: Uncaught (in promise) TypeError: Cannot read property 'recordTypeInfos' of undefined

This error has recently appeared for me again on an LWC, but only the very first time I open a page for this record type after logging into the org - thereafter never again for my session. And I can't ...
Irene's user avatar
  • 1,839
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,366