0

I want to trigger Power Automate through site design (inside site script). Found documentation from MS on how to implement this. There is a way to trigger flow using triggerFlow verb and with When Http Request is Received action. But I want to pass currently logged in user email address or user id or at least a display name to my flow as parameter. What is the way to pass? Reason behind this is, I need to send email notification through flow who applied that particular site design. Below is sample format

{
    "$schema": "schema.json",
    "actions": [
    {
            "verb": "triggerFlow",
            "url": "[paste the workflow trigger URL here]",
            "name": "Apply Template",
            "parameters": {
                "userId":"????????????????????????????",
                "userEmail":"?????????????????????????"
            }
    }
    ],
    "bindata": {},
    "version": 1
}
1
0

Those parameters are inbuilt parameters only

2
  • inbuilt means, who is running the site designs, that email will be send to flow?
    – Mihir
    Jan 20 at 11:32
  • What I mean is that you can use the following parameters: "creatorName": { "type": "string" }, "creatorEmail": { "type": "string" } It only works for Communication sites (-WebTemplate "68"), but I succesfully recovered the creator mail. Follow these steps as Dikesh mentioned: docs.microsoft.com/en-us/sharepoint/dev/… But remember to change the web template. Hope it helps!
    – shocks
    Jan 20 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.