forcedotcom avatar

Dx App Analytics Query

If you're an ISV partner who needs to pull managed package usage data from Salesforce's Intelligence Data Lake, this is the skill you want. It handles creating AppAnalyticsQueryRequest records via the REST API, polling them through the New-Pending-Complete lifecycle, and grabbing the presigned download URLs before they expire. You can query PackageUsageSummary, PackageUsageLog, or SubscriberSnapshot data, filter by time ranges or specific subscriber orgs, and get results as CSV or Parquet with optional compression. The gotcha worth knowing: these are sObject records you create and poll via REST, not metadata you deploy. Also covers AppAnalyticsSettings for enabling simulation mode when you're testing without real subscriber data.

skills.sh installs
5.2K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add forcedotcom/sf-skills --skill dx-app-analytics-query --agent claude-code

Installs into .claude/skills of the current project.

Files

App Analytics

When This Skill Owns the Task

Use dx-app-analytics-query when the work involves:

  • Creating AppAnalyticsQueryRequest records via the REST/sObject API
  • Configuring AppAnalyticsSettings via the Metadata API (simulation mode, opt-out)
  • Understanding the query lifecycle: New → Pending → Complete → Expired → Failed
  • Choosing between dataType values: PackageUsageSummary, PackageUsageLog, SubscriberSnapshot
  • File format and compression options for analytics downloads
  • Time-range filtering with startTime, endTime, availableSince
  • Troubleshooting failed or expired analytics queries

Delegate elsewhere when the user is:

  • Running standard CRM SOQL queries → platform-soql-query
  • Working with Data Cloud SQL or DMOs → retrieving-datacloud
  • Building reports/dashboards on standard objects → reporting skills
  • Deploying or retrieving generic metadata XML → deploying-metadata / retrieving-metadata

Available Types

AppAnalyticsQueryRequest (REST/sObject API)

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Data Science & ML, Marketing & SEO, Sales & Marketing, Cloud & Infrastructure
First seen
Jul 14, 2026

More from forcedotcom/sf-skills

All 158
1claude-office-skills avatardeep-researchclaude-office-skills/skillsConduct comprehensive research on any topic. Synthesize information from multiple angles, provide structured analysis, and generate detailed research reports.5.2Kskills.sh installs
2langchain-ai avatarlangsmith-datasetlangchain-ai/langsmith-skillsINVOKE THIS SKILL when creating evaluation datasets, uploading datasets to LangSmith, or managing existing datasets. Covers dataset types (final_response, singl4.9Kskills.sh installs
3affaan-m avatarpytorch-patternsaffaan-m/everything-claude-codepytorch patterns4.7Kskills.sh installs
4grafana avatarml-aigrafana/skillsTurn on AI + ML features in Grafana Cloud — Grafana Assistant (NL → PromQL/LogQL/TraceQL, dashboard build, incident investigation, MCP integration), Dynamic Ale4.4Kskills.sh installs
5vinvcn avatarresearchvinvcn/mattpocock-skills-zh-cn对照高可信一手来源调研问题,并把发现保存为仓库中的 Markdown 文件。适用于用户想调研主题、收集文档或 API 事实,或把阅读工作委托给后台代理时。4.2Kskills.sh installs
6anthropics avataruser-researchanthropics/knowledge-work-pluginsPlan, conduct, and synthesize user research. Trigger with "user research plan", "interview guide", "usability test", "survey design", "research questions", or w4.1Kskills.sh installs