-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from arceegomes/main
CoPilot Prompt Sample - Office Script to Compare Excel Files
- Loading branch information
Showing
7 changed files
with
107 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+37.2 KB
(120%)
samples/m365-azure-devops-pipeline-prompt/assets/prompt-output-build-pipeline.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+33 KB
(120%)
...les/m365-azure-devops-pipeline-prompt/assets/prompt-output-release-pipeline.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+226 KB
samples/m365-office-script-compare-excel-files-prompt/assets/prompt-output.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+67.7 KB
samples/m365-office-script-compare-excel-files-prompt/assets/prompt-query.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions
42
samples/m365-office-script-compare-excel-files-prompt/assets/sample.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[ | ||
{ | ||
"name": "m365-office-script-compare-excel-files-prompt", | ||
"source": "pnp", | ||
"title": "Office Script to Compare Excel Files", | ||
"shortDescription": "Prompt to generate an Office Script Prompt to compare two Excel files and generate a comparison report.", | ||
"url": "https://github.com/pnp/copilot-prompts/tree/main/samples/m365-office-script-compare-excel-files-prompt", | ||
"downloadUrl": "https://pnp.github.io/download-partial/?url=https://github.com/pnp/copilot-prompts/tree/main/samples/m365-office-script-compare-excel-files-prompt", | ||
"longDescription": [ | ||
"This prompt illustrates how to compare two excel files with large data and generate a comparison report using Office Scripts." | ||
], | ||
"creationDateTime": "2024-10-31", | ||
"updateDateTime": "2024-10-31", | ||
"products": [ | ||
"Microsoft 365 Copilot" | ||
], | ||
"metadata": [ | ||
], | ||
"thumbnails": [ | ||
{ | ||
"type": "image", | ||
"order": 100, | ||
"url": "https://github.com/pnp/copilot-prompts/raw/main/samples/m365-office-script-compare-excel-files-prompt/assets/prompt-query.jpg", | ||
"alt": "Office Script to Compare Excel Files" | ||
} | ||
], | ||
"authors": [ | ||
{ | ||
"gitHubAccount": "arceegomes", | ||
"pictureUrl": "https://avatars.githubusercontent.com/u/26863017?v=4", | ||
"name": "Arcee Gomes" | ||
} | ||
], | ||
"references": [ | ||
{ | ||
"name": "Microsoft Copilot", | ||
"description": "Microsoft Copilot", | ||
"url": "https://copilot.microsoft.com/" | ||
} | ||
] | ||
} | ||
] |
61 changes: 61 additions & 0 deletions
61
samples/m365-office-script-compare-excel-files-prompt/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# π» Office Script to Compare Excel Files π§βπ» | ||
|
||
![Prompt query](./assets/prompt-query.jpg) | ||
![Demo answer](./assets/prompt-output.jpg) | ||
|
||
## Summary | ||
|
||
This is a Office Script Prompt to compare two Excel files and generate a comparison report. The purpose is to illustrate the power of precise instructions to get the desired help in Excel File Comparison for large data. | ||
|
||
## Prompt π‘ | ||
|
||
Help me with the Office Script to compare the current Excel file uploaded with the previous Excel file in a SharePoint Document Library and generate a tabular report of the differences both the Excel.<br/> | ||
The report should contain Status "Added, Updated or Deleted" depending on the type of change.<br/> | ||
The office script should be able to process Excel file with more than 10,000 rows.<br/> | ||
The office script will be called by a Power Automate trigger based Flow on the SharePoint Library.<br/> | ||
|
||
### Description βΉοΈ | ||
|
||
Compare two Excel Files using Office Script and generate a comparison report using Copilot. | ||
|
||
## Contributors π¨βπ» | ||
|
||
[Arcee Gomes](https://github.com/arceegomes) | ||
|
||
## Version history | ||
|
||
Version|Date|Comments | ||
-------|----|-------- | ||
1.0|October 31, 2024|Initial release | ||
|
||
## Instructions π | ||
|
||
1. Make sure you have Copilot for Microsoft 365 in your tenant | ||
2. Open CoPilot App | ||
3. Copy and paste the about prompt and click Submit | ||
|
||
### Improvise Usage π | ||
|
||
You can add more information to the prompt if needed to create more accurate response | ||
|
||
## Prerequisites | ||
|
||
* [Copilot for Microsoft 365](https://developer.microsoft.com/microsoft-365/dev-program) | ||
|
||
## 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. | ||
|
||
You can try looking at [issues related to this sample](https://github.com/pnp/copilot-prompts/issues?q=label%3A%22sample%3A%20m365-office-script-compare-excel-files-prompt%22) to see if anybody else is having the same issues. | ||
|
||
If you encounter any issues using this sample, [create a new issue](https://github.com/pnp/copilot-prompts/issues/new). | ||
|
||
Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/copilot-prompts/issues/new). | ||
|
||
## 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.** | ||
|
||
![](https://m365-visitor-stats.azurewebsites.net/SamplesGallery/copilotprompts-m365-office-script-compare-excel-files-prompt) | ||
|
||
|