Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoPilot Prompt Sample - Office Script to Compare Excel Files #75

Merged
merged 4 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)


Loading