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

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 463 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 427 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard