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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamic content as a p...
Power Automate
Unanswered

Dynamic content as a parameter for actions()

(0) ShareShare
ReportReport
Posted on by 8

Does the "actions()" expression not allow dynamic content for its parameter?

 

I'm getting this error when I try to save a flow with the expression "actions(items('Apply_to_each_3'))" inside a Compose action within an Apply to Each action.

 

"Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The template action 'Compose_5' at line '1' and column '6644' is not valid: "The template function 'items' is not expected at this location.""

 

I've also tried simple test flows with a similar result. It only seems to accept a hardcoded string.

lhewitt_0-1716565071465.png

 

Categories:
I have the same question (0)
  • Verified answer
    DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at

    Hi @lhewitt 

    Unfortunately not. There is no evaluate function or similar, you have to supply/hardcode a string i.e. you can't dynamically supply its input 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard