Welcome to a different Okta Workflows Suggestions publish. Learn all earlier ideas.
On this publish:
- Learn how to get the day of the week from the Date & Time card
- Learn how to convert an object to a listing
- On-line meetup replay: Construct Your First No-Code Workflow Automation in 25 Minutes
Learn how to get the day of the week from the Date & Time card
You would possibly need to run a movement on a specific day of the week akin to Monday or Friday. This tip will present you ways to determine what’s the present day of the week.
First use Information & Time – Now card to get the present date and time. Then utilizing Information to Textual content card, set the format to dddd to get the day of the week consequence (Friday):
End result operating this movement:
When you set the format to ddd, the consequence might be Fri.
You too can set the format to d. On this case the consequence might be a quantity similar to a day within the week (5 = Friday):
Due to Bryan Barrows (Workflows Builder Advocate at Okta) and Arek Dreyer (Senior Product Engineer at kandji.io) for serving to with this tip.
Learn how to convert an object to a listing
Object – Map to Listing card takes an object and convert it to a listing utilizing a helper movement.
For instance, if in case you have this object:
{ "drink": "wine", "important course": "rooster", "appetizer ": "salad", "desert": "ice cream" }
You possibly can convert it to a listing the place every property from the thing turns into a key/worth pair:
[ { "key": "drink", "value": "wine" }, { "key": "main course", "value": "chicken" }, { "key": "appetizer", "value": "salad" }, { "key": "desert", "value": "ice cream" } ]
That is the primary movement:
And the is the helper movement:
End result operating the movement:
[ { "key": "drink", "value": "wine" }, { "key": "main course", "value": "chicken" }, { "key": "appetizer ", "value": "salad" }, { "key": "desert", "value": "ice cream" } ]
On-line meetup replay: Construct Your First No-Code Workflow Automation in 25 Minutes
On this video you’ll discover ways to construct your first no-code workflow automation with Okta Workflows in 25 minutes. You’ll discover ways to construct two flows:
- ⚡️ Person activated occasion ➡️ notify on Slack, ship e mail, and save person info to a desk
- ⚡️ Person deactivated occasion ➡️ name an third get together API endpoint
On the lookout for extra movies? Be taught from quick movies on our Okta Workflows Group YouTube playlist.