salesforce-marketingcloud / FuelSDK-Python

FuelSDK for python
Other
126 stars 194 forks source link

[BUG] [{"errorCode": "BAD_REQUEST", "message": "value \"Activity\" is not one of the picklist choices."}] #129

Open nessrine-slimani opened 3 years ago

nessrine-slimani commented 3 years ago

Describe the bug The report type Activity is returned by the metadata endpoint, however when submitting the following descriptor

{"detailColumns": ["DUE_DATE", "ACCOUNT", "OPPORTUNITY", "CONTACT", "SUBJECT", "ASSIGNED", "PRIORITY", "STATUS", "TASK", "LEAD", "TASK_TYPE"], "sortBy": [], "name": "Salesforce | Tasks and Events Report | Production", "reportFormat": "TABULAR", "reportType": {"type": "Activity"}, "scope": "organization", "standardDateFilter": {"column": "LAST_UPDATE", "durationValue": "CUSTOM", "startDate": "2021-02-05 00:00:00", "endDate": "2021-02-05 23:59:59"}}

the following error is returned

[{"errorCode": "BAD_REQUEST", "message": "value \"Activity\" is not one of the picklist choices."}]

To Reproduce Submit the descriptor provided above

Expected behavior Sucessful request

Screenshots Not applicable

Code snippet

{"detailColumns": ["DUE_DATE", "ACCOUNT", "OPPORTUNITY", "CONTACT", "SUBJECT", "ASSIGNED", "PRIORITY", "STATUS", "TASK", "LEAD", "TASK_TYPE"], "sortBy": [], "name": "Salesforce | Tasks and Events Report | Production", "reportFormat": "TABULAR", "reportType": {"type": "Activity"}, "scope": "organization", "standardDateFilter": {"column": "LAST_UPDATE", "durationValue": "CUSTOM", "startDate": "2021-02-05 00:00:00", "endDate": "2021-02-05 23:59:59"}}

Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (e.g. gif) is not sufficient.

Environment

The bug has the severity

Additional context Add any other context about the problem here.