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
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.
Best regards,
Mabel Mao
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
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
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
41 | |
40 | |
37 | |
32 | |
31 |
User | Count |
---|---|
52 | |
40 | |
35 | |
33 | |
24 |