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 / AddToTime: Using Dynam...
Power Automate
Answered

AddToTime: Using Dynamic Content within Expression

(0) ShareShare
ReportReport
Posted on by

Hi all,

I try to use AddToTime to add 1 month to a date on a certain trigger.

I want to do:

* get "Nächster Termin" (next date)  - for example 2020/02/01

* add 1 Month to this date - results in for example 2020/03/01

 

der_cosmicyes_0-1612867052809.png


My AddToTime looks like this and does not work:

 

 

addToTime('Nächster Termin',1,'Month')

 

 

I can get "Nächster Termin" from Dynamic Content.
But how do I integrate it into my expression?

Thank you in advance!

 
Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @der_cosmicyes  you can check this post https://sharepains.com/2018/06/25/microsoft-flow-calculate-next-month-resolved-with-workaround/ for reference on how to add month to a date.

  • RK-23070616-0 Profile Picture
    on at

    Dear annajhavei,

    thank you for your reply.
    I was hoping that this could be solved more easily as I do have all the information I need.
    Let me ask more general: 
    Is there a way to put a Dynamic content into an Expression?
    AddToTime wants a string as first parameter. I could add "2021/02/10".
    But I do have da date as Dynamic Content - can I add this to the Expression? And if yes: how?

  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @der_cosmicyes ,

     

    There is a trick to this, if "Nächster Termin" is a field captured and retrieved by get items, when you build your expression, you can flick back and forth between expression builder and dynamic content, it's just that you often cannot see the dynamic content tab beneath.

     

    So, start building your expression and then when you want to select your "Nächster Termin" field, switch back to dynamic content and then back to expression builder.  It takes a bit of practice.

  • RK-23070616-0 Profile Picture
    on at

    Hi DamoBird365

    Thank you, that´s what I wanted to hear 🙂
    Unfortunately it still does not work.
    If I flip back to Dynamic content I do not see "Nächster Termin" in there anymore.

    der_cosmicyes_0-1612946078698.png

     


    As long as I do not set any Expression at all I see "Nächster Termin".
    I think PowerAutomate might be a bit buggy here and there?!?

    Nevertheless I solved it by changing my requirements a little bit. Fortunately I am in the position to do this 😉

    I will try your trick again next time I need it!

  • Verified answer
    annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @der_cosmicyes , when you dont see the value in Dynamic Content when switching to Dynamin Content from expressions, you can use another trick of copy paste, as shown in video from below link

    https://1drv.ms/v/s!An0udZ9uZBGJsx-lchz9f7Ey5GID?e=W7OJCu

     

  • RK-23070616-0 Profile Picture
    on at

    thank you annajhaveri, this is really awesome! 🙂

  • oldandnew Profile Picture
    29 on at

    This solution works great! Is there a way to show just the month and year as MMM yy?

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard