Workflow Custom Code - Data output

Hi HubSpotters,

I recently started to use operations Hub for Workflow Custom Code.

The goal for writing the Custom Code is to retrieve a company data, process and return a result as data output so that I can use it late in next workflow actions.

The code is working when I test it individually, and it has output as Boolean value. I want to use output data late in the next workflow in “Value Equals Branch” but my workflow always goes to “Not Meet” branch despite the data output whether is true or false.

Can we use data output that comes from custom code directly in workflow “Value Equals Branch”? or we need to use workflow “copy property value” first to store data output in data object then we can use object properties in “Value Equals Branch”?

I have attached screenshots for custom code, data output, workflow.

any thought?

@AngusGibbs, @robertainslie, @jackcoldrick, @dirkd, @sam-g, @SaleProcessNerd, @NGiron, is this something you might be able to help with?

@IElsanosi the test feature is a bit confusing, because it isn’t actually running your code. If you try enrolling a test company into the workflow, the custom code will actually execute, and based on the screenshots you have, I would expect things to work as expected (I tested with a sample custom code action that outputs a boolean value, followed by a value equals branch, and the company went down the correct branch).

I’m passing this along to the team as feedback on the test feature.