I'm trying to populate a Google Sheet with blog post details from an RSS feed. The post URL contains the post content category tag that I would like to extract into a cell on the sheet of Post Category. How do I extract that piece of text from the URL and populate it into the cell?
I would like to get "post-category" and populated into my worksheet.
Please consider using the workflow definition language substring returns a subset of characters from a string.
Please check this documentation for more details about this function:
A simple test on my side for your reference.
I add the function in a Compose action, and it is configured as:
Then when the flow is triggered, the Outputs of this action would be “post-category”.
Please try it on your side.
This helps and gets me 85% there. Now the issue that I have is that because it's an RSS feed, the categories in the URL do not all have the same character length. How do I account for making sure the workflow only captures what is in-between the .com/ and before the first / after?
Please try to use the two functions indexof and lastindexof to see if it will work for you.
But seems that there is no direct function can be used to get the in-between value within a string dynamically.
You may also consider to create an idea at Flow ideas forum about this function, I will help collect and report it on my side.
Three Super User rank tiers have been launched!
Features releasing from October 2020 through March 2021
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!