Skip to main content

Hey guys,

 

I’m working on a custom script, and I need to use the value of a rollup field. I’ve tried:
record.getCellValueAsString("Publishing Breakdown");
inputConfig.items

items is added as a variable which pulls the value from Publishing Breakdown.

I either get null or empty array.

Hey ​@cportillo,


Is this script being set up within an automation? If so you might want to try input.config() and mapping the value on the right margin. - See image below for further reference.
 

 

Mike, Consultant @ Automatic Nation 
YouTube Channel


Hey guys,

 

I’m working on a custom script, and I need to use the value of a rollup field. I’ve tried:
record.getCellValueAsString("Publishing Breakdown");
inputConfig.items

items is added as a variable which pulls the value from Publishing Breakdown.

I either get null or empty array.

Hello ​@cportillo,
Rollup fields often return arrays or complex objects. Use record.getCellValue("Publishing Breakdown") instead of getCellValueAsString, then inspect the result—especially if it's an array of linked records or aggregated values. You may need to loop through the array or access nested properties to extract usable data.

Best Regards,
Kyla Ellis!


Reply