• DOCUMENTATION
  • WORKATO BLOG
  • PRODUCT BLOG
  • Return to Workato
  • Log in
  • ☰
  • Solutions Articles
  • Forums/Discussions
  • Submitted Tickets
New Topic
Discussions Recipe Building Formula Mode Questions
S

Saul Macht

started a topic over 2 years ago

Convert array of string elements to integer elements

Say I have an array of string elements ["1", "2","3"] that I wish to sum. However, I cannot just use the formula .sum because it would combine the string elements to return "123" instead of 6. 


How can I convert the array to integer elements for summation?

Amanda Wong

said over 2 years ago

Hi Saul, we do not have a formula to convert the string elements into integer elements. However, this can be done using a simple ruby code laid out in this recipe. The code takes care of the conversion into integers as well as the summation. 


Login to post a comment

Still can't find your solution?

Send us a ticket, we will try our best to assist you with your problem

Documentation
Developer's Library
Tutorials
eBooks
Product Hour
Product Blog
Workato Blog
Product updates
Customer Stories
© Workato 2020   Privacy   Terms   +1 (844) 469-6752
  • Documentation
  • Workato Blog
  • Product Blog
  • Solutions
  • Forums
  • Tickets
  • Log in
  • Return to Workato