Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Multiple conditions on a single field when updating sharepoint list from MS Form

(1) ShareShare
ReportReport
Posted on by 24
HI,
 
I have 2 different sections on an MS form, both sections have a due date for respective actions. When I create a flow to update the due date response to single SharePoint List field (due date) it requires date format, or null, so it doesnt throw an error. So I use the function:
 
if(equals(body('Get_response_details')?['r3d5e868db8f948be9bd9f3a44c0bbd0b'],''),null,body('Get_response_details')?['r3d5e868db8f948be9bd9f3a44c0bbd0b']) - which checks to see if the field is blank, which makes it null or adds the date if there is one. This all works fine.
 
My issue is when I want to add the same check for the 2nd date field (which will be null if the expression above is true) I cant nest the 2 expressions together in the same field in 'Create Item'. I need to duplicate the expression above to check both fields in a single line of code?
 
Can anyone help how I effectively nest 2 conditions to the expression above?
 
  • Verified answer
    Portfolio_Director_Automation Profile Picture
    24 on at
    Multiple conditions on a single field when updating sharepoint list from MS Form
    Resolved!!! I just needed to put the 2nd statement in the first 'null'! Tested and works
     
    if(equals(body('Get_response_details')?['r3d5e868db8f948be9bd9f3a44c0bbd0b'],''),INSERT 2nd IF Statement,body('Get_response_details')?['r3d5e868db8f948be9bd9f3a44c0bbd0b']) - which checks to see if the field is blank, which makes it null or adds the date if there is one. This all works fine.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492