cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
eleung83
Regular Visitor

FieldPropertyMetadata.Metadata properties

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:

 

multi-line bound string propertiesmulti-line bound string properties

 

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?

 
4 REPLIES 4
carfup
Helper II
Helper II

Hello,

 

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.

Clément 

Yes, I can see that output in the js, but the TS type definitions doesn't contain a contextInfo property on the context.mode interface

Hello,

You can do something like that:

const contextInfo = <any>context.mode.contextInfo;
const entityTypeName = contextInfo.entityTypeName;
const entityId = contextInfo.entityId;
eleung83
Regular Visitor

yes, I've seen that same thing posted in other threads, but also noticed that it's still not yet officially supported by the PCF framework.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,477)