cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate V
Advocate V

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
Highlighted
Frequent Visitor

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
Highlighted
Impactful Individual
Impactful Individual

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.

---
If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".
Highlighted
Advocate V
Advocate V

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
Highlighted
Frequent Visitor

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
Advocate V
Advocate V

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
Highlighted
Impactful Individual
Impactful Individual

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...

---
If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Users online (6,206)