cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Knguyen94
Frequent Visitor

GetItems doesn't retrieve all lookup field in OData

Hi, 

 

I set a view "Recensement"  of 7 columns which contains 3 lookup up fields based on 2 other lists. 

-  ["Unite"] from  List 'A'

-  ["Situation"], ["Situation:title"] from List 'B'

 

I set my GetItems to limit the field to "Recensement" view

http://prntscr.com/rjnap7 

 

However, I'm able to retrieve ["Unite"] but not the 2 other columns in my Odata

http://prntscr.com/rjndck 

 

I tried to create another list with same view and it works. 

http://prntscr.com/rjnkg5

 

Do you have an idea why ? 

 
 
 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Knguyen94
Frequent Visitor

Hi,

 

I found the solution

 

Fields which are not populated, are not retrieved in the "Get Items" actions. 

 

So I have to check first with this condition if(not(empty(item()?['Situation']))) to see if the field is in the Odata.

 

Thanks.

View solution in original post

2 REPLIES 2
abm
Super User
Super User

Hi @Knguyen94 

 

Are there any custom security for List A and B?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials
Knguyen94
Frequent Visitor

Hi,

 

I found the solution

 

Fields which are not populated, are not retrieved in the "Get Items" actions. 

 

So I have to check first with this condition if(not(empty(item()?['Situation']))) to see if the field is in the Odata.

 

Thanks.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,821)