Hi @anthonys123,
Yes, that would probably be the easiest approach for retrieving the emailaddress of the current person without any coding. That's why I suggested this approach to you.
But you are right, it would not be exactly the same as that other thread.
You do need to change it to your specific setup/requirements 😁
Btw, you can place a list web part on a page and with column & view formatting you can format it as a single button (if you just use a single item in the list).
Below is an example which hopefully clarifies why I think this approach is still suitable for your situation.
1. I create a list called Single Button Click, only with the title column. Add one list item to it. Does not matter what title value you use. We are going to reformat it anyway with the txtcontent button in the column formatting.
2. Add column formatting to the Title column. Use the json below.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"style": {
"border-radius": "5px",
"margin": "5px 0px",
"padding": "0px",
"visibility": "visible"
},
"attributes": {
"class": "ms-bgColor-themePrimary"
},
"children": [
{
"elmType": "a",
"txtContent": "Click Me",
"style": {
"text-decoration": "none",
"padding": "10px 0px",
"width": "100%"
},
"attributes": {
"href": "='https://prod-30.yourregion.logic.azure.com:443/workflows/workflowguid/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=randomsig&username=' + @me",
"target": "_blank",
"class": "ms-fontColor-white"
}
}
]
}
3. Add view formatting to the All Items view (to hide the column headers and selection options). Use the json below
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
"hideColumnHeader": true,
"hideSelection": true
}
4. Place the list web part on the page and make sure you select your List and hide all the controls

The end result should look something like below on a page.

That being said, obviously feel free to go down the deploy custom web part with javascript approach, if you feel comfortable coding. And the above is still not what you are looking for?