web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to deal with speci...
Copilot Studio
Unanswered

How to deal with special characters in Bot Framework Composer?

(0) ShareShare
ReportReport
Posted on by 50

How do I remove all special characters before sending it through a HTTP request in Bot Framework Composer? I can't find a way to 'sanitise' the text via adaptive expressions.

Categories:
I have the same question (0)
  • Jameslew_MSFT Profile Picture
    Microsoft Employee on at

    Can you clarify your request?  So you have a set of variables (in PVA?).  Maybe an example of what you're trying to send and what you need to change?

  • LeongQJ Profile Picture
    50 on at

    Basically, I would like to make sure that special characters such as double quotes, backslash etc. doesn't trip up the system. I was thinking of using RegEx but the adaptive expression in Bot Framework Composer only returns Boolean values. I would like to just remove them before sending them through a HTTP request.

     

    Also, users are able to send bullet points, emojis, tables etc through Microsoft Teams. I would like to prevent that.

  • nikviz Profile Picture
    242 on at

    For form level validation you can use regex something like this in adaptive card.

    I use this regex check for word count

    nikviz_0-1677859316389.png

     

    If you do not want it in adaptive card, you can use it in power automate (https://www.tachytelic.net/2021/04/power-automate-regex/). 
    When the user submits response in adaptive card, call a power agent flow which goes through this regex function, you retrieve the text and use the text to HTTPS

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
sannavajjala87 Profile Picture

sannavajjala87 160 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 143

#3
Haque Profile Picture

Haque 123

Last 30 days Overall leaderboard