A reusable Power Platform snippet
MSN Weather - Current Weather (Action with Adaptive Card)
This is a snippet that demonstrates how to use the MSN Weather - Get current weather action in an action.

- Last updated
- Feb 18, 2024
- Category
- Community snippet
From idea to implementation
Make it your own.
Check this snippet's prerequisites, permissions, and licensing before using it. The documentation below comes directly from the snippet README.
This is a snippet that demonstrates how to use the MSN Weather - Get current weather action in an action. It uses an adaptive card as an output.

Authors
| Snippet | Author(s) |
|---|---|
| MSN Weather - Current Weather (Action with Adaptive Card) | Daniel Laskewitz (@laskewitz) |
Minimal path to awesome
Open a copilot in Copilot Studio
Select Actions
Select + Add an action
Search for Get Current Weather and select the Search button
Select the Get Current Weather action from the MSN Weather connector
Select Next
Select Finish
Select the MSN Weather - Get Current Weather action in the list (select the name)
Select the ... in the upper right corner and select Open code editor
Make sure to copy the name of the connection reference

Paste the contents of the YAML-file in the code editor
Replace { REPLACE-WITH-CONNECTION-REFERENCE-NAME } with the connection reference name you copied two steps earlier
Save the action
Select Generative AI
Scroll down to Dynamic Chaining with generative actions (preview) and enable it by flipping the toggle on
Test out the action by using the Test copilot section and send
What's the current weather in AmsterdamWhen you get the Amsterdam weather, you're done!

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.