12-11-2019 00:33 AM
In the 11th day of the 25 days of flows, let's have a bit of fun. Sometimes building old tools, or in this case toys, can teach us new tricks! Today, we are going to replicate the old Magic 8-Ball Predictions experience in Flow. Instead of an 8-ball we'll use a teams channel to post and get a response to our questions.
Takeaways:
-Creating an array
-Targeting parts of an array using the index number - also see this video: https://www.youtube.com/watch?v=PRKcQ0Q4BJE)
Be careful! The index number is counted from 0, so in the three elements below, index 1 is the second one, and not the first one.
-One
-Two (index 1 )
-Three
Learn more about the rand() function:
https://docs.microsoft.com/azure/logic-apps/workflow-definition-language-functions-reference#rand
Learn more about API calls or requests:
https://docs.microsoft.com/power-platform/admin/api-request-limits-allocations
The Power Apps full 25 day app will be posted in the Power Apps community on 12/26.
Happy holidays!
Audrie
watch?v=7tX4O2B_oiY
Text File contents (sorry couldn't upload here)
createArray('It is certain.', 'It is decidely so.', 'Without a doubt.', 'Yes definitely.', 'You may rely on it.', 'As I see it, yes.', 'Most likely.', 'Outlook good.', 'Yes.', 'Signs point to yes.','Reply hazy, try again.','Ask again later.','Better not tell you now.','Cannot predict now.','Concentrate and ask again.','Don''t count on it.', 'My reply is no.', 'My sources say no.','Outlook not so good.','Very doubtful.')
Trigger Condition:
@startsWith(triggerBody()?['body']?['content'], 'WIZ:')
Intermediate challenge: Can you make the 8-ball component for a Power Apps app, so that we get more of the original experience? Let me know on Twitter if you succeed @ArtsyPowerApper !