Skip to content

Can't read campaign logs #18

Description

@spsotirop

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions