Site Designs with Flow parameters

%3CLINGO-SUB%20id%3D%22lingo-sub-153633%22%20slang%3D%22en-US%22%3ESite%20Designs%20with%20Flow%20parameters%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-153633%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20been%20working%20with%20the%20new%20SharePoint%20Site%20Designs%20and%20scripts%20to%20see%20how%20far%20I%20can%20push%20the%20provisioning%20process%20without%20any%20code.%26nbsp%3B%20So%20far%20I%20have%20been%20able%20to%20define%20all%20the%20libraries%20and%20lists%20I%20need%20including%20creating%20an%20Issues%20list%20and%20adding%20the%20Issues%20Content%20type%20as%20the%20default%2C%20defining%20navigation%20and%20the%20theme%20using%20the%20script.%3C%2FP%3E%0A%3CP%3EWith%20the%20Microsoft%20Flow%20and%20Microsoft%20Graph%2C%20it%20also%20copies%20templates%20to%20the%20site%2C%20adds%20calendar%20reminders%20to%20the%20Group%20calendar%20and%20notifies%20users%20of%20other%20steps%20like%20creating%20an%20MS%20Teams%20team.%3C%2FP%3E%0A%3CP%3EOne%20little%20snippet%20we%20discovered%20was%20that%20you%20can%20add%20other%20parameters%20to%20the%20Flow%20call%20in%20the%20script%20so%20you%20can%20then%20make%20conditions%20in%20the%20Flow%20based%20on%20the%20type%20of%20site%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%7B%0A%20%20%20%20%20%20%22verb%22%3A%20%22triggerFlow%22%2C%0A%20%20%20%20%20%20%22url%22%3A%20%22%5BFlow%20URL%5D%22%2C%0A%20%20%20%20%20%20%22name%22%3A%20%22-%20trigger%20provisioning%20engine%20after%20creation%20of%20a%20'Project'%20site%22%2C%0A%20%20%20%20%20%20%22parameters%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22event%22%3A%20%22Create%20Site%22%2C%0A%20%20%20%20%20%20%20%20%22product%22%3A%20%22SharePoint%22%2C%0A%20%20%20%20%20%20%20%20%22sitetype%22%3A%20%22Project%22%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%20%3C%2FPRE%3E%0A%3CP%3ENow%20if%20only%20the%20MS%20Graph%20would%20let%20me%20create%20a%20Teams%20space%20and%20Planner%20with%20Admin%20Consent%20rather%20than%20only%20with%20user%20consent%2C%20I%20could%20complete%20the%20whole%20process%20and%20create%20a%20base%20plan%20for%20the%20project.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-153633%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-183868%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Designs%20with%20Flow%20parameters%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-183868%22%20slang%3D%22en-US%22%3E%3CP%3Ehi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20please%20give%20an%20example%20of%20how%20the%20flow%20url%20looks%20like.%20I%20was%20not%20able%20to%20run%20the%20flow%20from%20site%20design.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3ESru%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Contributor

I've been working with the new SharePoint Site Designs and scripts to see how far I can push the provisioning process without any code.  So far I have been able to define all the libraries and lists I need including creating an Issues list and adding the Issues Content type as the default, defining navigation and the theme using the script.

With the Microsoft Flow and Microsoft Graph, it also copies templates to the site, adds calendar reminders to the Group calendar and notifies users of other steps like creating an MS Teams team.

One little snippet we discovered was that you can add other parameters to the Flow call in the script so you can then make conditions in the Flow based on the type of site:

 

{
      "verb": "triggerFlow",
      "url": "[Flow URL]",
      "name": "- trigger provisioning engine after creation of a 'Project' site",
      "parameters": {
        "event": "Create Site",
        "product": "SharePoint",
        "sitetype": "Project"
      }
    } 

Now if only the MS Graph would let me create a Teams space and Planner with Admin Consent rather than only with user consent, I could complete the whole process and create a base plan for the project.

 

 

1 Reply

hi,

 

Can you please give an example of how the flow url looks like. I was not able to run the flow from site design.

 

Thanks,

Sru