By passing in the appropriate options, you can retrieve the association count for objects
+
+
+
+
xero_client.set_token_set(user.token_set)
+
+xero_tenant_id = 'YOUR_XERO_TENANT_ID'
+objectIds = []
+
+begin
+ response = xero_client.accounting_api.get_associations_count(xero_tenant_id, objectIds)
+ return response
+rescue XeroRuby::ApiError => e
+ puts "Exception when calling get_associations_count: #{e}"
+end
+
+
+
+