web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to convert a conca...
Power Automate
Suggested Answer

How to convert a concat string to a Dynamic Content

(0) ShareShare
ReportReport
Posted on by 11
Basically what I want to do is to use concat to make the Dynamic Content.
 
I tried:
concat('@{','body(''Parse_',items('Apply_to_each_EMAIL_RETURN_FIELDS')?['SOURCE/Value'],'_JSON'')?[''',items('Apply_to_each_EMAIL_RETURN_FIELDS')?['SOURCE_FIELD'],''']','}')
and also tried:
concat('body(''Parse_',items('Apply_to_each_EMAIL_RETURN_FIELDS')?['SOURCE/Value'],'_JSON'')?[''',items('Apply_to_each_EMAIL_RETURN_FIELDS')?['SOURCE_FIELD'],''']')
 
It generates for example: 
@{body('Parse_RETURN_JSON')?['orderId']
 
But on the output it literally types out "@{body('Parse_RETURN_JSON')?['orderId']" instead of the Dynamic Content and I didn't found another way to do it.
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    15,287 Super User 2026 Season 2 on at
    Dynamic Content refers to the data generated by triggers and actions within a flow. This data can be used in subsequent steps to create dynamic workflows. You can insert dynamic content into fields by selecting it from the Dynamic Content panel, allowing you to customize actions based on the input data, such as including details from a SharePoint item in an email notification. This makes your flows more responsive and tailored to specific scenarios.
     
    In Power Automate, you can create variables to store and manipulate data within your flow. These variables will appear under the Dynamic Content panel, allowing you to use them in subsequent actions. This makes it easy to reference and utilize the stored data throughout your workflow, enhancing the flexibility and functionality of your flow.
     
    I cannot help you more than that, since I don't know what you're trying to accomplish with your expressions. Since you say that it "literally types out "@{body('Parse_RETURN_JSON')?['orderId']", that would indicate that you did not use the expression builder to create the expression.
     
    You will need to show the action and how it is configured rather than the flow run history in order to figure out your issue.
  • Suggested answer
    smiller0789 Profile Picture
    13 on at
    Ran into this post while trying to do the same thing, and figured it out after some fiddling around. So hopefully this will help a future someone! 

    Correct way to combine different dynamic content fields to reference another dynamic content field is to use the concat/string expressions inside the field structure.
     
    For OP's example it would be:
     
    body(concat('Parse_',string(items('Apply_to_each_EMAIL_RETURN_FIELDS')?['SOURCE/Value']),'_JSON'))?[string(
    items('Apply_to_each_EMAIL_RETURN_FIELDS')?['SOURCE_FIELD'])]
     
     
    The one for my flow is a bit simpler:
     
    items('Apply_to_each_labor_type')?[string(items('For_each_payroll_hour')?['columnName'])]
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 272 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 147 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 146 Super User 2026 Season 2

Last 30 days Overall leaderboard