Hi,
I have set up a flow that creates a new file with data entered in an app. After the flow completes it prompts you to view the document on another screen. On said screen is a gallery with every document that has been generated. I would like it to automatically select the new document when you click the view document button.
I tried doing this by setting a variable called previewDocument with a record obtained using LookUp and finding the file in sharepoint. however, putting previewDocument in the default property of the gallery gives an error saying expected a value compatible with items. I tried using LookUp to look up all the items in the gallery and filter by the name of previewDocument. However, this causes some weird issues.
What is the best way around this?
Thanks