cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mattcr
Frequent Visitor

Initialized Variable Not Showing Up In Later Steps

Hi All,

 

I am building a very basic flow that initialises a variable to find the current time, then depending on that time it will perform some later actions (including sending a message in teams). My issue is that after I have passed through the condition, the variable no longer shows up in the dynamic content of the teams message - what am I missing? Can't quite find anything online but apologies if this has been posted elsewhere.

 

Easy work around is just paste the expression in but I will eventually have a fair few variables so would like a nice way to track them!

 

Thanks!image.png

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @Mattcr,

 

Sometimes it can be hidden in the Dynamic content list because it is a mismatch of type with the field you want to add it to.

 

Like you already said, easiest workaround is to just add it as an expression via the expression tab. 

 

variables('Current Hour')

 

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


View solution in original post

2 REPLIES 2
Expiscornovus
Super User
Super User

Hi @Mattcr,

 

Sometimes it can be hidden in the Dynamic content list because it is a mismatch of type with the field you want to add it to.

 

Like you already said, easiest workaround is to just add it as an expression via the expression tab. 

 

variables('Current Hour')

 

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Hi @Expiscornovus, that's done the trick thank you!

 

I imagine because I initialized it as an integer but the teams message expects a string that's why it might be hidden.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,664)