Microsoft Flow: Optional input for a selected item in SharePoint list
Default behaviour
When creating a Microsoft Flow, one of the many, many possible triggers is For a selected item:
This allows an Office 365 user to select an item in a list or a file in SharePoint library and start the flow manually after entering some of the required information. Currently there is no UI option to set the user inputs as optional. As long as any of the input fields is missing, the user cannot start the flow:
Change the required input field to optional
Extract the package and locate definition.json file.
You can beautify the json text using a json formatter, e.g. https://jsonformatter.curiousconcept.com/
In the beginning of the file, after
"triggers":{
"manual":{
you should see the required fields:
"required":[
"text",
"text_1"
]
- Remove the fields which you want to make optional.
- Save the file and package the Flow again as .zip
- Import the Flow.
- Now your field became optional: