cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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.
Highlighted

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

Highlighted

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (7,936)