Skip to content

Commit

Permalink
Merge pull request #75 from arceegomes/main
Browse files Browse the repository at this point in the history
CoPilot Prompt Sample - Office Script to Compare Excel Files
  • Loading branch information
rabwill authored Nov 4, 2024
2 parents 1424e70 + 39b4feb commit cdbe034
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 6 deletions.
10 changes: 4 additions & 6 deletions samples/m365-asp-dot-net-core-mvc-prompt/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@ Version|Date|Comments

## Instructions πŸ“

1. Make sure you have Github copilot extension installed in VSCode and enable it
2. Create a .json file
3. Launch GitHub copilot chat "command"+ i or "ctrl" +i
4. Copy the above prompt and paste and select `Enter`
5. If the generated card looks good, select `Accept`
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 πŸš€

Expand the field description and ask copilot to also make it visibly appealing with formatting and emojis
You can add more information to the prompt if needed to create more accurate response

## Prerequisites

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 samples/m365-office-script-compare-excel-files-prompt/readme.md
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)


0 comments on commit cdbe034

Please sign in to comment.