|
| 1 | +# SharePoint Site Creation Bot |
| 2 | + |
| 3 | +## Summary |
| 4 | + |
| 5 | +Sample Bot that creates a SharePoint Site by calling Power Automate and using Microsoft Graph/SharePoint Rest APIs. |
| 6 | + |
| 7 | +This bot can create either a blank Communication site or a blank Team site (Group connected). |
| 8 | + |
| 9 | +This solution was built and targeted to be used in Dataverse for Teams. |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +## Applies to |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | +## Compatibility |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +## Contributors |
| 33 | +<!-- |
| 34 | +We use this section to recognize and promote your contributions. Please provide one author per line -- even if you worked together on it. |
| 35 | +
|
| 36 | +We'll only use the info you provided here. Make sure to include your full name, not just your GitHub username. |
| 37 | +
|
| 38 | +Provide a link to your GitHub profile to help others find more cool things you have done. The only link we'll accept is a link to your GitHub profile. |
| 39 | +
|
| 40 | +If you want to provide links to your social media, blog, and employer name, make sure to update your GitHub profile. |
| 41 | +--> |
| 42 | + |
| 43 | +* [Michel Mendes](https://github.com/michelcarlo) ([@michelcarlo](https://twitter.com/michelcarlo)) |
| 44 | + |
| 45 | +## Version history |
| 46 | + |
| 47 | +Version|Date|Comments |
| 48 | +-------|----|-------- |
| 49 | +1.0|July 16, 2022|Initial release |
| 50 | +2.0|July 16, 2022|Migration from poverva-samples repository with codebase change to copilot studio by [Jan Chlebek](https://github.com/jan-chlebek) |
| 51 | + |
| 52 | + |
| 53 | +## Minimal path to awesome |
| 54 | +* [Download](solution/SharePointSiteCreationBot_2_0_0_0.zip) the `.zip` from the `solution` folder |
| 55 | +* Import the `.zip` file to Copilot Studio |
| 56 | +* Configure the connection References, and proceed importing. |
| 57 | +* After the import has suceeded, you can edit the chatbots from Copilot Studio, and publish it to any Team you have permissions to, or submit it to be published to your tenant if you have the rights. |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +## Features |
| 63 | + |
| 64 | +This is a bot built and targeted to be used within a Dataverse for Teams environments. No premium licenses are required. |
| 65 | + |
| 66 | +The bot is triggered by any of the phrases: |
| 67 | +* Create a site |
| 68 | +* Create a SharePoint site |
| 69 | +* I want a site |
| 70 | +* I want a SharePoint site |
| 71 | +* Give me a site |
| 72 | + |
| 73 | +You can then choose to create a Communication site or a Team site. |
| 74 | + |
| 75 | +After specifiying your site name, the bot will then trigger a Power Automate flow that handles the SharePoint site creation (part of the solution package). |
| 76 | + |
| 77 | +Before creating the site, the flow checks if a site with the same destination URL exists. If it does not exist then if the site to be created is a Communication Site, it will use the SharePoint REST API to create it, if it is a Team site we use Microsoft Graph (using the Send an HTTP request - Preview action from the Office 365 Groups connector). |
| 78 | + |
| 79 | +## Help |
| 80 | + |
| 81 | +We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues. |
| 82 | + |
| 83 | +If you encounter any issues while using this sample, you can [create a new issue](https://github.com/pnp/powerapps-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=bug-report.yml&sample=sharepoint-site-creation-bot&authors=@michelcarlo&title=sharepoint-site-creation-bot%20-%20). |
| 84 | + |
| 85 | +For questions regarding this sample, [create a new question](https://github.com/pnp/powerapps-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=question.yml&sample=sharepoint-site-creation-bot&authors=@michelcarlo&title=sharepoint-site-creation-bot%20-%20). |
| 86 | + |
| 87 | +Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/powerapps-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=suggestion.yml&sample=sharepoint-site-creation-bot&authors=@michelcarlo&title=sharepoint-site-creation-bot%20-%20). |
| 88 | + |
| 89 | +## Disclaimer |
| 90 | + |
| 91 | +**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.** |
| 92 | + |
| 93 | +<img src="https://m365-visitor-stats.azurewebsites.net/powerplatform-samples/samples/sharepoint-site-creation-bot" aria-hidden="true" /> |
0 commit comments