Error connecting to SF object to get the ForecastingItem object description using beatbox - python

151 views Asked by At

from a ubuntu machine I use beatbox python package to connect to SF and get the objects descriptions but can't manage to get access to the ForecastingItems object. I checked my privileges to access the object and I have full access as admin

the script I'm using is bellow, when I changed the object ForecastingItem with Account it does pull all the object fields.

#!/usr/bin/python
# coding=utf8

import beatbox
import pprint
import sys
import os
import datetime

sf_service     = beatbox.PythonClient()
sf_service.login('[email protected]', 'password$numbersletter')

desc_obj       = sf_service.describeSObjects('ForecastingItem')
forcat_item    = desc_obj[0]
forItem_fields = forcat_item.fields

for sf_field_key, sf_field_value in forItem_fields.items():
    print sf_field_key

I heard that I should upgrade beatbox to something more than the version 21 to be able to access the ForecastingItem object so I tried apt-get update upgrade beatbox, but I still get the error :

Traceback (most recent call last): File "./fields_associated_with_an_object.py", line 14, in <module> desc_obj = sf_service.describeSObjects('ForecastingItem') File "/usr/local/lib/python2.7/dist-packages/beatbox-20.0-py2.7.egg/beatbox/python_client.py", line 131, in describeSObjects res = BaseClient.describeSObjects(self, sObjectTypes) File "/usr/local/lib/python2.7/dist-packages/beatbox-20.0-py2.7.egg/beatbox/_beatbox.py", line 108, in describeSObjects return DescribeSObjectsRequest(self.__serverUrl, self.sessionId, sObjectTypes).post(self.__conn) File "/usr/local/lib/python2.7/dist-packages/beatbox-20.0-py2.7.egg/beatbox/_beatbox.py", line 332, in post raise SoapFaultError(faultCode, faultString) beatbox._beatbox.SoapFaultError: 'INVALID_TYPE' "INVALID_TYPE: sObject type 'ForecastingItem' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names."

Thanks in advance!

0

There are 0 answers