Question

only run step if field is in source data from Hubspot

  • 15 March 2023
  • 1 reply
  • 22 views

If a hubspot field does not contain a value then the data set received from hubspot does not contain the field at all.

Example
WIth Value in Field 2 data set is
Field 1 : Content 1
Field 2 : Content 2
Field 3 : Content 3

WIthout Value in Field 2 data set is
Field 1 : Content 1
Field 3 : Content 3

If you try and run a step that uses the Field 2 , in example 2 the step will fail because no Field 2 is passed to the step.

I need a way to either use a default value for field 2 (cannot be done with the formatting step) or a away to skip the step so the zap does not fail (the Should this step be considered a "success" when nothing is found? does not work for this as the step has already failed ).


1 reply

Userlevel 7
Badge +12

Hi @ENQUIRING MIND, welcome to the Community!

You mentioned that you couldn’t create a default value using Formatter, what action/s you tried?

If you select the Formatter event Text, there is an action that will create a default value if a field is empty:

Did you give this a go and it didn’t work? If it didn’t work, did you receive any error messages? That action should give you the default value that you need. 

 

Another way around this would be to use a Filter step. You can set up a Filter that stops a Zap from continuing if a specific field is empty. 

 

​I hope that helps, please let us know if you have any questions!

Reply