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']