Skip to main content

Notifications

Power Automate - Using Flows
Unanswered

How get i dynamic text into the body?

(0) ShareShare
ReportReport
Posted on by 899

How do I create a Flow to get dynamic text into the body?

 

I have now this flow.
The intention is that if ruleset 1 is true that certain text enters in the body, but if ruleset 2 is true, another text enters in the body.
It may also be that text from ruleset 1 AND ruleset 2 are true.

Is that possible?

 

Flow1.pngFlow2.png

 

  • frixel Profile Picture
    frixel 899 on at
    Re: How get i dynamic text into the body?

    Hi @efialttes 

     

    Have you been able to watch this?

  • frixel Profile Picture
    frixel 899 on at
    Re: How get i dynamic text into the body?

    Hi @efialttes 

     

    Can you help me with this?

    When i put this rule in the expression

    if(equals(item()?['Ruleset_1'],'1'),concat('This text is added when ruleset_1 equals to 1 : ',add(add(int(item()?['Storenumber']),int(item()?['Year'])),int(item()?['Period']))),'')
    Then it counts the coloms A+B+C ☺
     
    The intention is that it displays what is in Colom L - M and R
  • frixel Profile Picture
    frixel 899 on at
    Re: How get i dynamic text into the body?
    I don’t understand it.
    How must i fill it in by the expression?
  • efialttes Profile Picture
    efialttes 14,756 on at
    Re: How get i dynamic text into the body?

    @frixel  

    Perhaps the "Add dynamic content" editor is a bit buggy sometimes, but in order to add inside the expression your column 'Number' you just need to add :

    item()?['Number']

     

    we use item()? since we are inside an Apply_to_each loop.

    Hope this helps

  • frixel Profile Picture
    frixel 899 on at
    Re: How get i dynamic text into the body?

    Hi @efialttes 

     

    But in the expression can`t i add the cells from the excel table?

     

    Flow1.png

  • efialttes Profile Picture
    efialttes 14,756 on at
    Re: How get i dynamic text into the body?

    @frixel 

    You can add the following expressions on "Send an email" body:

     

    if(equals(item()?['Ruleset_1'],'1'),'This text is added when ruleset_1 equals to 1','')

    if(equals(item()?['Ruleset_2'],'1'),'This text is added when ruleset_2 equals to 1','')

     

    Hope this helps

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,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard

Featured topics

Restore a deleted flow