title: Trouble using concat function in Power Automate
body: <p>Trying to increment a Unique ID field in my SharePoint list every time my flow runs. Ex: If the Unique ID field in the last row before the flow runs again is &quot;M10389&quot;. Then after the flow runs, a new item will be created underneath it and its Unique ID will be &quot;M10390&quot;.</p>
  <p>The only piece of the flow that doesn't work is the Unique ID part. Here are the pieces of code within the Unique ID field of the create item action block that won't work, but should.</p>
  <p>I've tried:
  <strong>concat(string(M),add(10386,triggerBody()?['resourceData']?['responseId']))</strong>
  and
  <strong>concat(M,add(10386,triggerBody()?['resourceData']?['responseId']))</strong>
  P.S. The &quot;triggerBody()?['resourceData']?['responseId']&quot; is the number of submissions from the form that triggers this flow, and is how I am incrumenting the Unique ID field by one.</p>
  <p>Neither work and I think it has something to do with the <strong>concat()</strong> function, because <strong>concat(m,n)</strong> doesnt work, neither does <strong>concat(string(M),string(2))</strong>, or even <strong>concat(string(m),string(n))</strong>. In fact, the only time concat works is when I'm using 2 numbers like <strong>concat(52,7)</strong>.</p>
  <p>The error message simply reads:</p>
  <blockquote>
  <p>&quot;us.flow.microsoft.com says
  The expression is invalid.&quot;</p>
  </blockquote>
  <p>How do I achieve what I'm after within power automate?</p>
  <p>Picture of what this looks like:</p>
  <p><img src="https://i.stack.imgur.com/aqyC8.jpg" alt="Picture of my flow" /></p>