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

Calculate Sum of a Node from XML Data #59

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
30 changes: 30 additions & 0 deletions prompts/ai-builder/convert-csv-json/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Convert CSV to JSON

## Description

This prompt helps in converting CSV data to JSON format.

## Prompt
Convert CSV data [CSVData] to JSON object without any text information.


### Supported Language(s)

[English](./en-us/prompt.md)

## Authors

Solution|Author(s)
--------|---------
Convert CSV to JSON | [Manish Solanki](https://github.com/Solanki-Manish)

## Minimal Path to Awesome

* Copy the prompt
* Paste prompt into the AIBuilder tool

## 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.**

<img src="https://m365-visitor-stats.azurewebsites.net/powerplatform-prompts/samples/ai-builder/convert-csv-json" aria-hidden="true" />
51 changes: 51 additions & 0 deletions prompts/ai-builder/convert-csv-json/assets/sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/pnp/samples/v1.0/metadata-schema.json",
"name": "pnp-powerplatform-prompts-convert-csv-json",
"version": "1.0.0.0",
"source": "pnp",
"creationDateTime": "2024-08-14T00:00:00.000Z",
"updateDateTime": "2024-08-14T00:00:00.000Z",
"title": "Convert CSV to JSON",
"shortDescription": "This prompt helps in converting CSV data to JSON format.",
"longDescription": [
""
],
"url": "https://github.com/pnp/powerplatform-prompts/tree/main/prompts/ai-builder/convert-csv-json/",
"products": [
"AI Builder",
"AIBuilder",
"Power Platform",
"powerplatform-prompts",
"ai-builder-prompts"
],
"tags": [
"CSV",
"JSON"
],
"categories": [
"AI Builder"
],
"metadata": [
{
"key": "Prompt",
"value": "Convert CSV data [CSVData] to JSON object without any text information."
}
],
"thumbnails": [
{
"type": "image",
"order": 100,
"url": "https://raw.githubusercontent.com/pnp/powerplatform-prompts/main/templates/previewprompts.png",
"alt": "Preview GIF"
}
],
"authors": [
{
"gitHubAccount": "Solanki-Manish",
"name": "Manish Solanki",
"pictureUrl": "https://github.com/Solanki-Manish.png"
}
]
}
]
1 change: 1 addition & 0 deletions prompts/ai-builder/convert-csv-json/en-us/prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Convert CSV data [CSVData] to JSON object without any text information.
30 changes: 30 additions & 0 deletions prompts/ai-builder/file-extension-from-mime-type/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Retrieve file extension from MIME type

## Description

This prompt helps in retrieving file extenstion from its MIME type.

## Prompt
Retrieve file extension from [MIMEtype].


### Supported Language(s)

[English](./en-us/prompt.md)

## Authors

Solution|Author(s)
--------|---------
Retrieve file extension from MIME type | [Manish Solanki](https://github.com/Solanki-Manish)

## Minimal Path to Awesome

* Copy the prompt
* Paste prompt into the AIBuilder tool

## 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.**

<img src="https://m365-visitor-stats.azurewebsites.net/powerplatform-prompts/samples/ai-builder/file-extension-from-mime-type" aria-hidden="true" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/pnp/samples/v1.0/metadata-schema.json",
"name": "pnp-powerplatform-prompts-file-extension-from-mime-type",
"version": "1.0.0.0",
"source": "pnp",
"creationDateTime": "2024-08-24T00:00:00.000Z",
"updateDateTime": "2024-08-24T00:00:00.000Z",
"title": "Retrieve file extension from MIME type",
"shortDescription": "This prompt helps in retrieving file extenstion from its MIME type.",
"longDescription": [
""
],
"url": "https://github.com/pnp/powerplatform-prompts/tree/main/prompts/ai-builder/file-extension-from-mime-type/",
"products": [
"AI Builder",
"AIBuilder",
"Power Platform",
"powerplatform-prompts",
"ai-builder-prompts"
],
"tags": [
"File Extension",
"MIME type"
],
"categories": [
"AI Builder"
],
"metadata": [
{
"key": "Prompt",
"value": "Retrieve file extension from [MIMEtype]."
}
],
"thumbnails": [
{
"type": "image",
"order": 100,
"url": "https://raw.githubusercontent.com/pnp/powerplatform-prompts/main/templates/previewprompts.png",
"alt": "Preview GIF"
}
],
"authors": [
{
"gitHubAccount": "Solanki-Manish",
"name": "Manish Solanki",
"pictureUrl": "https://github.com/Solanki-Manish.png"
}
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Retrieve file extension from [MIMEtype].
30 changes: 30 additions & 0 deletions prompts/ai-builder/sum-node-xml/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Calculate Sum of a Node from XML Data

## Description

This prompt returns the sum of a given node from the xml data.

## Prompt
Calculate sum of all [nodename] from [xmldata].


### Supported Language(s)

[English](./en-us/prompt.md)

## Authors

Solution|Author(s)
--------|---------
Calculate Sum of a Node from XML Data | [Manish Solanki](https://github.com/Solanki-Manish)

## Minimal Path to Awesome

* Copy the prompt
* Paste prompt into the AIBuilder tool

## 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.**

<img src="https://m365-visitor-stats.azurewebsites.net/powerplatform-prompts/samples/ai-builder/sum-node-xml" aria-hidden="true" />
51 changes: 51 additions & 0 deletions prompts/ai-builder/sum-node-xml/assets/sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/pnp/samples/v1.0/metadata-schema.json",
"name": "pnp-powerplatform-prompts-sum-node-xml",
"version": "1.0.0.0",
"source": "pnp",
"creationDateTime": "2024-08-24T00:00:00.000Z",
"updateDateTime": "2024-08-24T00:00:00.000Z",
"title": "Calculate Sum of a Node from XML Data",
"shortDescription": "This prompt returns the sum of a given node from the xml data.",
"longDescription": [
""
],
"url": "https://github.com/pnp/powerplatform-prompts/tree/main/prompts/ai-builder/sum-node-xml/",
"products": [
"AI Builder",
"AIBuilder",
"Power Platform",
"powerplatform-prompts",
"ai-builder-prompts"
],
"tags": [
"XML Node",
"XML"
],
"categories": [
"AI Builder"
],
"metadata": [
{
"key": "Prompt",
"value": "Calculate sum of all [nodename] from [xmldata]."
}
],
"thumbnails": [
{
"type": "image",
"order": 100,
"url": "https://raw.githubusercontent.com/pnp/powerplatform-prompts/main/templates/previewprompts.png",
"alt": "Preview GIF"
}
],
"authors": [
{
"gitHubAccount": "Solanki-Manish",
"name": "Manish Solanki",
"pictureUrl": "https://github.com/Solanki-Manish.png"
}
]
}
]
1 change: 1 addition & 0 deletions prompts/ai-builder/sum-node-xml/en-us/prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Calculate sum of all [nodename] from [xmldata].
Loading