cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Undefined or null value for companyname field on lead entity

Hi @AnqiChen @HemantG ,

 

1) I am getting undefined or null value for companyname field on lead entity when selecting from property-set.

 

2) But if I add companyname field on OOB grid columns and then select that same field form property-set then I am able to get correct value for the field.

 

3)There a strange scenario in which it sort of works, if I open the lead record from my pcf control whose navigation is set to new window after that if I navigate to lead home grid then I am able to view companyname for that particular field which I had opened previously for rest of the records it will still be undefined or null.

 

4) We tried to add companyname column programmatically using context.parameters.sampledataset.addColumn().

 

5) It's not working for companyname, but for createdon we are able to get createdon value using addColumn

 

companyname.png

 

 

debuggercompanyname.png

 

Thanks,

 

Sheldon

1 REPLY 1
Power Apps Staff AnqiChen
Power Apps Staff

Re: Undefined or null value for companyname field on lead entity

hi @sheldoncopper73 ,

 

Thank you for reporting this.

1) Yes, I am able to repro

2) I have investigated, the root cause is the lead's OOB view, like 'My Open Leads', its view's layoutXml does have 'companyname', but fetchXml does not. In some sense, these views are special and impact the things.

So, the scope of the issues are limited to these special Lead Views only.

 

I have internally created a bug to track this. @HemantG will triage these

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

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

Users online (4,419)