Power Platform : Power Automate – How to verify whether value is available for Person column in SharePoint list – for single value selection or multiple selection

Power Platform - Power Automate - Flow to demonstrate validation on Person column with single value selection and multiple value selection
Power Platform - Power Automate - Flow to demonstrate validation on Person column with single value selection and multiple value selection

Hi All,

Greetings for the day!!!

Today again small sharing !!!

As me and my team took bit good amount time to verify the conditions for Person type column either single value selection or multiple value selection. So thought to share though it was very simple. SHARING IS CARING 🙂

Details

  • We have one SharePoint list in my demo tenant – “Power Automate – Test Person field” with some of the following columns like (there are other columns as well)
    • Title
    • User – Person – with single value selection
    • Users – Person – with multi value selection
Microsoft 365 - SharePoint Online
fig : Microsoft 365 – SharePoint Online – Demo list – with two Person columns – single value and multi value respectively
  • List schema
Microsoft 365 - SharePoint Online
fig : Microsoft 365 – SharePoint Online – Demo list – with two Person columns – single value and multi value respectively – List schema
  • On new item creation in given list we need to trigger Power Automate

Power Automate

  • In Power Automate we need check if value in “User ” column is specified or not while creating the item – that means any user is specified or not in this column
  • To check the value of Person – single selection column we just need to check either empty value OR null in condition control as
Power Platform - Power Automate
fig : Power Platform – Power Automate – Verifying the condition for single value Person column

OR

  • Just check for blank / empty value as in below figure
Power Platform - Power Automate - Verifying the condition for single value Person column (verifying the presence of user in column)
fig : Power Platform – Power Automate – Verifying the condition for single value Person column (verifying the presence of user in column)
  • For multiple value selection Person column, in Power Automate we get array as , there are two users selected in list item
fig : Power Platform – Power Automate – Result of multi value Person column – Two users are selected in litsitem column
  • Since we have array of result we can user the length() under Expression – to check if respective columns have values or not as – that means users are selected or not
Power Platform - Power Automate - Condition to check if there are users in multi value Person column
fig : Power Platform – Power Automate – Condition to check if there are users in multi value Person column

Complete Flow

Power Platform - Power Automate - Flow to demonstrate validation on Person column with single value selection and multiple value selection
fig : Power Platform – Power Automate – Flow to demonstrate validation on Person column with single value selection and multiple value selection

Thanks for reading the article !!! Please feel free to discuss in case any issues / suggestions / thoughts / questions !!!

HAVE A GREAT TIME AHEAD !!! LIFE IS BEAUTIFUL 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL. ENJOY THE WHOLE JOURNEY :) Founder of Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Microsoft 365

Subscribe now to keep reading and get access to the full archive.

Continue reading