Skip to main content

Notifications

Power Automate - General Discussion
Answered

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

 

  • Verified answer
    DJ_Jamba Profile Picture
    DJ_Jamba 2,327 on at
    Re: Dynamic content as a parameter for actions()

    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard