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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Action "Compose" - How...
Power Automate
Answered

Action "Compose" - How can I use workflow definition language in action ?

(1) ShareShare
ReportReport
Posted on by 1,724

I want to use Workflow definition language in Action "Compose",

to use output from the action at multiple below actions/conditions

 

My scenario:

1. Trigger something.

2. Action "Compose" create "Current hour" by @{int(formatDateTime(addhours(utcnow(),9),'%H'))}

3. Actions/Conditions use "Current hour" that output from Step 2.

 

Can I use workflow definition language in Action "Compose" ?

or How can I do ?

 

Regards,

Yoshihiro Kawabata

Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi Yoshihiro,

     

    I have seen an article about Workflow Definition Language, hope this article can be a reference for you, the article link is:
    https://docs.microsoft.com/en-us/rest/api/logic/definition-languagehttps://docs.microsoft.com/en-us/rest/api/logic/definition-language

     

    Workflow definition language can be used in “Compose” action, please add a double quotation mark on the function to see if it works.

    Best regards,
    Mabel Mao

     

  • yoshihirok Profile Picture
    1,724 on at

    Hi @v-yamao-msft

     

    Yes, I have see the article, and I am tring it.

     

    So, I will try Action "Compose" with double-quote.

     

    Regards,

    Yoshihiro Kawabata

  • yoshihirok Profile Picture
    1,724 on at

    Thank you, @v-yamao-msft, I can use Action 'Compose' with Workflow Definition Language.

     

    Current Hour in Japan:

    Action: 'Compose'

    Name: 'Current Hour'

    Input: "@int(formatDateTime(addhours(utcnow(),9),'%H'))"

     

    and Reuse the output.

     

    Hour after 1 hour.

    Action:  'Compose'

    Name: 'Next Hour'

    Input: @add(outputs('Current Hour'), 1)

     

    Regards,

    Yoshihiro Kawabata

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 173 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 95 Super User 2026 Season 1

Last 30 days Overall leaderboard