cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
alpine
Level: Powered On

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 Team
Community Support Team

Re: RSS to Twitter

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.
alpine
Level: Powered On

Re: RSS to Twitter

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

alpine
Level: Powered On

Re: RSS to Twitter

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,007)