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 / Trying to create an au...
Power Automate
Unanswered

Trying to create an automate flow for SharePoint list

(0) ShareShare
ReportReport
Posted on by 3

I have a SharePoint list (below) which I am trying to make use of for creating an automate flow.

migration_flow.png

This list has a flow triggering button in each row "Mov to O365". My requirement is that when user clicks on "move to O365". Only if his email address matches the email address in adjacent row on which he clicked, email should be triggered as "YOU ARE THE OWNER OF THIS MAILBOX" or else "YOU ARE NOT THE OWNER OF THIS MAILBOX". I have already created a flow to trigger the email to the person who triggers the flow but i am not able to achieve the above condition. 
Example: If the user who clicked on Move to O365 has email address: a.com  and if the row adjacent to it has a.com email address in the "EmailAddress" column then email should trigger stating: "YOU ARE THE OWNER OF THIS MAILBOX"


Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,428 Super User 2026 Season 1 on at

    @ashishashford I would do it a different way and only display the button if the owner is the same as the current logged in user. So in the image below I am logged in to Office 365 as rob.d.elliott99 so as that email address is shown in the Owner column the button is visible, but for the other columns it is hidden:

    me.png

     

    The JSON to conditionally display that button is as follows and it's the visibility line that's important:

     

    {
     "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
     "elmType": "button",
     "txtContent": "Move to O365",
     "customRowAction": {
     "action": "executeFlow",
     "actionParams": "='{\"id\":\"50097cde-b800-4c6c-ade9-95be7574f4e5\", \"headerText\":\" ' + [$Title] + '\",\"runFlowButtonText\":\"Go\"}'"
     },
     "style": {
     "background-color": "#cf000f",
     "color": "white",
     "border-radius": "10px",
     "visibility": "=if(([$Owner]==@me), 'visible', 'hidden')"
     }
    }

     

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • ashishashford Profile Picture
    3 on at

    Wow. Thanks for taking initial stab at this. I must say you are really helpful and that's the first thing I tried doing but gave up. I initially started with idea of hiding the BUTTON for non-owner but it didn't work well so I thought to design in a way that only owner will and should receive appropriate email. Now with your help, I went back to original idea but even then it doesn't work. Maybe i am missing something.

     

    {
    "elmType": "button",
    "txtContent": "Move to O365",
    "customRowAction": {
    "action": "executeFlow",
    "actionParams": "='{\"id\":\"cf4dc7f5-b272-4362-b493-dcf46a75b4ca\", \"headerText\":\" ' + [$Title] + '\",\"runFlowButtonText\":\"Go\"}'"
    },
    "style": {
    "background-color": "#cf000f",
    "color": "white",
    "border-radius": "10px",
    "visibility": "=if(([$EmailAddress]==@me), 'visible', 'hidden')"
    }
    }
     I am logged in as myself but the button doesn't show up against my email address
    ashishashford_1-1690435380050.png

     


     

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
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard