โ12-20-2022 07:03 AM - edited โ12-20-2022 07:04 AM
Hey, Pros!
When working with conditions in our recipe, we may need to work with different data types such as date, string, array, number, etc. However, depending on the condition that you have chosen, the accepted data type defers. This may pose a problem if the condition (e.g. contains, equals to, etc.) you need in your recipe does not accept your required data type.
Letโs say you only want to process events with a start date in the year 2022. This would mean:
Hereโs the problem โ the trigger data is a date
data type while the chosen condition contains
only accepts array and string data types. However, I still want to check the date as a condition before moving forward with this automation. How can I troubleshoot this issue then?
Conditions are additional rules that you may add to control the flow of your recipe. This allows you to create more precise automations based on your business needs.
Letโs say you want to create a recipe that automatically escalates high priority
support cases to the engineering team by connecting Salesforce to Jira โ in this case, you may add a condition that limits only case types of Priority
= High
to be processed in your recipe.
In your recipe, you may include conditions in both triggers โ trigger conditions โ as well as actions โ conditional actions.
Below is a list of available conditions and the data types accepted.
Depending on the condition that you have chosen, the data type it supports defer. For example, the condition contains
only accepts data types.
Hereโs how to troubleshoot the problem โ use a formula to convert the current data type to your desired data type. Below, youโll find a step-by-step tutorial on how to convert a date
data type to a string
data type.
In this example, we want to set up a trigger to filter for new or updated Salesforce cases that was last modified only in 2022. In summary:
Last Modified Date
โ๏ธ Get the step-by-step for this hack and more from Workato's Product Hub: https://www.workato.com/product-hub/date-conditions-unaccepted-data-type/?utm_source=WorkatoPros&utm...
Happy Automating!
Meghan