Skip to main content

Notifications

Power Platform Community / Forums / Bot Extensibility / How to deal with speci...
Bot Extensibility
Unanswered

How to deal with special characters in Bot Framework Composer?

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:
  • nikviz Profile Picture
    nikviz 242 on at
    Re: How to deal with special characters in Bot Framework Composer?

    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

  • LeongQJ Profile Picture
    LeongQJ 50 on at
    Re: How to deal with special characters in Bot Framework Composer?

    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.

  • Re: How to deal with special characters in Bot Framework Composer?

    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?

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 137,998

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,059

Leaderboard

Featured topics