0

I want to create a site script that calls a flow when sites are created. I use following:

$jsonSiteScript = '{
    "$schema": "schema.json",
    "actions": [
    {
            "verb": "triggerFlow",
            "url": "https://prod-xx.xx.logic.azure.com:443/workflows/xx/triggers/manual/paths/invoke?api-version=2016-10-xx",
            "name": "Apply Template",
            "parameters": {
                "event":"",
                "product":""
            }
    }
    ],
    "bindata": {},
    "version": 1
}'

$siteScript = Add-SPOSiteScript -Title "365gov-site-script" -Content $jsonSiteScript

Add-SPOSiteDesign -Title "365gov-teamsite-design" -SiteScripts $siteScript.Id -WebTemplate "64" -IsDefault:$true
Add-SPOSiteDesign -Title "365gov-communication-design" -SiteScripts $siteScript.Id -WebTemplate "68" -IsDefault:$true

This works for all modern templates. However a new menu is created in the UI: enter image description here

Is there anyway to not have new menu in dropdown but just trigger the sitescript?

Your Answer

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

Browse other questions tagged or ask your own question.