Legacy Dev Forum Posts

 View Only

Sign Up

Reporting export view filter error

  • 1.  Reporting export view filter error

    Posted 06-05-2025 18:06

    agroenendijk | 2023-04-11 12:08:40 UTC | #1

    I'm looking for a way to add a media type filter to the body. I'm trying to export a view to csv, but no matter what I try I keep getting an error about adding the filter.

    This is the code: dates = "2023-04-06T00:00:00/2023-04-06T17:00:00"; body.Interval = dates; body.Name = "AgentStatusDetail"; body.TimeZone = "Europe/Amsterdam"; body.Period = "P1D"; body.ViewType = ReportingExportJobRequest.ViewTypeEnum.AgentStatusDetailView; body.Locale = "nl-NL"; body.ExportFormat = ReportingExportJobRequest.ExportFormatEnum.Csv; body.CsvDelimiter = ReportingExportJobRequest.CsvDelimiterEnum.Comma; filter = new ViewFilter(); filter.MediaTypes.Add(ViewFilter.MediaTypesEnum.Voice);

    And this the error: object reference not set to an instance of an object

    I got this error in every viewtype. It seems not possible to add a filter with mediatypes.

    Can someone help me? Thanks!


    system | 2023-05-12 12:08:59 UTC | #2

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 19392