Forum Discussion

Geoffers's avatar
Geoffers
Brass Contributor
Nov 16, 2022
Solved

Concatenate Fieldname into Expression

I have an Excel table with fields for Year1, Year2, Year3, Year4, Year5 I want to create a Sharepoint item in Power Automate for each.     I have created an array ( [1,2,3,4,5]) I have an apply ...
  • Geoffers's avatar
    Nov 16, 2022
    Hi All
    For anyone who cares, the correct syntax is -
    outputs('Get_a_row')?[concat('body/Year', Items('Apply_to_each_financial_year'))]

    So the concat is only applied to the "Body/year" part of the statement. Encompassing the entire output statement results only in a string that isn't evaluated.

Resources