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 / Working with lookup co...
Power Apps
Unanswered

Working with lookup columns on a SharePoint list here data is looked up from another SharePoint list

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I am replacing a SharePoint 2010 workflow on SharePoint Online.  The list uses a lookup column which gets its values from another list, this lookup actually updates 3 columns.  The workflow uses this lookup to send emails to users determined on the lookup list itself.  Power Automate cannot access the lookup columns.  The columns are multivalue.  I have written a flow so that it uses a get items to get the items from the lookup list to get the user names to send emails to (and send the email).  The method I have used is a filer based on a new text column containing the filter formula,.  My intention is to use a PowerApps form for data input and construct the text for the filter.  I created a lookup on the PowerApps form and additionally used a filter because there are blank entries being retuned.  However I am having an issue sending the selected value back to the list item (either new or existing) via the update event on the data card.  Has anyone managed to achieve this, or have any ideas?

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Can you share your formulas on your Default and Update properties on the DataCard?

    Also, the type of column is assumed to be a Lookup column in SharePoint.  Can you share the Items property of your DataCardValue control in your DataCard (or if you added a custom control to it, then that control).

     

     

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you mean that you have a lookup field (looks up to an email field)(allows multiple selections) that could not be updated successfully?

    Could you tell me:

    1)the settings of the lookup field;

    2)the control's settings that you use to update this lookup field;

    3)formula in the datacard's Update property?

     

    For lookup field that allows multiple selections, we usually set like this:

    combo box's Items:

    Choices(listname.fieldname)

     datacard's Update:

    comboboxname.SelectedItems

     

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Randy, thanks for replying.  The lookup field is on a data card - "Core Process DataCard" called " Project" as the source list has blanks I have used a filter - Filter(Distinct('WP Names', 'Available Project'), Result <> Blank())

     

    This workd fine but when I save the form I get the error that a field that requires a vailue has none, this is called Project on the list and the update property of the data card is as folows

     

    ForAll( Project.SelectedItems,
    {
    '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    Id: Id,
    Value: Value,
    }
    )

     

    This is where I am stumbling. 

     

    Thanks for your help

     

    Neill

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Sorry for delay...trying to catch up on all the posts.  Are you still experiencing issues that you need help with?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Randy, I am but I have a work around.  The issue appears to be where there is a site lookup column, the site where other list being used for the lookup is in a different site (still in the same site collection).  Both PowerApps and Power Automate cannot reference the column, I have had to put a combobox on the PowerApps form and write the selected results back to a text column where I can use that value in Flows to get the item from the other list to get the details I need.  What I would like to understand is, is this expected behavior?  I am replacing SP 2010 workflow which worked well with lookup columns and I have an issue with old data in the list because I am having to add new columns to work with.  If I can avoid using new columns I want to soany advice is appreciated.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard