cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tynanmar
New Member

Replace/remove quotes in tweets

Hi all,

 

I'm trying to remove/replace quotes in tweets while using the twitter flow..

The flow works great but I get problems further down my production line unless I take out any quotes.

 

For example..

 

Tweet text = What a "GREAT" day   ( I would like to turn this into What a Great day by removing the quotes)

 

I'm trying this... 

 

replace(triggerBody()['TweetText'],'"', '')
 
It does'nt give me an error but doesn't do anything with the quotes.. 
 
Any ideas?

                 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yuazh-msft
Community Support
Community Support

Hi @Tynanmar,

 

You could modify the expression in your flow as below to acheive your needs:

replace(replace(triggerBody()['TweetText'],' "',' '),'" ',' ')

 

I have made a test on my side to create a flow as below:

Capture.PNG

 

The expression in the Compose 2 as below:

replace(replace(outputs('Compose'),' "',' '),'" ',' ')

The flow would run successfully as below:

Capture.PNG

 

 

 

Best regards,

Alice

 

View solution in original post

3 REPLIES 3
sergeluca
MVP

do you have the same issue when your text is stored (with the quotes) in an compose action ?

Because in my case that works well

quotes.jpg

v-yuazh-msft
Community Support
Community Support

Hi @Tynanmar,

 

You could modify the expression in your flow as below to acheive your needs:

replace(replace(triggerBody()['TweetText'],' "',' '),'" ',' ')

 

I have made a test on my side to create a flow as below:

Capture.PNG

 

The expression in the Compose 2 as below:

replace(replace(outputs('Compose'),' "',' '),'" ',' ')

The flow would run successfully as below:

Capture.PNG

 

 

 

Best regards,

Alice

 

GabrielStJohn
Community Champion
Community Champion

Hello, @Tynanmar!

 

Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-yuazh-msft‘s or @sergeluca's recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!


Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager



Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (4,081)