Undefined error when building an integration

ConversionError: The undefined value has no properties. in Script Include TriggerRule

This error is caused by not having the correct version of the Unifi global utility script installed. Unifi v3 will automatically create trigger rules on newly integrated tables which do not have a trigger rule already defined. This isn't possible from an application scope, which is why our global utility is required. Installing the correct version will resolve this issue.