cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Phineas
Resolver I
Resolver I

Flow Updates Library

I am still in desparate need of resolution.

 

I have a Gallery in which I enter data - including a User created 'JobUnqID'. I am Patching the 'JobUnqID' to the List. I am uploading a document the an attachment control to a 'JobDocsLibrary'. The Flow is below. Where do I add the language the will Patch (as this is a new document) the appropriate and specific 'JobCQUnqID' along side the document in the Library as a result of the Patch / Flow action. I've gotten it to kinda work; but its overwritting the wrong item (or multiple wrong items) in the Library.

 

Flow:

When and item is created

Site

List Name: JobsLibrary

 

Get Files (properties only)

Site (same as above)

Library Name: JobsDocLibrary

 

(Both of the above have a column for 'JobCQUnqID'; the 'JobCQUnqID' is being created in the PowerApps Gallery and Patched to the 'JobsList')

 

Apply to each

Value

Update file properties

Site

Library Name: 'JobDocsLibrary'

Id: SpID (items('Apply_to_each_2')?[ID]

JobCQUnqID: (items(('Apply_to_each_2')?['JobCQUnqID']

1 REPLY 1
Phineas
Resolver I
Resolver I

I created the following flow. It almost gets me what I want.

 

It updates the FMSSID that I want to the new document posted to the Library. 

 

However, the flow is updating the document FMSSID based on the 'ID' created by SharePoint.

 

My desires is to have my own 'UnqID' used to tie a List Item to a Library Document. I've already created the auto-generating field in PowerApps. The UnqID is uploaded to the List anytime a new document is created. I need that same 'UnqID' referenced in the Patch or Flow so that is also populates along side the new document posted in the Library and acts as its UnqID.

Phineas_0-1620501320544.png

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (90,229)