I have the following LWC but cannot seem to get the Picklist values
Javascript
import { LightningElement,track, wire, api } from 'lwc';
import { getPicklistValues } from 'lightning/uiObjectInfoApi';
import TeamMemberRole from '@salesforce/schema/OpportunityTeamMember.TeamMemberRole';
import { getObjectInfo } from 'lightning/uiObjectInfoApi';
import OPPORTUNITYTEAMMEMBER_OBJECT from '@salesforce/schema/OpportunityTeamMember';
@wire(getObjectInfo, { objectApiName: OPPORTUNITYTEAMMEMBER_OBJECT })
opportunityteammemberInfo;
@wire(getPicklistValues,
{
recordTypeId: '$opportunityteammemberInfo.data.defaultRecordTypeId',
fieldApiName: TeamMemberRole
}
)
TeamMemberRoleValues;
Template
<lightning-combobox name="progress" label="TeamMemberRole" value={value} options={TeamMemberRoleValues.data.values}
onchange={setTeamMemberRole}>
</lightning-combobox>
What am I missing. I also tried without recordTypeId but this also does not work. I do not have any error. Thanks in advance.