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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Can I replace this act...
Power Automate
Answered

Can I replace this action with an expression?

(0) ShareShare
ReportReport
Posted on by 8

Hello,

 

I am currently working on automating a report we use at my company in order to accelerate procecess using an MS Forms to gather necessary info to populate a Word Document Template.

The report has a fixed format and cannot be changed. Part of the format includes the answer to some questions being checkboxes.

I have developed a simple solution that verifies the questions' answer and change the checkbox in the template accordingly as shown below:

 

iorigiu_0-1659104797853.png

(If answer = Yes then fill the associated content control with a Checked checkbox AND the 'NO' control with a blank one. If not do the opposite.)

 

My problem is that the report is long and some of the conditions are 3-answer, so it implies more nested actions and I am reaching Flow's limits.

Hence the question: can I write this whole action as an expression? So I can avoid using actions and then fill the content control using an expression.

 

TLDR: I need to know if I can transform the following action into an expression:
If answer = yes then set variable X into Y AND set variable W into Z, else, set variable X into Z AND set variable W into Y.

 

Thanks in advance,

Giulianno

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

    Hi @iorigiu ,

     

    You could set the variable's variable to 

     

    if(equals(FormFieldValue,'Sim'),'A','B')

     

     directly  instead of using the condition action.

     

    Best Regards,

    Bof

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard