Hi,
You could use an array aggregator after fetching items via the RSS connector…it would compile all the fetched items into a single array.
After aggregating, you could use a set variable action to generate a random number where the maximum value is the length of this array.
Then you could utilize the generated random number to select one specific item from your array for posting.
Cheers,
Harsh
Thank you, I really appreciate it. I have attempted this, and I am failing somewhere.
If you have the ability to create that syntax, and upload a JSON file, I would really apprecate it.
Hey thanks for that. I am a novice here, so Im not sure about the map() on 59 Array.
Perhaps this JSON for my blueprint will help? blueprint social media distribution.json (72.0 KB)
You can see the URLs extracted into their own array.
Next, you see them shuffled up.
Next, you see “Random” URL which is them shuffled again and the first one selected.
You need to map only the array into the map() function. Right now you’re mapping just a single value and Make is complaining that you haven’t specified an array.
Hi @Ryan_Thompson1 You’re missing the closing bracket. Delete 59. Array[ and select the array again from the mapping data or copy paste this, for the random URL:
Make has random function. Forget shuffle, just use that. Assuming you have an array, multiply random by the length (that will get you the right range) round it (that will get you actual number) and add 1 (because random starts from 0 but arrays start from 1)
I added a screenshot and also gave you the json for the scenario.
When you use the map() function, you must specify which key you want to extract from the complex array. You are specifying the array, but missing the key. Please check my example vs. yours.
In the map() function, after your specify the array, you need to follow with a semi-colon, followed by the key name, which is rssFields.media:content.props.url or rssFields.media:content.value
“I’m sorry, but it seems you’ve mentioned a URL without providing the actual link or any details about its content. I can’t access external URLs for information due to my design limitations. If you can share some key points or summarize what the article is discussing, I’d be more than happy to craft a detailed Facebook post based on that!”