I'm having some issues to retrieve campaign recordtype id inside the lwc
import CAMPAIGN_RECORDTYPEID from"@salesforce/schema/Campaign.RecordTypeId";
@wire(getRecord, { recordId:"$campId", fields: [CAMPAIGN_RECORDTYPEID] })
campaign;
getcurrentCampaignRecordType(){
return getFieldValue(this.campaign.data, CAMPAIGN_RECORDTYPEID);
}
This is where I'm trying to validate the record type id, sometimes it retrieves the id, sometimes retrieves "undefined"
Edited