diff --git a/samples/.DS_Store b/samples/.DS_Store new file mode 100644 index 0000000..80f5318 Binary files /dev/null and b/samples/.DS_Store differ diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/.DS_Store b/samples/sharepoint-premium-generate-documents-with-content-assembly/.DS_Store new file mode 100644 index 0000000..ee2452c Binary files /dev/null and b/samples/sharepoint-premium-generate-documents-with-content-assembly/.DS_Store differ diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/README.md b/samples/sharepoint-premium-generate-documents-with-content-assembly/README.md new file mode 100644 index 0000000..227d077 --- /dev/null +++ b/samples/sharepoint-premium-generate-documents-with-content-assembly/README.md @@ -0,0 +1,77 @@ +# Set item level permissions + +## Summary + +This sample demonstrates how to use the syntex content assembly feature via Power Automate. This feature helps us to create documents based on Modern Templates which is part of SharePoint Premium aka. Microsoft Syntex + +![picture of the sample](./assets/ModernTemplate.png) +![picture of the sample](./assets/Flowoverview.png) + +## Applies to + +* [Microsoft Power Automate](https://docs.microsoft.com/power-automate/) +* [SharePoint Content Assembly](https://learn.microsoft.com/en-us/microsoft-365/syntex/content-assembly) + +## Compatibility + +![Premium License](https://img.shields.io/badge/Premium%20License-Not%20Required-green.svg "Premium license not required") +![On-Premises Connectors](https://img.shields.io/badge/On--Premises%20Connectors-No-green.svg "Does not use on-premise connectors") +![Custom Connectors](https://img.shields.io/badge/Custom%20Connectors-Not%20Required-green.svg "Does not use custom connectors") +![Azure Pay As You Go](https://img.shields.io/badge/Azure%20Pay%20As%20You%20Go-Required-green.svg "Uses Pay as you go subscription") +![Microsoft Syntex](https://img.shields.io/badge/Microsoft%20Syntex-Required-green.svg "Uses Pay as you go subscription") + +## Authors + +Solution|Author(s) +--------|--------- +sharepoint-premium-generate-documents-with-content-assembly | [Divya Akula](https://github.com/divya-akula) ([@_divyaakula](https://twitter.com/_divyaakula_)) + +## Version history + +Version|Date|Comments +-------|----|-------- + +## Features + +This sample demonstrates the following concepts: + +* Get rows from excel +* Use the action generate document from Microsoft Syntex + +## Prerequisites + +This sample uses data from an excel which is part of the assets +* [Excel](assets/SalaryHikesFromExcel.xlsx) +* [Syntex Modern Template](assets/DummySalaryIncrementLetter.docx) + +## Minimal Path to Awesome + +* [Download](solution/GenerateDocumentsWithContentAssembly.zip) the `.zip` from the `solution` folder +* [Import](https://flow.microsoft.com/en-us/blog/import-export-bap-packages/) the `.zip` file using **My Flows** > **Import** > **Upload** within Microsoft Flow. +* In the "Review Package Content" section, click the "Update" option for Import Setup on the Switch Page Type Resource and change it to New. +* Once the flow is imported + +## Disclaimer + +**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.** + +## Help + +We do not support samples, but we 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. + +If you encounter any issues while using this sample, [create a new issue](https://github.com/pnp/powerautomate-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=bug-report.yml&sample=YOURSAMPLENAME&authors=@YOURGITHUBUSERNAME&title=YOURSAMPLENAME%20-%20). + +For questions regarding this sample, [create a new question](https://github.com/pnp/powerautomate-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=question.yml&sample=YOURSAMPLENAME&authors=@YOURGITHUBUSERNAME&title=YOURSAMPLENAME%20-%20). + +Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/powerautomate-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=suggestion.yml&sample=YOURSAMPLENAME&authors=@YOURGITHUBUSERNAME&title=YOURSAMPLENAME%20-%20). + +## For more information + +- [Create your first flow](https://docs.microsoft.com/en-us/power-automate/getting-started#create-your-first-flow) +- [Microsoft Power Automate documentation](https://docs.microsoft.com/en-us/power-automate/) +- [Working with the SharePoint HTTP Action in Power Automate](https://docs.microsoft.com/en-us/sharepoint/dev/business-apps/power-automate/guidance/working-with-send-sp-http-request) + + + + +--- diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/.DS_Store b/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/.DS_Store differ diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/DummySalaryIncrementLetter.docx b/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/DummySalaryIncrementLetter.docx new file mode 100644 index 0000000..4a91e34 Binary files /dev/null and b/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/DummySalaryIncrementLetter.docx differ diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/Flowoverview.png b/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/Flowoverview.png new file mode 100644 index 0000000..12aa473 Binary files /dev/null and b/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/Flowoverview.png differ diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/ModernTemplate.png b/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/ModernTemplate.png new file mode 100644 index 0000000..5815681 Binary files /dev/null and b/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/ModernTemplate.png differ diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/SalaryHikesFromExcel.xlsx b/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/SalaryHikesFromExcel.xlsx new file mode 100644 index 0000000..4a857dc Binary files /dev/null and b/samples/sharepoint-premium-generate-documents-with-content-assembly/assets/SalaryHikesFromExcel.xlsx differ diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/solution/.DS_Store b/samples/sharepoint-premium-generate-documents-with-content-assembly/solution/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/samples/sharepoint-premium-generate-documents-with-content-assembly/solution/.DS_Store differ diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/solution/GenerateDocumentsWithContentAssembly.zip b/samples/sharepoint-premium-generate-documents-with-content-assembly/solution/GenerateDocumentsWithContentAssembly.zip new file mode 100644 index 0000000..165afe2 Binary files /dev/null and b/samples/sharepoint-premium-generate-documents-with-content-assembly/solution/GenerateDocumentsWithContentAssembly.zip differ diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/.DS_Store b/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/.DS_Store new file mode 100644 index 0000000..9baa25f Binary files /dev/null and b/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/.DS_Store differ diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/Microsoft.Flow/flows/008bce22-f57e-4243-91dd-3654e2accf50/apisMap.json b/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/Microsoft.Flow/flows/008bce22-f57e-4243-91dd-3654e2accf50/apisMap.json new file mode 100644 index 0000000..25ff14d --- /dev/null +++ b/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/Microsoft.Flow/flows/008bce22-f57e-4243-91dd-3654e2accf50/apisMap.json @@ -0,0 +1 @@ +{"shared_excelonlinebusiness":"7a7cdae6-0618-416d-a321-7d32b4a9f579","shared_sharepointonline":"f2ec3817-cc47-4b1d-af49-96b576a003cf"} \ No newline at end of file diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/Microsoft.Flow/flows/008bce22-f57e-4243-91dd-3654e2accf50/connectionsMap.json b/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/Microsoft.Flow/flows/008bce22-f57e-4243-91dd-3654e2accf50/connectionsMap.json new file mode 100644 index 0000000..dc895ab --- /dev/null +++ b/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/Microsoft.Flow/flows/008bce22-f57e-4243-91dd-3654e2accf50/connectionsMap.json @@ -0,0 +1 @@ +{"shared_excelonlinebusiness":"41d4de2d-41ef-49fd-8e9e-1418153ac58f","shared_sharepointonline":"d1275c89-0c6c-4f9e-8436-e46dafda27c5"} \ No newline at end of file diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/Microsoft.Flow/flows/008bce22-f57e-4243-91dd-3654e2accf50/definition.json b/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/Microsoft.Flow/flows/008bce22-f57e-4243-91dd-3654e2accf50/definition.json new file mode 100644 index 0000000..94668be --- /dev/null +++ b/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/Microsoft.Flow/flows/008bce22-f57e-4243-91dd-3654e2accf50/definition.json @@ -0,0 +1 @@ +{"name":"dd2e2b41-e2df-47e6-b26f-f809d8bbb3e4","id":"/providers/Microsoft.Flow/flows/dd2e2b41-e2df-47e6-b26f-f809d8bbb3e4","type":"Microsoft.Flow/flows","properties":{"apiId":"/providers/Microsoft.PowerApps/apis/shared_logicflows","displayName":"Generate Documents With Content Assembly","definition":{"metadata":{"workflowEntityId":null,"processAdvisorMetadata":null,"flowChargedByPaygo":null,"flowclientsuspensionreason":"None","flowclientsuspensiontime":null,"flowclientsuspensionreasondetails":null,"creator":{"id":"e15cde1d-edef-4114-bdf4-bd62689f2061","type":"User","tenantId":"c09030dd-81e0-44af-a342-68c9358c43dd"},"provisioningMethod":"FromDefinition","failureAlertSubscription":true,"clientLastModifiedTime":"2025-01-14T18:11:12.5762451Z","connectionKeySavedTimeKey":"2025-01-14T18:11:12.5762451Z"},"$schema":"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#","contentVersion":"undefined","parameters":{"$authentication":{"defaultValue":{},"type":"SecureObject"},"$connections":{"defaultValue":{},"type":"Object"}},"triggers":{"manual":{"type":"Request","kind":"Button","inputs":{"schema":{"type":"object","properties":{},"required":[]}}}},"actions":{"List_rows_present_in_a_table":{"runAfter":{},"metadata":{"013TJDBEUH3IE5EGJB7FCJ7OQAAKSYXWHP":"/SalaryHikesFromExcel (1).xlsx","tableId":"{74A30009-A857-45DD-9F95-4B0F0BF498DD}"},"type":"OpenApiConnection","inputs":{"parameters":{"source":"sites/trycatchexp.sharepoint.com,ae3bd508-94f7-4c60-b268-17f13a79ad3c,f27dd160-5745-4a5d-9718-342694423582","drive":"b!CNU7rveUYEyyaBfxOnmtPGDRffJFV11Klxg0JpRCNYLedltcBcv8Solhr99Dr_3n","file":"013TJDBEUH3IE5EGJB7FCJ7OQAAKSYXWHP","table":"{74A30009-A857-45DD-9F95-4B0F0BF498DD}"},"host":{"apiId":"/providers/Microsoft.PowerApps/apis/shared_excelonlinebusiness","connectionName":"shared_excelonlinebusiness","operationId":"GetItems"},"authentication":{"value":"@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']","type":"Raw"}}},"Apply_to_each":{"foreach":"@outputs('List_rows_present_in_a_table')?['body/value']","actions":{"Generate_document_using_Microsoft_Syntex_(preview)":{"type":"OpenApiConnection","inputs":{"parameters":{"dataset":"https://trycatchexp.sharepoint.com/sites/HRPortal","table":"173348ac-615c-4c13-a719-c2a1829caaf8","template":"0x0101001B3C7C740F1A714ABF32272C32C8112F0044FA7380096AC54FA706CA84571E2466","fileName":"@item()?['EmployeeName']","item/msca173822":"@item()?['EmployeeName']","item/msca857244":"@item()?['HikePercentage']","item/msca741519":"@item()?['NewAnnualSalary']","item/msca893748":"@item()?['HikePercentage']"},"host":{"apiId":"/providers/Microsoft.PowerApps/apis/shared_sharepointonline","connectionName":"shared_sharepointonline","operationId":"CreateContentAssemblyDocument"},"authentication":{"value":"@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']","type":"Raw"}}}},"runAfter":{"List_rows_present_in_a_table":["Succeeded"]},"type":"Foreach"}}},"connectionReferences":{"shared_excelonlinebusiness":{"connectionName":"shared-excelonlinebu-01d570c3-8a5a-4ed2-a6f3-17f08a99e6d5","source":"Invoker","id":"/providers/Microsoft.PowerApps/apis/shared_excelonlinebusiness","tier":"NotSpecified","apiName":"excelonlinebusiness"},"shared_sharepointonline":{"connectionName":"shared-sharepointonl-b3d8b13d-b1a9-4932-83b7-8fe14b24c80a","source":"Invoker","id":"/providers/Microsoft.PowerApps/apis/shared_sharepointonline","tier":"NotSpecified","apiName":"sharepointonline"}},"flowFailureAlertSubscribed":false,"isManaged":false}} \ No newline at end of file diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/Microsoft.Flow/flows/manifest.json b/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/Microsoft.Flow/flows/manifest.json new file mode 100644 index 0000000..28f4d0e --- /dev/null +++ b/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/Microsoft.Flow/flows/manifest.json @@ -0,0 +1 @@ +{"packageSchemaVersion":"1.0","flowAssets":{"assetPaths":["008bce22-f57e-4243-91dd-3654e2accf50"]}} \ No newline at end of file diff --git a/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/manifest.json b/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/manifest.json new file mode 100644 index 0000000..3d1bde9 --- /dev/null +++ b/samples/sharepoint-premium-generate-documents-with-content-assembly/sourcecode/manifest.json @@ -0,0 +1 @@ +{"schema":"1.0","details":{"displayName":"Generate Documents With Content Assembly","description":"","createdTime":"2025-01-14T18:11:58.564888Z","packageTelemetryId":"d8930c90-1991-4a08-8426-4feec0872e75","creator":"N/A","sourceEnvironment":""},"resources":{"008bce22-f57e-4243-91dd-3654e2accf50":{"type":"Microsoft.Flow/flows","suggestedCreationType":"Update","creationType":"Existing, New, Update","details":{"displayName":"Generate Documents With Content Assembly"},"configurableBy":"User","hierarchy":"Root","dependsOn":["7a7cdae6-0618-416d-a321-7d32b4a9f579","41d4de2d-41ef-49fd-8e9e-1418153ac58f","f2ec3817-cc47-4b1d-af49-96b576a003cf","d1275c89-0c6c-4f9e-8436-e46dafda27c5"]},"7a7cdae6-0618-416d-a321-7d32b4a9f579":{"id":"/providers/Microsoft.PowerApps/apis/shared_excelonlinebusiness","name":"shared_excelonlinebusiness","type":"Microsoft.PowerApps/apis","suggestedCreationType":"Existing","details":{"displayName":"Excel Online (Business)","iconUri":"https://conn-afd-prod-endpoint-bmc9bqahasf3grgk.b01.azurefd.net/releases/v1.0.1718/1.0.1718.3944/excelonlinebusiness/icon.png"},"configurableBy":"System","hierarchy":"Child","dependsOn":[]},"41d4de2d-41ef-49fd-8e9e-1418153ac58f":{"type":"Microsoft.PowerApps/apis/connections","suggestedCreationType":"Existing","creationType":"Existing","details":{"displayName":"dinudivya@trycatchexp.onmicrosoft.com","iconUri":"https://connectoricons-prod.azureedge.net/releases/v1.0.1718/1.0.1718.3944/excelonlinebusiness/icon.png"},"configurableBy":"User","hierarchy":"Child","dependsOn":["7a7cdae6-0618-416d-a321-7d32b4a9f579"]},"f2ec3817-cc47-4b1d-af49-96b576a003cf":{"id":"/providers/Microsoft.PowerApps/apis/shared_sharepointonline","name":"shared_sharepointonline","type":"Microsoft.PowerApps/apis","suggestedCreationType":"Existing","details":{"displayName":"SharePoint","iconUri":"https://conn-afd-prod-endpoint-bmc9bqahasf3grgk.b01.azurefd.net/releases/v1.0.1723/1.0.1723.3986/sharepointonline/icon.png"},"configurableBy":"System","hierarchy":"Child","dependsOn":[]},"d1275c89-0c6c-4f9e-8436-e46dafda27c5":{"type":"Microsoft.PowerApps/apis/connections","suggestedCreationType":"Existing","creationType":"Existing","details":{"displayName":"dinudivya@trycatchexp.onmicrosoft.com","iconUri":"https://connectoricons-prod.azureedge.net/u/jayawan/releases/v1.0.1697/1.0.1697.3786/sharepointonline/icon.png"},"configurableBy":"User","hierarchy":"Child","dependsOn":["f2ec3817-cc47-4b1d-af49-96b576a003cf"]}}} \ No newline at end of file diff --git a/samples/sharepoint-set-item-level-permissions/.DS_Store b/samples/sharepoint-set-item-level-permissions/.DS_Store new file mode 100644 index 0000000..de929a9 Binary files /dev/null and b/samples/sharepoint-set-item-level-permissions/.DS_Store differ