Hello Power Automate Community!
Headline: my flow is not finding a user-provided URL in the link node of an RSS feed, as it should. How can I fix?
I have an RSS feed with many nodes, including //item/description/ and //item/link/.
My goal is to have a user provide a URL (via a Virtual Agents bot), then have a Flow search for that URL in the //item/link/ nodes of the RSS feeds. When the Flow finds the //item/link/, it should return the related //item/description/.
The List all RSS feed items action is not pulling the link or description nodes, but no sweat — I can pull them using an HTML action.
My current flow (screenshots below):
1. Get value 'Story_URL' from Virtual Agents
2. Compose action with the input
createArray (trigger())
3. HTTP action to get the RSS feed
4. Compose action with the input
createArray(xpath(xml(body('HTTP')), '//item/link/text()|//item/description/text()'))
5. Filter Array action: Output of Step 4 contains the Output of Step 2.
6. Compose action for the body of step 5
7. Return the value to Virtual Agents
Tests are succeeding — as you can see in the screenshots, I'm able to get the array from step 4 with only the link and description nodes.
However, the Filter Array action isn't finding the Output of Step 2 in the array with the link and description nodes.
I tried running the flow without Step 2, and making Step Filter Array action: Output of Step 4 contains Story_URL. No luck. Also tried removing 'text' from the nodes xpath searches for in Step 4, also no luck.
Any help would be GREATLY appreciated!
Resolved! The lesson: always look at your outputs.
I tested List all RSS feed items again, checked the outputs and found the data I was looking for from the feed, just under variable names that were different from those in the feed itself (the List all RSS feed items action applying default names instead of pulling them from the feed.)
Once I identified the variable name, it was just a matter of comparing it to the variable provided by the user in a Filter Array.
Working Flow below!
WarrenBelz
146,618
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,957
Most Valuable Professional