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 / Using an http trigger ...
Power Automate
Unanswered

Using an http trigger called from Sharepoint, how can I get current user with security or how can I trigger "for selected item" from a customized page?

(0) ShareShare
ReportReport
Posted on by

I have a customized page, where I implement a dataview with elements of a Sharepoint list.

I have a button for any of these elements, this button calls a flow that receives the id of the item.

That is great until here.

I could pass the id of the Sharepoint user to know who is the user. Nonetheless, it could be hacked.

That is why I ask which are the best options to know really from the credentials who is the executing current user.

We have to take into account that it is a customized page, that I cannot use "when an item is created or modified".

 

I think of 2 solutions:

- call a "for selected item" trigger, as you can do in out-of-the-box views of the lists, but I don't see how, what javascript to use or what service to call.

Has anybody any idea about this?

- call a Sharepoint workflow that identifies the current user and then call the flow from there, once I know the current user. Ugly solution, mixing both technologies, one of then old.

 

Any other idea?

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @magonzalez ,

     

    Your first solution seems to work.

    You could use For a selected item as the trigger and then use the user id to get information about the current user.

    Image reference:

    38.PNG

     

    Best Regards,

  • MG-20122058-0 Profile Picture
    on at

    But I can't use "for selected item" because it is a customized page, written with javascript / html or with react, you can only use selected item from dataviews out-of-the-box, as far as I know. 

     

    My question is how can you do that without dataviews out-of-the-box?

     

    Thx.

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @magonzalez ,

     

    Unfortunately, For a select item seems to only work on the default interface of SharePoint list/Library.

     

    Best Regards,

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard