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 Automate / Create Sharepoint Item...
Power Automate
Unanswered

Create Sharepoint Item with Lookup columns. Only item values available

(0) ShareShare
ReportReport
Posted on by 2 Moderator

Hello

 

I'm creating a flow that will let a user (student) from a different tenant create a SP list entry in this tenant.

They fill in a form, that will send an e-mail (the body of the email is a json object) that is parsed into the flow. The e-mail, parsing etc. works fine.

But I have two lookup fields (school and class) in the SP list (students) that have to be filled in. I have the values for school and class available in my json object.

 

So, the plan is to get both fields from the student list, do an odata filter on the school.value and class.value und Compose the first results for the schoolID and classID into variables that I can then enter into the SP list.

But when I get items from Sharepoint, the two fields don't appear for an ODATA filter. 😞

How do I do this? 

Categories:
I have the same question (0)
  • eric-cheng Profile Picture
    5,171 on at

    Hi @schwibach ,

     

    Please refer to this video tutorial and see if it answers your question.

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

     

  • schwibach Profile Picture
    2 Moderator on at

    Unfortunately that didn't work for me.

    I created two schools with each a class of the same name. If I filter for the class only as seen below, the flow creates two new items, for each class.... If I manually enter the field for the school to filter I get no results.

    Is there another way to deal with this? Or am I maybe doing something wrong? The name of the field is Schule. I have the string value available in the flow.

    Also, I don't like the Create items action to iterate (even if it's not really doing that because school + class will always return just one result). Is there an elegant way to do this?

    schwibach_0-1629562046255.png

     

     

    Closing and opening powerautomate again, the error is gone:

     

    This is a part of the SP list 

    schwibach_0-1629568311792.png

    There is one Schule: RefIV and one Klasse: SchB

     

    Here in the flow it shows that the fields are named correctly, but on the Create Item loop, there is no positive result:

    schwibach_1-1629568421316.png

     

     

  • schwibach Profile Picture
    2 Moderator on at

    This is the SP list

    schwibach_0-1629567307547.png

     

    schwibach_1-1629567361697.png

     

    Schule is a lookup field from the list with the schools

     

    This is what I entered in the Odata filter

    schwibach_2-1629567404247.png

    Interestingly enough, it does not show me the field Klasse to filter for. The fields I get are all from the other (parent) list. If I manually type in Klasse eq (and then the variable for Klasse), I get this error.

     

    schwibach_3-1629567463056.png

     

     

  • schwibach Profile Picture
    2 Moderator on at

    I now only filter for the class and then resolve the issue of the school with a condition inside the loop.

    That produces a working flow.

    But I'd really like a good solution to create a string variable from lookup values from SharePoint lists in cases where I know that there is only one result and then use that variable without any loops.

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard