Hi,
I wanted to post an adaptive card in a Teams channel as soon as I get a new response on my form.
I managed it to replace \n with \n\n to display the paragraphs correctly using this method: https://powerusers.microsoft.com/t5/Building-Flows/Filter-certain-characters-out-of-a-Forms-answer/...
But empty lines
like this one above won't work.
I tried to make a filter that replaces \n\n with \n\n-\n\n, to make a - instead of the completely empty line. But it doesn't work.
Has anyone got an idea how to fix this?
Thanks in Advance!
Solved! Go to Solution.
hi @tomjedig please follow this example to see how to delete line breaks I'm shure this could help you
Proud to be a Flownaut!
@tomjedig %0A means line break you add %0A as you what to add a line break then you can convert it with decodeUri
Proud to be a Flownaut!
hi @tomjedig you can replace a white space using %20 with encodeUriComponent expression. or just try replace(YOURDATA,' ', '-')
Proud to be a Flownaut!
hi @ChristianAbata,
I did it with the guide you sent me in the other post.
I think it's too hard to make separate filters for \n and \n\n.
I will probably just add some info in Forms about this. Anyway, thanks 🙂
Ugh god, I forgot to save when it worked with just a normal paragraph.
@ChristianAbata could you maybe look over it and tell me what I did wrong? It should just replace the \n with \n\n to make a new line in the adaptive card, but it doesn't.
The createArray is createArray('\n') and the replace is replace(variables('Sanitise'), item(), '\n\n')
I really don't know what I did wrong. The filtered text in the adaptive card part just says \ instead of \n\n 😞
@tomjedig could you paste here the output inside action verffaseen filtered please
Proud to be a Flownaut!
this should be line 1
this should be line 2
and this should be line 3
@ChristianAbata I re-built the flow now and tested it with
line one
line two
line three
empty line
as answer, this time it didn't do anything. I'm posting this screenshot because you can see the \n stuff here.
thnk you @tomjedig now please I need what is inside body in teams action please
Proud to be a Flownaut!
That's what I put in when I built the flow:
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "ExtraLarge",
"weight": "Bolder",
"text": "@{body('Antwortdetails_abrufen')?['r8b3504d066d94a46b226ed74032b1a2e']} - @{body('Antwortdetails_abrufen')?['r19084fc112b74c5b921179fefd75cbf3']}"
},
{
"type": "TextBlock",
"text": "Die Aufgabe ist möglichst bis zum @{body('Antwortdetails_abrufen')?['r94b1bade43664955bce9cfef5e14ba2c']} zu bearbeiten."
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "TextBlock",
"text": "Arbeitsauftrag",
"size": "Large",
"fontType": "Default",
"weight": "Bolder"
}
]
},
{
"type": "Column",
"id": "chevronDown1",
"spacing": "Small",
"verticalContentAlignment": "Center",
"items": [
{
"type": "Image",
"selectAction": {
"type": "Action.ToggleVisibility",
"title": "collapse",
"targetElements": [
"cardContent1",
"chevronUp1",
"chevronDown1"
]
},
"url": "https://adaptivecards.io/content/down.png",
"width": "20px",
"altText": "collapsed"
}
],
"width": "auto"
},
{
"type": "Column",
"id": "chevronUp1",
"isVisible": false,
"spacing": "Small",
"verticalContentAlignment": "Center",
"items": [
{
"type": "Image",
"selectAction": {
"type": "Action.ToggleVisibility",
"title": "expand",
"targetElements": [
"cardContent1",
"chevronUp1",
"chevronDown1"
]
},
"url": "https://adaptivecards.io/content/up.png",
"width": "20px",
"altText": "expanded"
}
],
"width": "auto"
}
]
},
{
"type": "Container",
"id": "cardContent1",
"isVisible": false,
"items": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"isSubtle": true,
"text": "@{outputs('Verfassen_2')}",
"wrap": true
}
]
}
]
},
{
"type": "Container",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.OpenUrl",
"title": "In Planner öffnen",
"url": "https://www.office.com/?auth=2"
},
{
"type": "Action.OpenUrl",
"title": "Zu den Dateien",
"url": "https://www.office.com/?auth=2"
}
]
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2",
"fallbackText": "This card requires Adaptive Cards v1.2 support to be rendered properly."
}
And this is what I got when I tested it:
{
"recipient": {
"to": "my email"
},
"messageBody": "{\n \"type\": \"AdaptiveCard\",\n \"body\": [\n {\n \"type\": \"TextBlock\",\n \"size\": \"ExtraLarge\",\n \"weight\": \"Bolder\",\n \"text\": \"legga schmegga eis - sgr\"\n },\n {\n \"type\": \"TextBlock\",\n \"text\": \"Die Aufgabe ist möglichst bis zum 2020-05-03 zu bearbeiten.\"\n },\n {\n \"type\": \"ColumnSet\",\n \"columns\": [\n {\n \"type\": \"Column\",\n \"width\": \"auto\",\n \"items\": [\n {\n \"type\": \"TextBlock\",\n \"text\": \"Arbeitsauftrag\",\n \"size\": \"Large\",\n \"fontType\": \"Default\",\n \"weight\": \"Bolder\"\n }\n ]\n },\n {\n \"type\": \"Column\",\n \"id\": \"chevronDown1\",\n \"spacing\": \"Small\",\n \"verticalContentAlignment\": \"Center\",\n \"items\": [\n {\n \"type\": \"Image\",\n \"selectAction\": {\n \"type\": \"Action.ToggleVisibility\",\n \"title\": \"collapse\",\n \"targetElements\": [\n \"cardContent1\",\n \"chevronUp1\",\n \"chevronDown1\"\n ]\n },\n \"url\": \"https://adaptivecards.io/content/down.png\",\n \"width\": \"20px\",\n \"altText\": \"collapsed\"\n }\n ],\n \"width\": \"auto\"\n },\n {\n \"type\": \"Column\",\n \"id\": \"chevronUp1\",\n \"isVisible\": false,\n \"spacing\": \"Small\",\n \"verticalContentAlignment\": \"Center\",\n \"items\": [\n {\n \"type\": \"Image\",\n \"selectAction\": {\n \"type\": \"Action.ToggleVisibility\",\n \"title\": \"expand\",\n \"targetElements\": [\n \"cardContent1\",\n \"chevronUp1\",\n \"chevronDown1\"\n ]\n },\n \"url\": \"https://adaptivecards.io/content/up.png\",\n \"width\": \"20px\",\n \"altText\": \"expanded\"\n }\n ],\n \"width\": \"auto\"\n }\n ]\n },\n {\n \"type\": \"Container\",\n \"id\": \"cardContent1\",\n \"isVisible\": false,\n \"items\": [\n {\n \"type\": \"Container\",\n \"items\": [\n {\n \"type\": \"TextBlock\",\n \"isSubtle\": true,\n \"text\": \"one\ntwo\nthree\n\",\n \"wrap\": true\n }\n ]\n }\n ]\n },\n {\n \"type\": \"Container\",\n \"items\": [\n {\n \"type\": \"ActionSet\",\n \"actions\": [\n {\n \"type\": \"Action.OpenUrl\",\n \"title\": \"In Planner öffnen\",\n \"url\": \"https://www.office.com/?auth=2\"\n },\n {\n \"type\": \"Action.OpenUrl\",\n \"title\": \"Zu den Dateien\",\n \"url\": \"https://www.office.com/?auth=2\"\n }\n ]\n }\n ]\n }\n ],\n \"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",\n \"version\": \"1.2\",\n \"fallbackText\": \"This card requires Adaptive Cards v1.2 support to be rendered properly.\"\n}"
}
hi @tomjedig please follow this example to see how to delete line breaks I'm shure this could help you
Proud to be a Flownaut!
Hi @ChristianAbata I want to add an extra line break, not delete it.
When I put the normal answer with one line break in, the adaptive card doesn't have the line break, it has just a space.
But if I put two line breaks in, the text gets a new line in the card.
So I want to replace every line break with two line breaks, how can I do that?
@tomjedig %0A means line break you add %0A as you what to add a line break then you can convert it with decodeUri
Proud to be a Flownaut!
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages