• DOCUMENTATION
  • WORKATO BLOG
  • PRODUCT BLOG
  • Return to Workato
  • Log in
  • ☰
  • Community/Discussions
Solution home Troubleshooting Troubleshooting Basics

Troubleshooting: Conditional/Repeat Action not working properly

Modified on: Thu, Nov 10, 2016 at 2:18 AM

There may be some times where you set up a conditional/repeat action, but it does not work as how they are expected to. This can be caused by a couple of incorrect practices:


1) Steps not indented

In order for a set of steps that are meant to be used under a repeat loop or a condition, you will need to make sure that these steps are properly nested. For example, lets use a scenario where you want to search a Google Sheet based on a query, and send an email to each record in your sheet that met the search requirement 


  

VClEjLKoAyqb4_IZYMlyq8Oj0_qOu-hMQQ.png 
eAPKPduT_Kb1y0D1bxDSo2LSVpIyoEWqMw.png
a) Correctly indented b) Incorrectly indented


As we can see, there is a difference between a and b. In 1, the steps are properly set up, where an email will be sent to all records that are found in a search. in b) however, without the indent, subsequent steps will not be part of the for each loop, and it will only send an email to the first record that is found in the search, and not one to each individual record. 


2) Wrong output from "for each" loop used

When you use a conditional action, you need to use the right pill output. If you do not use the pill from the foreach step output, the data that will be used in that field will always be the same piece of data, instead of sending to each piece of data in the list. For example, the search gives you email 1 and email 2. If you use the pill from the foreach output, you will send an email to both email 1 and email 2. If the wrong pill is used, you will send the email to email 1 twice, as it will only use the first value of the search (ie. email 1) To understand repeat actions better, you can check out this link here

RpJ0XIwAomDKkSX03tVCfMk4pV1GyEnU2A.png


ZrKhV4u6xbZGRtrNMbzpHwMIv0zk76a-9g.png


Correctly used, from foreach output Incorrectly used pill from list output

 


3) Conditional action not set properly

Sometimes, when a conditional action is set up, the wrong condition was chosen. For example, when the field is a Boolean field (ie. checkbox, true/false), you may use [Pill] equals True instead of [Pill] is true. For a full list of conditions and when to use them, check out this link 

here

ybeOdVES-ymGkvDHakA_xCGUUUu2G7zNxw.png


_yRZF8m7YfmMnqsKZrmKiUPg0_UGtnAW-g.png


Correctly set up Incorrectly set up

 




Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

Related Articles

    Still can't find your solution?

    Visit our forums to search for answers, or post your own questions.

    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
    Article views count