diff --git a/samples/populate-word-table-template/README.md b/samples/populate-word-table-template/README.md new file mode 100644 index 00000000..ec0c134d --- /dev/null +++ b/samples/populate-word-table-template/README.md @@ -0,0 +1,85 @@ +# Populate Word Table Template + +## Summary + +Explore a comprehensive guide on automating document generation using Power Automate. This tutorial focuses on dynamically populating a Word template with data retrieved from Microsoft Dataverse and storing the generated document in OneDrive for Business. + +🚀 This automation simplifies the document creation process, reducing manual efforts and ensuring consistency in your generated documents. + + +![Screenshot 2023-09-02 130516](./assets/Screenshot%202024-01-09%20115004.png) + +## Applies to + +![Power Automate](https://img.shields.io/badge/Power%20Automate-Yes-green "Yes") + +## Compatibility +![Premium License](https://img.shields.io/badge/Premium%20License-Not%20Required-red.svg "Premium license not required") +![Experimental Features](https://img.shields.io/badge/Experimental%20Features-No-red.svg "Does not rely on experimental features") + +## Contributors + +* [Shaheer Ahmad](https://github.com/shaheerahmadch) + +## Version history + +Version|Date|Comments +-------|----|-------- +1.0|January 09, 2024|Initial release + +## Prerequisites + +* Microsoft Power Automate account +* Access to Microsoft Dataverse entities +* OneDrive for Business account + +## Solution Components + +The following solution components are used in this sample: + +* Dataverse (Common Data Service) Connection Reference +* Word Online Business Connection Reference +* OneDrive for Business Connection Reference +* Receipts Table + + +## Minimal Path to Awesome + +1. [Download](./solution/populate-word-table-template.zip) the solution `.zip` from the `solution` folder. +2. Within **https://make.powerapps.com**, import the `.zip` file via **Solutions** > **Import solution** > **Browse** and select the `.zip` file you just downloaded. +3. Follow the on-screen instructions to deploy the application. +4. Access the **Attachment Upload** Canvas App and start reporting incidents. + +## Using the Source Code + +You can also use the [Power Apps CLI](https://aka.ms/pac/docs) to pack the source code by following these steps: + +1. Clone the repository to a local drive. +2. Pack the source files back into `.zip` file: + ```bash + pac solution pack --folder pathtosourcefolder --zipfile pathtosolution --processCanvasApps + ``` + +## Features + +* Manual trigger for document generation +* Retrieving records from Microsoft Dataverse +* Dynamically populating a Word template +* Converting HTML to PDF +* Storing generated documents in OneDrive for Business + +## Help + +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. + +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=populate-word-table-template&authors=@shaheerahmadch&title=populate-word-table-template%20-%20). + +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=populate-word-table-template&authors=@shaheerahmadch&title=populate-word-table-template%20-%20). + +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=populate-word-table-template&authors=@shaheerahmadch&title=populate-word-table-template%20-%20). + +## 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.** + + diff --git a/samples/populate-word-table-template/assets/Screenshot 2024-01-09 115004.png b/samples/populate-word-table-template/assets/Screenshot 2024-01-09 115004.png new file mode 100644 index 00000000..f077d412 Binary files /dev/null and b/samples/populate-word-table-template/assets/Screenshot 2024-01-09 115004.png differ diff --git a/samples/populate-word-table-template/assets/Screenshot 2024-01-09 120315.png b/samples/populate-word-table-template/assets/Screenshot 2024-01-09 120315.png new file mode 100644 index 00000000..3c8ed32c Binary files /dev/null and b/samples/populate-word-table-template/assets/Screenshot 2024-01-09 120315.png differ diff --git a/samples/populate-word-table-template/solution/populate-word-table-template.zip b/samples/populate-word-table-template/solution/populate-word-table-template.zip new file mode 100644 index 00000000..c2f661b4 Binary files /dev/null and b/samples/populate-word-table-template/solution/populate-word-table-template.zip differ diff --git a/samples/populate-word-table-template/sourcecode/.gitignore b/samples/populate-word-table-template/sourcecode/.gitignore new file mode 100644 index 00000000..717973a5 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/.gitignore @@ -0,0 +1,8 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# msbuild output directories +/bin +/obj + +# MSBuild Binary and Structured Log +*.binlog diff --git a/samples/populate-word-table-template/sourcecode/PopulateWordTableTemplate.cdsproj b/samples/populate-word-table-template/sourcecode/PopulateWordTableTemplate.cdsproj new file mode 100644 index 00000000..ac2f0e4b --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/PopulateWordTableTemplate.cdsproj @@ -0,0 +1,54 @@ + + + + $(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\PowerApps + + + + + + + e149cdfa-6bfb-4ec7-9bec-6096bee09baf + v4.6.2 + + net462 + PackageReference + src + + + + + + + + + + + + + + + + + + + + + + + PreserveNewest + + + + + + + diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/Entity.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/Entity.xml new file mode 100644 index 00000000..d6489b26 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/Entity.xml @@ -0,0 +1,874 @@ + + + sa_Receipt + + + + + + + + + + + + + + lookup + createdby + createdby + none + ValidForAdvancedFind|ValidForForm|ValidForGrid + auto + 0 + 1 + 0 + 0 + 0 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 0 + 0 + 0 + single + + + + + + + + + + datetime + createdon + createdon + none + ValidForAdvancedFind|ValidForForm|ValidForGrid + inactive + 0 + 1 + 0 + 0 + 0 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 1 + 1 + 0 + datetime + 0 + 1 + + + + + + + + + lookup + createdonbehalfby + createdonbehalfby + none + ValidForAdvancedFind|ValidForForm|ValidForGrid + auto + 0 + 1 + 0 + 0 + 0 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 0 + 0 + 0 + single + + + + + + + + + + int + importsequencenumber + importsequencenumber + none + ValidForAdvancedFind + disabled + 0 + 1 + 1 + 0 + 1 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 0 + 0 + 0 + + -2147483648 + 2147483647 + + + + + + + + + lookup + modifiedby + modifiedby + none + ValidForAdvancedFind|ValidForForm|ValidForGrid + auto + 0 + 1 + 0 + 0 + 0 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 0 + 0 + 0 + single + + + + + + + + + + datetime + modifiedon + modifiedon + none + ValidForAdvancedFind|ValidForForm|ValidForGrid + inactive + 0 + 1 + 0 + 0 + 0 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 1 + 1 + 0 + datetime + 0 + 1 + + + + + + + + + lookup + modifiedonbehalfby + modifiedonbehalfby + none + ValidForAdvancedFind|ValidForForm|ValidForGrid + auto + 0 + 1 + 0 + 0 + 0 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 0 + 0 + 0 + single + + + + + + + + + + datetime + overriddencreatedon + overriddencreatedon + none + ValidForAdvancedFind|ValidForGrid + inactive + 0 + 1 + 1 + 0 + 1 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 0 + 0 + 0 + date + 0 + 1 + + + + + + + + + owner + ownerid + ownerid + systemrequired + ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm + auto + 1 + 1 + 1 + 0 + 1 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 1 + 0 + 0 + single + + 8 + 9 + + + + + + + + + + lookup + owningbusinessunit + owningbusinessunit + none + ValidForAdvancedFind|ValidForForm|ValidForGrid + auto + 0 + 1 + 0 + 0 + 0 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 1 + 0 + 0 + single + + + + + + + + + + lookup + owningteam + owningteam + none + auto + 0 + 1 + 0 + 0 + 0 + 1 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 0 + 0 + 0 + single + + + + + + + + + + lookup + owninguser + owninguser + none + auto + 0 + 1 + 0 + 0 + 0 + 1 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 0 + 0 + 0 + single + + + + + + + + + + nvarchar + sa_id + sa_id + none + ReadOnlyInUI|ValidForAdvancedFind|ValidForForm|ValidForGrid + auto + 1 + 1 + 1 + 1 + 1 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + RID-{SEQNUM:6} + 0 + 0 + 0 + 0 + text + 100 + 200 + + + + + + + + + primarykey + sa_receiptid + sa_receiptid + systemrequired + ValidForAdvancedFind|RequiredForGrid + auto + 0 + 1 + 1 + 0 + 0 + 0 + 1.0 + 1 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 1 + 1 + 0 + + + + + + + + + nvarchar + sa_subject + sa_subject + required + PrimaryName|ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForForm + auto + 1 + 1 + 1 + 1 + 1 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 1 + 0 + 1 + 0 + text + 100 + 200 + + + + + + + + + state + statecode + statecode + systemrequired + ValidForAdvancedFind|ValidForForm|ValidForGrid + auto + 1 + 1 + 0 + 0 + 1 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 1 + 0 + 0 + + state + 1.0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + status + statuscode + statuscode + none + ValidForAdvancedFind|ValidForForm|ValidForGrid + auto + 1 + 1 + 1 + 0 + 1 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 0 + 0 + 0 + + status + 1.0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + int + timezoneruleversionnumber + timezoneruleversionnumber + none + auto + 1 + 1 + 1 + 0 + 0 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 0 + 0 + 0 + + -1 + 2147483647 + + + + + + + + + int + utcconversiontimezonecode + utcconversiontimezonecode + none + auto + 1 + 1 + 1 + 0 + 0 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + 0 + + 0 + 0 + 0 + 0 + + -1 + 2147483647 + + + + + + + + + sa_receipts + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + UserOwned + 0 + 0 + 0 + 0 + + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + + 1 + 1 + 0 + 0 + 1.0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 0 + 0 + 1 + 0 + 0 + 0 + + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/card/{96232c7a-593d-48be-b358-9b47d6960e36}.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/card/{96232c7a-593d-48be-b358-9b47d6960e36}.xml new file mode 100644 index 00000000..fb0494a3 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/card/{96232c7a-593d-48be-b358-9b47d6960e36}.xml @@ -0,0 +1,112 @@ + + + + {96232c7a-593d-48be-b358-9b47d6960e36} + 1.0 + 1 + 1 +
+ + + + + + + +
+ + +
+
+
+ + +
+ + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+ 1 + 1 + + + + + + +
+
\ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/card/{96232c7a-593d-48be-b358-9b47d6960e36}_managed.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/card/{96232c7a-593d-48be-b358-9b47d6960e36}_managed.xml new file mode 100644 index 00000000..bd10de4e --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/card/{96232c7a-593d-48be-b358-9b47d6960e36}_managed.xml @@ -0,0 +1,112 @@ + + + + {96232c7a-593d-48be-b358-9b47d6960e36} + 1.0 + 1 + 1 +
+ + + + + + + +
+ + +
+
+
+ + +
+ + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+ 1 + 1 + + + + + + +
+
\ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/main/{bdca660a-fad3-4338-a43b-a6b9e2807062}.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/main/{bdca660a-fad3-4338-a43b-a6b9e2807062}.xml new file mode 100644 index 00000000..9e7a3368 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/main/{bdca660a-fad3-4338-a43b-a6b9e2807062}.xml @@ -0,0 +1,55 @@ + + + + {bdca660a-fad3-4338-a43b-a6b9e2807062} + 1.0 + 1 + 1 +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+ 1 + 1 + + + + + + +
+
\ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/main/{bdca660a-fad3-4338-a43b-a6b9e2807062}_managed.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/main/{bdca660a-fad3-4338-a43b-a6b9e2807062}_managed.xml new file mode 100644 index 00000000..cb893656 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/main/{bdca660a-fad3-4338-a43b-a6b9e2807062}_managed.xml @@ -0,0 +1,55 @@ + + + + {bdca660a-fad3-4338-a43b-a6b9e2807062} + 1.0 + 1 + 1 +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+ 1 + 1 + + + + + + +
+
\ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/quick/{d313e6e0-cb8b-4970-8a68-ca1911b6823a}.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/quick/{d313e6e0-cb8b-4970-8a68-ca1911b6823a}.xml new file mode 100644 index 00000000..f80efc8b --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/quick/{d313e6e0-cb8b-4970-8a68-ca1911b6823a}.xml @@ -0,0 +1,52 @@ + + + + {d313e6e0-cb8b-4970-8a68-ca1911b6823a} + 1.0 + 1 + 1 +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+ 1 + 1 + + + +
+
\ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/quick/{d313e6e0-cb8b-4970-8a68-ca1911b6823a}_managed.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/quick/{d313e6e0-cb8b-4970-8a68-ca1911b6823a}_managed.xml new file mode 100644 index 00000000..1cfb7c03 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/FormXml/quick/{d313e6e0-cb8b-4970-8a68-ca1911b6823a}_managed.xml @@ -0,0 +1,52 @@ + + + + {d313e6e0-cb8b-4970-8a68-ca1911b6823a} + 1.0 + 1 + 1 +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+ 1 + 1 + + + +
+
\ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/RibbonDiff.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/RibbonDiff.xml new file mode 100644 index 00000000..8547ea21 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/RibbonDiff.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{0f86cb1b-2396-46ea-8e57-fd52040b35bf}.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{0f86cb1b-2396-46ea-8e57-fd52040b35bf}.xml new file mode 100644 index 00000000..727ee766 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{0f86cb1b-2396-46ea-8e57-fd52040b35bf}.xml @@ -0,0 +1,34 @@ + + + + 1 + 0 + 0 + 0 + 1 + {0f86cb1b-2396-46ea-8e57-fd52040b35bf} + + + + + + + + + 1 + + + + + + + + + + + 1.0 + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{631a6c6e-5db0-4cc9-a50f-ad9dea858cbc}.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{631a6c6e-5db0-4cc9-a50f-ad9dea858cbc}.xml new file mode 100644 index 00000000..2f5de0ce --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{631a6c6e-5db0-4cc9-a50f-ad9dea858cbc}.xml @@ -0,0 +1,37 @@ + + + + 1 + 0 + 0 + 0 + 0 + {631a6c6e-5db0-4cc9-a50f-ad9dea858cbc} + + + + + + + + + 0 + + + + + + + + + + + + + + 1.0 + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{8f33bf75-a9ae-ee11-a568-6045bd050564}.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{8f33bf75-a9ae-ee11-a568-6045bd050564}.xml new file mode 100644 index 00000000..f7ac53df --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{8f33bf75-a9ae-ee11-a568-6045bd050564}.xml @@ -0,0 +1,30 @@ + + + + 1 + 1 + 0 + 0 + 1 + {8f33bf75-a9ae-ee11-a568-6045bd050564} + 8192 + + + + + + + + + + + + 1.0 + + + + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{ad180412-19bc-41a8-b390-0905dd6c7dcd}.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{ad180412-19bc-41a8-b390-0905dd6c7dcd}.xml new file mode 100644 index 00000000..f7223951 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{ad180412-19bc-41a8-b390-0905dd6c7dcd}.xml @@ -0,0 +1,37 @@ + + + + 1 + 0 + 0 + 0 + 1 + {ad180412-19bc-41a8-b390-0905dd6c7dcd} + + + + + + + + + 0 + + + + + + + + + + + + + + 1.0 + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{bc9078a3-f8f7-4731-9534-20d0556d2525}.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{bc9078a3-f8f7-4731-9534-20d0556d2525}.xml new file mode 100644 index 00000000..54e69012 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{bc9078a3-f8f7-4731-9534-20d0556d2525}.xml @@ -0,0 +1,37 @@ + + + + 1 + 0 + 0 + 0 + 1 + {bc9078a3-f8f7-4731-9534-20d0556d2525} + + + + + + + + + 2 + + + + + + + + + + + + + + 1.0 + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{e8d04936-5ffe-441b-ad31-bb31cfd2991f}.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{e8d04936-5ffe-441b-ad31-bb31cfd2991f}.xml new file mode 100644 index 00000000..8190f1f3 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{e8d04936-5ffe-441b-ad31-bb31cfd2991f}.xml @@ -0,0 +1,36 @@ + + + + 1 + 0 + 0 + 0 + 1 + {e8d04936-5ffe-441b-ad31-bb31cfd2991f} + + + + + + + + + 64 + + + + + + + + + + + + + 1.0 + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{f621c006-5dd5-4212-b6ec-d382d07cd80d}.xml b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{f621c006-5dd5-4212-b6ec-d382d07cd80d}.xml new file mode 100644 index 00000000..ce98dd33 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Entities/sa_Receipt/SavedQueries/{f621c006-5dd5-4212-b6ec-d382d07cd80d}.xml @@ -0,0 +1,40 @@ + + + + 1 + 0 + 1 + 0 + 1 + {f621c006-5dd5-4212-b6ec-d382d07cd80d} + + + + + + + + + 4 + + + + + + + + + + + + + + + + + 1.0 + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Other/Customizations.xml b/samples/populate-word-table-template/sourcecode/src/Other/Customizations.xml new file mode 100644 index 00000000..44ac0a9c --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Other/Customizations.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + Microsoft Dataverse + /providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps + 1 + 0 + 1 + + + OneDrive for Business + /providers/Microsoft.PowerApps/apis/shared_onedriveforbusiness + 1 + 0 + 1 + + + Word Online (Business) + /providers/Microsoft.PowerApps/apis/shared_wordonlinebusiness + 1 + 0 + 1 + + + + 1033 + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Other/Relationships.xml b/samples/populate-word-table-template/sourcecode/src/Other/Relationships.xml new file mode 100644 index 00000000..6d32628a --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Other/Relationships.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Other/Relationships/BusinessUnit.xml b/samples/populate-word-table-template/sourcecode/src/Other/Relationships/BusinessUnit.xml new file mode 100644 index 00000000..5360f0dc --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Other/Relationships/BusinessUnit.xml @@ -0,0 +1,23 @@ + + + + OneToMany + 1 + 1.0 + 0 + sa_Receipt + BusinessUnit + NoCascade + NoCascade + NoCascade + NoCascade + NoCascade + NoCascade + OwningBusinessUnit + + + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Other/Relationships/Owner.xml b/samples/populate-word-table-template/sourcecode/src/Other/Relationships/Owner.xml new file mode 100644 index 00000000..dc9dc72a --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Other/Relationships/Owner.xml @@ -0,0 +1,23 @@ + + + + OneToMany + 1 + 1.0 + 0 + sa_Receipt + Owner + NoCascade + NoCascade + NoCascade + NoCascade + NoCascade + NoCascade + OwnerId + + + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Other/Relationships/SystemUser.xml b/samples/populate-word-table-template/sourcecode/src/Other/Relationships/SystemUser.xml new file mode 100644 index 00000000..44dcd403 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Other/Relationships/SystemUser.xml @@ -0,0 +1,63 @@ + + + + OneToMany + 1 + 1.0 + 0 + sa_Receipt + SystemUser + NoCascade + NoCascade + NoCascade + NoCascade + NoCascade + NoCascade + CreatedBy + + + + + + + + OneToMany + 1 + 1.0 + 0 + sa_Receipt + SystemUser + NoCascade + NoCascade + NoCascade + NoCascade + NoCascade + NoCascade + ModifiedBy + + + + + + + + OneToMany + 1 + 1.0 + 0 + sa_Receipt + SystemUser + NoCascade + NoCascade + NoCascade + NoCascade + NoCascade + NoCascade + OwningUser + + + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Other/Relationships/Team.xml b/samples/populate-word-table-template/sourcecode/src/Other/Relationships/Team.xml new file mode 100644 index 00000000..be91f810 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Other/Relationships/Team.xml @@ -0,0 +1,23 @@ + + + + OneToMany + 1 + 1.0 + 0 + sa_Receipt + Team + NoCascade + NoCascade + NoCascade + NoCascade + NoCascade + NoCascade + OwningTeam + + + + + + + \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Other/Solution.xml b/samples/populate-word-table-template/sourcecode/src/Other/Solution.xml new file mode 100644 index 00000000..37a6d7f3 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Other/Solution.xml @@ -0,0 +1,88 @@ + + + + PopulateWordTableTemplate + + + + + 1.0.0.1 + 2 + + Shaheer + + + + + + + shaheer.ashraf@live.com + shaheer365.blogspot.com + sa + 12638 + +
+ 1 + 1 + Faisalabad + + Pakistan + + + + + + + + + + 38000 + + + 1 + punjab + +923041977660 + + + + + + +
+
+ 2 + 1 + + + + + + + + + + + + + + + + 1 + + + + + + + + +
+
+
+ + + + + +
+
\ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Workflows/PopulateWordTableTemplate-7907AC0B-AAAE-EE11-A569-000D3A3AB753.json b/samples/populate-word-table-template/sourcecode/src/Workflows/PopulateWordTableTemplate-7907AC0B-AAAE-EE11-A569-000D3A3AB753.json new file mode 100644 index 00000000..3c1f2821 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Workflows/PopulateWordTableTemplate-7907AC0B-AAAE-EE11-A569-000D3A3AB753.json @@ -0,0 +1,167 @@ +{ + "properties": { + "connectionReferences": { + "shared_commondataserviceforapps": { + "runtimeSource": "embedded", + "connection": { + "connectionReferenceLogicalName": "sa_sharedcommondataserviceforapps_babbf" + }, + "api": { + "name": "shared_commondataserviceforapps" + } + }, + "shared_wordonlinebusiness": { + "runtimeSource": "invoker", + "connection": { + "connectionReferenceLogicalName": "sa_sharedwordonlinebusiness_a260e" + }, + "api": { + "name": "shared_wordonlinebusiness" + } + }, + "shared_onedriveforbusiness": { + "runtimeSource": "invoker", + "connection": { + "connectionReferenceLogicalName": "sa_sharedonedriveforbusiness_2061c" + }, + "api": { + "name": "shared_onedriveforbusiness" + } + } + }, + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "$connections": { + "defaultValue": {}, + "type": "Object" + }, + "$authentication": { + "defaultValue": {}, + "type": "SecureObject" + } + }, + "triggers": { + "manual": { + "metadata": { + "operationMetadataId": "65a856b3-c6e5-4590-99f3-d34d4b7ce749" + }, + "type": "Request", + "kind": "Button", + "inputs": { + "schema": { + "type": "object", + "properties": {}, + "required": [] + } + } + } + }, + "actions": { + "List_rows": { + "runAfter": {}, + "metadata": { + "operationMetadataId": "539e2e64-5798-400d-8f1b-83d7df916868" + }, + "type": "OpenApiConnection", + "inputs": { + "host": { + "connectionName": "shared_commondataserviceforapps", + "operationId": "ListRecords", + "apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps" + }, + "parameters": { + "entityName": "sa_receipts" + }, + "authentication": { + "type": "Raw", + "value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']" + } + } + }, + "Select": { + "runAfter": { + "List_rows": [ + "Succeeded" + ] + }, + "metadata": { + "operationMetadataId": "b9d6a8ec-b521-4449-ae26-af1c73d302b6" + }, + "type": "Select", + "inputs": { + "from": "@outputs('List_rows')?['body/value']", + "select": { + "ID": "@item()?['sa_id']", + "Subject": "@item()?['sa_subject']" + } + } + }, + "Populate_a_Microsoft_Word_template": { + "runAfter": { + "Select": [ + "Succeeded" + ] + }, + "metadata": { + "016VH7ONEUHPWQVWZFONHYQSCZTPBFDKLE": "/Table Template.docx", + "operationMetadataId": "18f2b32d-f473-4a6a-8859-59e49dbb3a8a" + }, + "type": "OpenApiConnection", + "inputs": { + "host": { + "connectionName": "shared_wordonlinebusiness", + "operationId": "CreateFileItem", + "apiId": "/providers/Microsoft.PowerApps/apis/shared_wordonlinebusiness" + }, + "parameters": { + "source": "me", + "drive": "b!c7-tmu12tUuGYPT0zvM0eC2ZEUG1H2xDsKNN3Fbzvvhx0_ZIHZPtTaUpXL3oUv9B", + "file": "016VH7ONEUHPWQVWZFONHYQSCZTPBFDKLE", + "dynamicFileSchema/285869159": "@body('Select')" + }, + "authentication": { + "type": "Raw", + "value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']" + } + } + }, + "Create_file": { + "runAfter": { + "Populate_a_Microsoft_Word_template": [ + "Succeeded" + ] + }, + "metadata": { + "operationMetadataId": "7204b7b6-96e0-4179-b054-13ca08f39a5d" + }, + "type": "OpenApiConnection", + "inputs": { + "host": { + "connectionName": "shared_onedriveforbusiness", + "operationId": "CreateFile", + "apiId": "/providers/Microsoft.PowerApps/apis/shared_onedriveforbusiness" + }, + "parameters": { + "folderPath": "/", + "name": "temp.docx", + "body": "@body('Populate_a_Microsoft_Word_template')" + }, + "authentication": { + "type": "Raw", + "value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']" + } + }, + "runtimeConfiguration": { + "contentTransfer": { + "transferMode": "Chunked" + } + } + } + } + }, + "templateName": null + }, + "schemaVersion": "1.0.0.0" +} \ No newline at end of file diff --git a/samples/populate-word-table-template/sourcecode/src/Workflows/PopulateWordTableTemplate-7907AC0B-AAAE-EE11-A569-000D3A3AB753.json.data.xml b/samples/populate-word-table-template/sourcecode/src/Workflows/PopulateWordTableTemplate-7907AC0B-AAAE-EE11-A569-000D3A3AB753.json.data.xml new file mode 100644 index 00000000..3b64e869 --- /dev/null +++ b/samples/populate-word-table-template/sourcecode/src/Workflows/PopulateWordTableTemplate-7907AC0B-AAAE-EE11-A569-000D3A3AB753.json.data.xml @@ -0,0 +1,26 @@ + + + /Workflows/PopulateWordTableTemplate-7907AC0B-AAAE-EE11-A569-000D3A3AB753.json + 1 + 0 + 5 + 0 + 4 + 0 + 0 + 0 + 0 + 0 + 1 + 2 + 1 + 1 + 1.0.0.0 + 1 + 0 + 1 + none + + + + \ No newline at end of file