Firstly thank you in advance for your help!
I've created a flow that updates a SharePoint list.
To merge the old and new values (in my case Opportunity IDs) I have used the below concat function. This seems to work fine and when tested the output displays as I would like without any brackets.
concat(outputs('ExistingSFDC'),' ', outputs('NewSFDC')) - I have called this MergedSFDC
However, when I then add the step to my flow to update my Sharepoint list (adding
outputs('MergedSFDC') to my selected column) the output shows as the following in SharePoint:
["21723748 123456"]
I tried to use the replace function to get rid of the brackets, entering it into the field (SFDC) I want to fill in Sharepoint.
replace(replace(outputs('MergedSFDC'),'[',''),']','')
but that produces the following failure:
Unable to process template language expressions in action 'Update_item' inputs at line '0' and column '0': 'The template language function 'replace' expects its first parameter 'string' to be a string. The provided value is of type 'Array'.
Does anyone know how to get rid of the brackets?
Many thanks 🙂