cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

RSS to Twitter

Hi all

 

I am trying to build a Flow that pulls from an RSS feed, then posts to a social media page.

 

I need the Flow to take the RSS 'Feed title', trim it at a particuar point - for example after the closed bracket ')' . Then replace the open bracket with another symbol - for example a hyphen '-'.

 

Then I want to post the result to social media - I know how to do this part.

 

Apologies if I'm using the incorrect terminology. Can anyone help me out with the expressions.

 

Thanks

 

3 REPLIES 3
Community Support
Community Support

Hi @alpine,

 

Please try to use the function Replace to replace the open bracket with a hyphen.

 

The code could be configured like:

replace('the old string', 'old', 'new')

 

Please check the following doc for more details and try it on your side.

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#r...

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks, @v-yamao-msft

 

I have had some success with the replace expression.

 

Now I am wondering if it is possible to run two replace expressions after eachother.

 

Here is an exmaple of an RSS post dynamic content that I'm trying to play with:

Animal (DOGS,USELESS TEXT,ID: 654321)

 

This is what I’m trying to get out of the above example:

Animal - DOGS

 

So, I started with this: 

replace(triggerBody()?['title’],’,USELESS TEXT,ID: ’,’‘)

 

Which left me with:  Animal (DOGS654321)

 

Then I would need to run:

replace(triggerBody()?['title’],’ (’,’ - ‘)

 

Which would leave me with:  Animal - DOGS654321)

 

Then I need to use some sort of truncate to remove the remaining 7 characters. These would be 6 random numbers followed by a closed bracket.

 

Thanks for your help. I am completely new to Flow and PowerApps. I have spent days trying to get this to work Smiley Very Happy

I have had some success with the replace expression.

 

Now I am wondering if it is possible to run two replace expressions after eachother.

 

Here is an exmaple of an RSS post dynamic content that I'm trying to play with:

Animal (DOGS,USELESS TEXT,ID: 654321)

 

This is what I’m trying to get out of the above example:

Animal - DOGS

 

So, I started with this: 

replace(triggerBody()?['title’],’,USELESS TEXT,ID: ’,’‘)

 

Which left me with:  Animal (DOGS654321)

 

Then I would need to run:

replace(triggerBody()?['title’],’ (’,’ - ‘)

 

Which would leave me with:  Animal - DOGS654321)

 

Then I need to use some sort of truncate to remove the remaining 7 characters. These would be 6 random numbers followed by a closed bracket.

 

Thanks for your help. I am completely new to Flow and PowerApps. I have spent days trying to get this to work Smiley Very Happy

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (8,483)