sharepoint online – Matching Data in List and Library

I have a List with several columns, including a ‘CQUniqueID’ column.

I have a Library that also has a ‘CQUniqueID’ column.

The CQUniqueID is created with a condition in a PowerApps form. That form has an attachment control and a submit button. When the submit button is clicked a Path condition updates the List and a Flow upload the attachment to the Library.

I need to be able to get the content of the ‘CQUniqueID’ field in the List Patch and also Patch (or Update) that content to the ‘CQUniqueID’ field in the Library associated with the newly uploaded document.

In the end the Library and List ‘CQUniqueID’ columns should have the same ‘CQUniqueID’ content for each List line item and corresponding Library document.

How do I best achieve this task?`