I was currently inspecting the properties of a bound multiline field for a PCF control that we are building using the Chrome debugger, and came across the following list of attributes from the control:
I understand that there's no distinguishing in JS the properties relevant to strings (I can see that the componentframework definition files ensures the correct properties for the property type).
What I noticed was that the type definitions for the property types was missing the property "EntityLogicalName".
I'm assuming this property has been added to the PCF control attributes property bag but the type definitions have yet to be updated to reflect this?
You can always use the :
let contextInfo = context.mode.contextInfo; contextInfo.entityRecordName; contextInfo.entityId
in order to grab the entity logicalName where the PCF is attached.
You can do something like that:
const contextInfo = <any>context.mode.contextInfo; const entityTypeName = contextInfo.entityTypeName; const entityId = contextInfo.entityId;
We're excited to announce our first cross-community 'Can You Solve These?' challenge!
Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.
We are excited for the next Super User season.
FIll out a quick form to claim your community user group member badge today!
Features releasing from October 2020 through March 2021