Ruby Code to Determine if the Current Day is a Weekday
I am trying to insert a step into a recipe to then drive an if/else statement. I'd like the recipe to only continue if the ruby code determines that the current day is a weekday. I have tried to insert ruby codes that I have found in other forums, but workato always kicks it out in error because it is not an accepted format. Is there any example ruby codes that I can utilize that will help me with this?
Ivy Deane
Ruby Code to Determine if the Current Day is a Weekday
I am trying to insert a step into a recipe to then drive an if/else statement. I'd like the recipe to only continue if the ruby code determines that the current day is a weekday. I have tried to insert ruby codes that I have found in other forums, but workato always kicks it out in error because it is not an accepted format. Is there any example ruby codes that I can utilize that will help me with this?