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 / Multiple conditions on...
Power Automate
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?
 
Categories:
I have the same question (0)
  • Verified answer
    Portfolio_Director_Automation Profile Picture
    24 on at
    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard