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

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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (2,059)