cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TanguyT
Level 8

Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

When using context.mode.contextInfo, property entityId gives the id of the parent form record, which is what is expected. But property entityTypeName gives the name of the subgrid entity and not the parent form entity.

 

Two questions:

  • when contextInfo will come as a predefined and supported property of property "mode"?
  • when a fix can be expected for this bug?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
ToddTrotter
Level: Powered On

Re: Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

Hi TanguyT, 

 

Currently, this API is not documented and not supported.   We understand the need for controls to get this type of context information and will be exposing it through supported APIs soon.   

 

Todd

View solution in original post

5 REPLIES 5
ben-thompson
Level 8

Re: Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

How are you accessing context.mode.contextInfo?

 

contextInfo is not a published accessible attribute of context.mode within the PCF framework.

TanguyT
Level 8

Re: Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

I know but this is the only way included (even if not documented, this is why I asked) that should let you know the context of the entity record the PCF component is rendered
ToddTrotter
Level: Powered On

Re: Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

Hi TanguyT, 

 

Currently, this API is not documented and not supported.   We understand the need for controls to get this type of context information and will be exposing it through supported APIs soon.   

 

Todd

View solution in original post

Highlighted
TanguyT
Level 8

Re: Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

Great! Please don’t forget to fix the bug where EntityTypeName shows the wrong value
ben-thompson
Level 8

Re: Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

So that explains why my idea request for access to context.mode.contextInfo disappeared so quickly...

 

I'm glad to hear it's arriving soon as that saves me writing the workaround I thought I would have to create to do things in a "supported" way...

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (4,750)