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 / setting value of a col...
Power Apps
Answered

setting value of a column in sharepoint list as value from look up column using PowerApps and flow

(0) ShareShare
ReportReport
Posted on by 601

Hello,

 

I have a pretty cool app I've been developing to be used with a document library and part of what I would like to achieve is the ability to upload a file and metadata to a document library w/ PowerApps and Flow. I've been following along with this video https://www.youtube.com/watch?v=5XsWgVnR7SU and I've been able to successfully create a file(s) but I'm stuck at the part where I add the metadata. 

 

The metadata in question:

 

Column NameData TypeData Source
Process IDSingle line of textMaster Process List
ProcessLook upLook up to Process ID in Master Process List
Document TypeChoiceDocument Library
Document LevelChoiceDocument Library
SS IndexNumber

Document Library

SysIndexSingle line of text

Document Library

 

In the PowerApp, I want to allow users to fill out a form and enter metadata for the 5 fields in red. I am not understanding how to pass the value from the Process look up column to my variable in flow so that I can use it to set the value of the Process field in my library. 

 

My current formula on select of my button looks like this:

 

PowerAppsbutton.Run(
JSON(
colDocs,
JSONFormat.IncludeBinaryData
),
ProcessDrop.Selected.Title,
DocTypeDrop.Selected.Value,
DocLevelDrop.Selected.Value,
Value(SSIndexText.Text),
SysIndexText.Text
)

 

  • "Process" is the Title column in my library and will only accept an Integer variable. when using the "Update File Properties" action in flow
  • DocType and Doc Level are single-choice columns and use string variables in flow.
  • SSIndex is a number column in the library and uses an integer variable in flow.
  • SysIndex is a single line of text but will only accept an integer variable in the "Update File Properties" action.

The formula returns no errors until I run the app and select the button and then it tells me that my Process_Variable has an invalid value for parameter and the flow does not run at all. I am certain I need to use the ID from the look up but I don't know how to go about that. Thank you for any and all help! @wyotim 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @CarlHRVA ,

    Could you please share a screenshot about your flow's configuration?

    Could you please show more details about the formula you typed within the Items property of the ProcessDrop box in your Edit form?

     

    I have made a test on my side, please consider take a try with the following workaround:

    Set the Items property of the ProcessDrop box to following:

     

    Choices('Your SP Library'.Process)

     

    Then modify your 'FlowName'.Run(...) formula as below:

     

    PowerAppsbutton.Run(
     JSON(
     colDocs,
     JSONFormat.IncludeBinaryData
     ),
     ProcessDrop.Selected.Id, // Modify formula here
     DocTypeDrop.Selected.Value,
     DocLevelDrop.Selected.Value,
     Value(SSIndexText.Text),
     SysIndexText.Text
    )

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • CarlHRVA Profile Picture
    601 on at

    @v-xida-msft Thanks for your reply. The formula I am using for the Process drop down is:

     

    Sort('Master Process List'.'Process ID','Process ID')

     

    The formula you suggested doesn't work for me. Since the column in the master list is a single line of text, am I not able to use the choices function?

     

    Here is a screenshot of the flow:

     

    Capture.PNG

     

    Thank you!

     

     

     

     

  • CarlHRVA Profile Picture
    601 on at

    This works! My concern was that using the column from the library would only give me the values present in the library rather than all of the values in the master list but this was incorrect and my flow ran successfully after making the changes. Thank you so much!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard