web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Undefined or null valu...
Power Apps
Unanswered

Undefined or null value for companyname field on lead entity

(0) ShareShare
ReportReport
Posted on by 200

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

I have the same question (0)
  • AnqiChen Profile Picture
    on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard