Skip to main content

Workflow Error when returning an arcade date object

Comments

3 comments

  • Jostein Svegården

    What is returned from your Run Arcade Script is a date object. You cannot just print that object out directly like you try to in your workflow. But if you try to print =$ConceptError1.result.toString(), you get the full date string printed out. In the same way, you could call =$ConceptError1.result.getDate() to get today's day or =$ConceptError1.result.getFullYear() to get today's year. A tip is that you can use the Format Date activity to get a string representation of your date object in the way that you want.

     

    I'm not sure why your workflow acted differently in Sandbox. I haven't tried it.

    0
  • Permanently deleted user

    Hi Jostein, I apologize I didn't explain this well enough. The printing has nothing to do with the error that was just a way for visual testing. You can completely pull the logging/alerts out and get the same result.

     

    The workflows that this is apart of were all working normally before updating the WF/Web5 versions to the most current. That is when this error began.

     

    Thanks,

    Shawn

    0
  • Permanently deleted user

    Just a follow up I solved the problem with arcade expressions by just moving to a regular JS expression using the "evaluate expression" tool. This works as expected using normal JS, where as using arcade to return a date is causing odd behavior in the code.

    0

Please sign in to leave a comment.