Skip to content

Commit a96b34e

Browse files
Merge pull request pnp#129 from Solanki-Manish/Sharing-PowerAutomateSamples
Power Automate sample to mention Teams or Channel in the message post
2 parents f489972 + 682ff9a commit a96b34e

File tree

8 files changed

+613
-0
lines changed

8 files changed

+613
-0
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# Mention Teams or Channel in the message post
2+
3+
## Summary
4+
5+
This sample mention team or channel in the message post. This flow can be used as a child flow to mention team or channel in message based on the values of input parameters.
6+
7+
![Flow overview](./assets/flow-overview.png)
8+
9+
10+
## Applies to
11+
12+
* [Power Automate](https://docs.microsoft.com/power-automate/)
13+
* [Microsoft Graph](https://learn.microsoft.com/en-us/graph/)
14+
* [Microsoft Teams](https://learn.microsoft.com/en-us/microsoftteams/)
15+
16+
## Compatibility
17+
18+
![Premium License](https://img.shields.io/badge/Premium%20License-Required-green.svg "Premium license not required")
19+
![On-Premises Connectors](https://img.shields.io/badge/On--Premises%20Connectors-No-green.svg "Does not use on-premise connectors")
20+
![Custom Connectors](https://img.shields.io/badge/Custom%20Connectors-Not%20Required-green.svg "Does not use custom connectors")
21+
22+
23+
## Contributors
24+
25+
* [Manish Solanki](https://github.com/Solanki-Manish)
26+
27+
28+
## Version history
29+
30+
Version|Date|Comments
31+
-------|----|--------
32+
1.0|Mar 2, 2025|Initial release
33+
34+
35+
## Features
36+
37+
This sample illustrates the following concepts:
38+
39+
* Mention team to channel in message post using standard connectors
40+
* Standard action 'Send a Microsoft Graph HTTP request'
41+
* Graph API call to to mention team or channel using standard teams action
42+
* Child flow with input parameters
43+
* Reusablility of child flow
44+
* Expression
45+
46+
47+
## Prerequisites
48+
49+
### Connection References
50+
The solution includes a connection references.
51+
* Microsoft Teams Connection
52+
53+
### Flow Input Parameters
54+
Following are the flow input variables.
55+
56+
Parameter|Type|Details
57+
-------|----|--------
58+
Mention To | Drop Down List | Option to choose mention (team or channel).
59+
Teams Name | String | Display name of the Microsoft Teams.
60+
Channel Name | String | Display name of the Microsoft Teams Channel.
61+
Message Text | String | Text message in the post.
62+
63+
64+
## Minimal Path to Awesome
65+
66+
### Using the solution zip
67+
68+
* [Download](./solution/mention-teams-channel-in-post.zip) the `.zip` from the `solution` folder
69+
* Within **Power Apps Studio**, [import](https://learn.microsoft.com/en-us/power-apps/maker/data-platform/import-update-export-solutions) the solution `.zip` file using **Solutions** > **Import Solution** and select the `.zip` file you just packed.
70+
71+
### Using the source code
72+
73+
You can also use the [Power Apps CLI](https://docs.microsoft.com/powerapps/developer/data-platform/powerapps-cli) to pack the source code by following these steps:
74+
75+
* Clone the repository to a local drive
76+
* Pack the source files back into a solution `.zip` file:
77+
78+
```bash
79+
pac solution pack --zipfile pathtodestinationfile --folder pathtosourcefolder --processCanvasApps
80+
```
81+
82+
Making sure to replace `pathtosourcefolder` to point to the path to this sample's `sourcecode` folder, and `pathtodestinationfile` to point to the path of this solution's `.zip` file (located under the `solution` folder)
83+
* Within **Power Apps Studio**, import the solution `.zip` file using **Solutions** > **Import Solution** and select the `.zip` file you just packed.
84+
85+
## Help
86+
87+
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.
88+
89+
If you encounter any issues while using this sample, you can [create a new issue](https://github.com/pnp/powerapps-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=bug-report.yml&sample=mention-teams-channel-in-post&authors=@Solanki-Manish&title=mention-teams-channel-in-post).
90+
91+
For questions regarding this sample, [create a new question](https://github.com/pnp/powerapps-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=question.yml&sample=mention-teams-channel-in-post&authors=@Solanki-Manish&title=mention-teams-channel-in-post).
92+
93+
Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/powerapps-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=suggestion.yml&sample=mention-teams-channel-in-post&authors=@Solanki-Manish&title=mention-teams-channel-in-post).
94+
95+
## Disclaimer
96+
97+
**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.**
98+
99+
<img src="https://m365-visitor-stats.azurewebsites.net/powerplatform-samples/samples/mention-teams-channel-in-post" aria-hidden="true" />
66.8 KB
Loading
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
[
2+
{
3+
"name": "pnp-powerplatform-samples-mention-teams-channel-in-post",
4+
"source": "pnp",
5+
"title": "Mention Teams or Channel in the message post",
6+
"shortDescription": "This sample mention teams or channel in the message post.",
7+
"url": "https://github.com/pnp/powerplatform-samples/tree/main/samples/mention-teams-channel-in-post",
8+
"downloadUrl": "https://pnp.github.io/download-partial/?url=https://github.com/pnp/powerplatform-samples/tree/main/samples/mention-teams-channel-in-post",
9+
"longDescription": [
10+
"This sample mention teams or channel in the message post based on the flow input parameters."
11+
],
12+
"creationDateTime": "2025-03-02",
13+
"updateDateTime": "2025-03-02",
14+
"products": [
15+
"Power Automate",
16+
"Power Platform",
17+
"Microsoft Teams"
18+
],
19+
"tags": [
20+
"message",
21+
"graph",
22+
"automation",
23+
"post",
24+
"reminder"
25+
],
26+
"categories": [
27+
"CLOUD-FLOW"
28+
],
29+
"metadata": [
30+
{
31+
"key": "POWERAPPS-EXPERIMENTAL",
32+
"value": "No"
33+
},
34+
{
35+
"key": "POWERAPPS-PREMIUM",
36+
"value": "No"
37+
},
38+
{
39+
"key": "POWERAPPS-ONPREM",
40+
"value": "No"
41+
},
42+
{
43+
"key": "POWERAPPS-CUSTOMCONNECTOR",
44+
"value": "No"
45+
}
46+
],
47+
"thumbnails": [
48+
{
49+
"type": "image",
50+
"order": 100,
51+
"url": "https://github.com/pnp/powerplatform-samples/raw/main/samples/mention-teams-channel-in-post/assets/flow-overview.png",
52+
"alt": "App preview"
53+
}
54+
],
55+
"authors": [
56+
{
57+
"gitHubAccount": "Solanki-Manish",
58+
"pictureUrl": "https://github.com/Solanki-Manish.png",
59+
"name": "Manish Solanki"
60+
}
61+
],
62+
"references": [
63+
{
64+
"name": "Microsoft Power Platform documentation",
65+
"description": "Discover how to make the most of Microsoft Power Platform products with online training courses, docs, and videos covering product capabilities and how-to guides.",
66+
"url": "https://learn.microsoft.com/power-platform/"
67+
}
68+
]
69+
}
70+
]
Binary file not shown.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ImportExportXml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" OrganizationVersion="9.2.25013.146" OrganizationSchemaType="Standard" CRMServerServiceabilityVersion="9.2.25024.00162">
3+
<Entities />
4+
<Roles />
5+
<Workflows />
6+
<FieldSecurityProfiles />
7+
<Templates />
8+
<EntityMaps />
9+
<EntityRelationships />
10+
<OrganizationSettings />
11+
<optionsets />
12+
<CustomControls />
13+
<EntityDataProviders />
14+
<connectionreferences>
15+
<connectionreference connectionreferencelogicalname="pnp_sharedteams_fea83">
16+
<connectionreferencedisplayname>Microsoft Teams TeamsMessageUtility-fea83</connectionreferencedisplayname>
17+
<connectorid>/providers/Microsoft.PowerApps/apis/shared_teams</connectorid>
18+
<iscustomizable>1</iscustomizable>
19+
<promptingbehavior>0</promptingbehavior>
20+
<statecode>0</statecode>
21+
<statuscode>1</statuscode>
22+
</connectionreference>
23+
</connectionreferences>
24+
<Languages>
25+
<Language>1033</Language>
26+
</Languages>
27+
</ImportExportXml>
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ImportExportXml version="9.2.25013.146" SolutionPackageVersion="9.2" languagecode="1033" generatedBy="CrmLive" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" OrganizationVersion="9.2.25013.146" OrganizationSchemaType="Standard" CRMServerServiceabilityVersion="9.2.25024.00162">
3+
<SolutionManifest>
4+
<UniqueName>TeamsMessagePostUtility</UniqueName>
5+
<LocalizedNames>
6+
<LocalizedName description="Teams Message Post Utility" languagecode="1033" />
7+
</LocalizedNames>
8+
<Descriptions />
9+
<Version>1.0.0.0</Version>
10+
<Managed>2</Managed>
11+
<Publisher>
12+
<UniqueName>PnP</UniqueName>
13+
<LocalizedNames>
14+
<LocalizedName description="PnP" languagecode="1033" />
15+
</LocalizedNames>
16+
<Descriptions />
17+
<EMailAddress xsi:nil="true"></EMailAddress>
18+
<SupportingWebsiteUrl xsi:nil="true"></SupportingWebsiteUrl>
19+
<CustomizationPrefix>pnp</CustomizationPrefix>
20+
<CustomizationOptionValuePrefix>89378</CustomizationOptionValuePrefix>
21+
<Addresses>
22+
<Address>
23+
<AddressNumber>1</AddressNumber>
24+
<AddressTypeCode>1</AddressTypeCode>
25+
<City xsi:nil="true"></City>
26+
<County xsi:nil="true"></County>
27+
<Country xsi:nil="true"></Country>
28+
<Fax xsi:nil="true"></Fax>
29+
<FreightTermsCode xsi:nil="true"></FreightTermsCode>
30+
<ImportSequenceNumber xsi:nil="true"></ImportSequenceNumber>
31+
<Latitude xsi:nil="true"></Latitude>
32+
<Line1 xsi:nil="true"></Line1>
33+
<Line2 xsi:nil="true"></Line2>
34+
<Line3 xsi:nil="true"></Line3>
35+
<Longitude xsi:nil="true"></Longitude>
36+
<Name xsi:nil="true"></Name>
37+
<PostalCode xsi:nil="true"></PostalCode>
38+
<PostOfficeBox xsi:nil="true"></PostOfficeBox>
39+
<PrimaryContactName xsi:nil="true"></PrimaryContactName>
40+
<ShippingMethodCode>1</ShippingMethodCode>
41+
<StateOrProvince xsi:nil="true"></StateOrProvince>
42+
<Telephone1 xsi:nil="true"></Telephone1>
43+
<Telephone2 xsi:nil="true"></Telephone2>
44+
<Telephone3 xsi:nil="true"></Telephone3>
45+
<TimeZoneRuleVersionNumber xsi:nil="true"></TimeZoneRuleVersionNumber>
46+
<UPSZone xsi:nil="true"></UPSZone>
47+
<UTCOffset xsi:nil="true"></UTCOffset>
48+
<UTCConversionTimeZoneCode xsi:nil="true"></UTCConversionTimeZoneCode>
49+
</Address>
50+
<Address>
51+
<AddressNumber>2</AddressNumber>
52+
<AddressTypeCode>1</AddressTypeCode>
53+
<City xsi:nil="true"></City>
54+
<County xsi:nil="true"></County>
55+
<Country xsi:nil="true"></Country>
56+
<Fax xsi:nil="true"></Fax>
57+
<FreightTermsCode xsi:nil="true"></FreightTermsCode>
58+
<ImportSequenceNumber xsi:nil="true"></ImportSequenceNumber>
59+
<Latitude xsi:nil="true"></Latitude>
60+
<Line1 xsi:nil="true"></Line1>
61+
<Line2 xsi:nil="true"></Line2>
62+
<Line3 xsi:nil="true"></Line3>
63+
<Longitude xsi:nil="true"></Longitude>
64+
<Name xsi:nil="true"></Name>
65+
<PostalCode xsi:nil="true"></PostalCode>
66+
<PostOfficeBox xsi:nil="true"></PostOfficeBox>
67+
<PrimaryContactName xsi:nil="true"></PrimaryContactName>
68+
<ShippingMethodCode>1</ShippingMethodCode>
69+
<StateOrProvince xsi:nil="true"></StateOrProvince>
70+
<Telephone1 xsi:nil="true"></Telephone1>
71+
<Telephone2 xsi:nil="true"></Telephone2>
72+
<Telephone3 xsi:nil="true"></Telephone3>
73+
<TimeZoneRuleVersionNumber xsi:nil="true"></TimeZoneRuleVersionNumber>
74+
<UPSZone xsi:nil="true"></UPSZone>
75+
<UTCOffset xsi:nil="true"></UTCOffset>
76+
<UTCConversionTimeZoneCode xsi:nil="true"></UTCConversionTimeZoneCode>
77+
</Address>
78+
</Addresses>
79+
</Publisher>
80+
<RootComponents>
81+
<RootComponent type="29" id="{7933792d-3cf7-ef11-bae2-0022482a54fe}" behavior="0" />
82+
</RootComponents>
83+
<MissingDependencies />
84+
</SolutionManifest>
85+
</ImportExportXml>

0 commit comments

Comments
 (0)