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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Lookup Function not re...
Power Apps
Unanswered

Lookup Function not returning entire record

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello! 

 

I have a flow that takes JSON as an input. In my code, I set my variable varFormattedNewRecord to the result of a Lookup function that makes an ID that's found on the screen (The ID will return a match, the user could not possibly be on the screen without a matching ID). For some reason the Lookup is only returning 2 fields, instead of any of the other 9 possible fields from the dataverse(could be 25). What could be the issue? Is there a workaround? 

 

It's also important to note, "Submit Form" will edit the record in the dataverse with the information inputted on the screen. 

 

Here is my code: 

 

 

SubmitForm(Form2_1);
Set(varFormattedNewRecord,JSON(LookUp(Retrospectives,EngagementID=TextInput2.Text),JSONFormat.IgnoreUnsupportedTypes);
CreateCSV.Run(varFormattedNewRecord);
Navigate('Home Screen');
Notify("Project Retro Successful Updated")

 

 

 

The value of varFormattedNewRecord is {"cr7f3_id":"E-51536747","cr7f3_retrospectivesid":"27690d25-af66-ed11-9562-002248272172"}. 

I would want it to include the following data which is present in the dataverse record

[ { "cr7f3_didpoorlystopdoing": "text", "cr7f3_didwellkeepdoing": "text", "cr7f3_id": text, "cr7f3_name": "text", "cr7f3_projectspiciness": integer, "cr7f3_retrospectivesid": "text", "cr7f3_startdoing": "text",  }]

 

 

 

Categories:
  • mago_00 Profile Picture
    44 on at

    Hi @Anonymous ,

     

    The lookup function will only return the columns that are used in the app, this is built in the function to optimize the retrieval process.

     

    Can you try using one of the other fields in a label and see if the column has been added to the JSON variable

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard