You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working off of WSDL 68 and am getting errors when trying to find an Amendment record. This seems to be because all fields in the WSDL are being sent, even when they are not available for the Query type.
However fields like DestinationAccountId are considered invalid for queries.
I ran into similar issues and ended up monkey-patching Zuora::SoapConnector#query.
Here's an example where I filtered out custom fields from queries.
module Zuora
class SoapConnector
def query(sql)
Zuora::Api.instance.request(:query) do |xml|
xml.__send__(@model.zns, :queryString, sql.gsub(/ [^,.]*__c,/, ''))
end
end
end
end
I am working off of WSDL 68 and am getting errors when trying to find an Amendment record. This seems to be because all fields in the WSDL are being sent, even when they are not available for the Query type.
However fields like DestinationAccountId are considered invalid for queries.
resulting in
Is there a way to specify that certain fields are not sent for different action types? I'm just commenting them out of the WSDL currently.
The text was updated successfully, but these errors were encountered: