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
Raghav TRaghav T 

How to use getpicklistvalues for OpportunityContactRole object?

Hi,
How can i get the picklist values for OpportuintyContactRole object, coz this object does not have any RecordType in it.
@wire(getPicklistValues,
        {
            fieldApiName: ROLE
        }
    )
    jobrolePicklist;
I tried this one but it didnt work out for me.
VinayVinay (Salesforce Developers) 
Hi Raghav,

On OpportunityContactRole you can hard-code the master record type Id - 5640000000565664.  Something like below.
 
@wire(
    getPicklistValues, 
    { recordTypeId: '5640000000565664', fieldApiName: PICKLIST_FIELD }
)
picklistValues;

https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_picklist_values

Please mark as Best Answer if above information was helpful.

Thanks,