pnp / sp-dev-site-scripts

Repository for sample SharePoint site designs and site scripts
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview
MIT License
160 stars 68 forks source link

Documentation of the properties sent from Site Design to Flow #2

Open vman opened 6 years ago

vman commented 6 years ago

Category

Is there an exhaustive list of the default properties sent from the Site Design to the Flow?

Some properties can be seen here: https://github.com/SharePoint/sp-dev-site-scripts/blob/master/samples/triggerFlow-write-back-site-properties-to-splist/request-body-json-schema.json

anishetty commented 6 years ago

hi, can you give an example of flow url format . I am trying to start flow in site script i get error saying "one or more of the properties on this action has an invalid type". { "verb": "triggerFlow", "url": "", "name": "", "parameters": { "event": "Microsoft Event", "product": "SharePoint"

nilsvbconxion commented 6 years ago

Hi guys,

The documentation is indeed not very clear about this. But all you have to know is that, apart from additional parameters that you can provide the flow with, there are a couple of properties that get sent automatically to the flow. This is what the webUrl, creatorName, etc. are.

So the only thing you have to do in the flow is indeed provide the given schema to the request body as specified by the article (link). I've provided a screenshot to explain it better:

image

image

JonEOffice commented 6 years ago

@nilsvbconxion thanks for the example and for the information that we don't need to send them along. But I'm still looking for an answer to the original question. I want to know if I can pass (or is automatically passed) the parameter of the Office 365 groupID that is created. So is there a way to get a full list of default properties? And if this one is not on it, can this be added?

nilsvbconxion commented 6 years ago

@JonEOffice: that I'm not sure! I only tested it with the following parameters:

Maybe other parameters are accepted, but I'm looking at the Microsoft-guys to verify that!