The scenario is that from an Account I want to see the related Campaigns and their outcome. At the final call I am getting:
"ValueError: No JSON object could be decoded"
query = conn.modules['Accounts'].query()
query = query.filter(name__exact = 'some name here')
item = query[0]
x = item.get_related(conn.modules['Campaigns'])
for i in x:
print i['id'] # ---> campaign_log id (as it turned out)
query = conn.modules['CampaignLog'].query()
query = query.filter(id__exact = i['id'])
item = query[0]
print item['campaign_name'] # or anyother campaign log field
Am I overlooking something?
The scenario is that from an Account I want to see the related Campaigns and their outcome. At the final call I am getting:
"ValueError: No JSON object could be decoded"
query = conn.modules['Accounts'].query()
query = query.filter(name__exact = 'some name here')
item = query[0]
x = item.get_related(conn.modules['Campaigns'])
for i in x:
print i['id'] # ---> campaign_log id (as it turned out)
query = conn.modules['CampaignLog'].query()
query = query.filter(id__exact = i['id'])
item = query[0]
print item['campaign_name'] # or anyother campaign log field
Am I overlooking something?