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?