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 / 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

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