May 07 2023 06:20 PM
Hi,
I have a flow to change a files name automatically, based on the column data. Which was working perfectly when all the columns were text inputs or choices.
I then decided to change the Vendor column to a lookup column from a list in sharepoint, called Vendor List. Now the flow no longer works. I think this is because the Vendor name is now a hyperlink which directs you to the list.
How can I get this flow to work?
May 08 2023 01:56 AM
hi @dj1996
it might depend which information from the lookup list is returned.
You should see three potential options within your Cloud Flow for the Vendor column.
The ID, the value and the 'complete field'.
In case the value you see here (respectively within the SharePoint library) fits the vendor name already, you can refer to it for your file name.
Otherwise you might think about getting all potential vendors first and filter those based on the ID of your lookup, which is the list item ID of the lookup lists entry.
The following is what you get in return from a lookup column.
The ID is the record ID of the SharePoint list you perform the lookup against.
The value is the column within the lookup list you get the value from (e.g. Title).
"lookupColumn": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 1,
"Value": "demo"
May 17 2023 11:40 PM
Hi @Micca0815
Thanks for your response. Unfortunately, selecting the 'value' field creates another 'apply to each' function within the current 'apply to each' function, within another 'apply to each' function.
Which then gives me this error:
Nov 02 2023 12:22 AM