🎯 Purpose

Build channel reports with filters and sorting.

📥 Input fields

  • request_user_email: str
  • users_emails: List[str]
  • domains: List[str]
  • channel_names: List[str]
  • channel_ids: List[int]
  • start_date: Optional[str]
  • end_date: Optional[str]
  • sorting_by: str
  • sorting_order: str

🧩 Workflow steps

  1. SSOREQUEST_ACCESS_FOR_USERS
  2. ManagerGET_CHANNELS_WITH_DOMAINS
  3. StatisticsCHANNELS_STATISTICS

📤 Result

Channel statistics (from the statistics service).

📄 Code

apps/workflows/collections/channel_reports.py