cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Memorable Member
Memorable Member

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

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/...

 

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

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support
Community Support

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/...

 

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

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

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

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (7,521)