simple-salesforce-retrieve-uses-unpackaged-kwarg-not-package-xml

SfdcMetadataApi.retrieve() does not accept a package_xml string — the first positional arg is used as a URL path segment. The correct call uses the unpackaged keyword argument with a dict mapping metadata type names to lists of member names: conn.mdapi.retrieve(unpackaged={‘CustomObject’: [‘Account’, ‘Contact’]}). Passing package XML content as a positional arg silently makes a malformed API call.