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 / Custom SharePoint form...
Power Apps
Unanswered

Custom SharePoint form for document library - problems filtering lookup columns

(0) ShareShare
ReportReport
Posted on by 2

Hi - I will try to keep concise to explain where I'm running into issues!

 

I've setup a doc library, and I have used content types to define separate columns for each.  For example "Contract".  I have a number of lookup columns which refer to sharepoint lists to get the values I need for the values in the columns.  

 

For example:

Fields [Region] + [Division]

List name 'Division' which has columns [Title] and [Division].

The region field looks up the Title column to get the Region, and the Division field looks up the Division column.

 

The list is structure as so:

Region 1 | Division 1

Region 1 | Division 2

...

Region 2 | Division 1

Region 2 | Division 2

..

Other regions | Division 1

Other regions | Division 2.. etc

 

I've done this as some regions have common divisions, and others have differing ones.

 

I've added the document library and the list as data sources and used a formula to filter the list of Divisions, based on the region selected.  That works fine and the drop-down on the data card shows the values I'm looking for.

 

The formula is:


Filter(
Division,
Region = Switch(
DataCardValue13.Selected.Value,
"Japan", "Japan",
"APAC", "APAC",
"Other Region"
)
).Division

 

The problem comes when I publish the form and try to edit and save from the doc library.  I can launch the form and then save it BUT when I open again the value hasn't been saved.

 

I'm guessing that there is some problem with pulling the values from the SP list and then writing them back to the lookup column which I understand holds these as choices.  

 

I would welcome any suggestions on whether I'm taking the wrong approach here or how I can get powerapps to write the values!

 

Thanks in advance.

Ricky

Categories:
  • ricky_lewis Profile Picture
    2 on at

    Bumping this

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