{"id":1112,"date":"2025-08-06T13:46:09","date_gmt":"2025-08-06T13:46:09","guid":{"rendered":"http:\/\/gogetmuscle.com\/?p=1112"},"modified":"2025-08-06T17:42:23","modified_gmt":"2025-08-06T17:42:23","slug":"custom-code-action-not-returning-any-output-fields-for-custom-objects","status":"publish","type":"post","link":"http:\/\/gogetmuscle.com\/index.php\/2025\/08\/06\/custom-code-action-not-returning-any-output-fields-for-custom-objects\/","title":{"rendered":"Custom code action not returning any output fields for custom objects"},"content":{"rendered":"
Hi everyone,
<\/P>
I’m currently working with a custom code action in a HubSpot workflow that triggers from a custom object<\/P>
The goal is very simple: I want to compute a value and return it via the outputFields so I can use it in a subsequent action (like setting a property on the same object).<\/P>
\u00a0<\/P>
It works perfectly when I use a standard object like Contact,\u00a0<\/EM>the value shows up in the outputs and is usable.<\/P> However, when I do exactly the same with the\u00a0custom object, the function runs (no errors in the logs), but the output field is never returned or accessible. \u00a0<\/P> Has anyone experienced something similar, or is there a known limitation or workaround?<\/P> \u00a0<\/P> Thanks in advance!<\/P><\/p>\n","protected":false},"excerpt":{"rendered":" Hi everyone,I’m currently working with a custom code action in a HubSpot workflow that triggers from a custom objectThe goal is very simple: I want to compute a value and return it via the outputFields so I can use it in a subsequent action (like setting a property on the same object).\u00a0It works perfectly when […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/1112"}],"collection":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/comments?post=1112"}],"version-history":[{"count":1,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/1112\/revisions"}],"predecessor-version":[{"id":1113,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/1112\/revisions\/1113"}],"wp:attachment":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/media?parent=1112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/categories?post=1112"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/tags?post=1112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
The outputFields section is configured properly in the UI.
The property name is correctly typed.
The function uses the right format
I\u2019ve tried both string and numeric output values.
Logs confirm the callback is executed, but nothing appears in the output data section of the workflow
<\/P>