Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Afls Data Model

ASecurity

Expert knowledge of the AFLS data model concepts. Use when user asks about AFLS objects, relationships, or needs help understanding the data architecture. Always verify actual API names with describe_sobject.

2 stars
0 votes
0 copies
0 views
Added 9/19/2026
businessgoapidocumentation

Works with

api

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add SalesforceLabs/afls-for-claude --skill afls-data-model --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Afls Data Model?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Afls Data Model
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/salesforcelabs-afls-data-model/badge)](https://www.skillsdirectory.com/skills/salesforcelabs-afls-data-model)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: afls-data-model
description: Expert knowledge of the AFLS data model concepts. Use when user asks about AFLS objects, relationships, or needs help understanding the data architecture. Always verify actual API names with describe_sobject.
---

# AFLS Data Model Expert

You are an expert on AFLS data model concepts and architecture.

## Important Note

AFLS is built on Salesforce Health Cloud and Industry Cloud foundations. Object API names vary by:
- AFLS package version
- Customer customizations
- Implementation choices

**Always use `describe_sobject` to verify actual object and field API names in the connected org.**

## Core Data Model Concepts

### Account Hierarchy
- **Accounts** - HCPs (Healthcare Professionals) and HCOs (Healthcare Organizations)
  - Often uses PersonAccount for individuals
- **HealthcareProvider** - **1:1 with Account (PersonAccount).** Each HCP Account has exactly one `HealthcareProvider` record linked via `HealthcareProvider.AccountId`. Do NOT describe this as 1:many.
- **Addresses** - Multiple addresses per account (`ContactPointAddress`)
- **Affiliations** - Relationships between accounts (e.g., doctor to hospital)
- **Account Ratings** - Segmentation and scoring
- **Business Licenses** - Professional licenses and certifications

### Territory Structure
- Uses Salesforce Enterprise Territory Management
- **Territory2** - Territory definitions
- **Territory2Model** - Territory hierarchy model
- Account-to-territory assignments
- User-to-territory assignments

### Visit/Call Model
- **Visit records** - HCP/HCO interactions
- **Product discussions** - Products detailed during visits
- **Samples dropped** - Sample distribution records
- **Attendees** - Additional visit participants

### Sample Management
- **Sample Limits** - Distribution limits per product/template
- **Provider Sample Limits** - Limits applied to specific accounts
- **Sample transactions** - Movement/distribution records
- **Sample inventory** - Rep inventory levels

### Content & Engagement
- **Consent records** - Consent capture and tracking
- **Content/Presentations** - CLM content
- **Activity Plans** - Planning and goals

## Key Relationships

### Account to HealthcareProvider (1:1)
- Each `Account` (PersonAccount / HCP) has exactly **one** `HealthcareProvider` record
- `HealthcareProvider.AccountId` is a lookup back to the Account
- This is a **1:1 relationship** — never 1:many

### Account to Territory
- Accounts assigned to territories
- Users see accounts based on territory membership
- Territory hierarchy controls rollup reporting

### Visit to Account
- Visits link to Account
- Products discussed via junction object
- Samples recorded via junction object

## OmniStudio Components (Web Only)

AFLS uses OmniStudio on the **web app only**. OmniStudio components (FlexCards, OmniScripts, DataRaptors, Integration Procedures) are **NOT available in the AFLS Mobile app (iPad)**.

- **FlexCards** - Provider Card, Visit Summary (web only)
- **DataRaptors** - Data extraction and transformation
- **OmniScripts** - Multi-step guided processes (web only)
- **Integration Procedures** - Complex orchestrations

## Using Tools to Explore

1. `describe_sobject` - Get actual field names for any object
2. `run_soql` - Query relationships and data
3. `search_afls_knowledge` - Find documentation on specific features
4. `get_afls_module_docs` - Get module-specific guidance

## Objects That Require Tooling API or Metadata API (NOT SOQL)

**NEVER use `run_soql` for these — it will fail:**

| Feature | Correct approach |
|---------|-----------------|
| **Compact Layouts** | Tooling API (`sf data query --use-tooling-api`) or `retrieve_metadata` |
| Admin Console settings (`LifeSciConfigRecord`) | `list_admin_settings`, `update_admin_setting` |
| DB Schema records (`LifeSciConfigFieldValue`) | `list_db_schema`, `update_db_schema` |
| Quick Actions / Custom Actions | `list_afls_actions`, `create_quick_action`, etc. |
| Page Layouts | `retrieve_metadata` / `deploy_metadata` |

## Best Practice

When helping with data model questions:
1. Explain the conceptual model from documentation
2. Use `describe_sobject` to find actual API names
3. Help construct queries with verified field names

Attribution

SalesforceLabsSalesforceLabs
View sourceMore from SalesforceLabs →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Solution Architect

Designs system architecture, component specifications, and technical integration strategy. Use when: designing solutions, system architecture, technology stack, or integration approaches.

192 votes

Akorchak:Venture Assessment

Generate a comprehensive VC investment assessment report for a company

72 votes

Stock Analysis

Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management (create, add, remove assets), crypto analysis (Top 20 by market cap), and periodic performance reports (daily/weekly/monthly/quarterly/yearly). 8 analysis dimensions for stocks, 3 for crypto. Use for stock analysis, portfolio tracking, earnings reactions, or crypto monitoring.

6511 votes

Telegram Compose

Compose rich, readable Telegram messages using HTML formatting via direct Telegram API. Use when: (1) Sending any Telegram message beyond a simple one-line reply, (2) Creating structured messages with sections, lists, or status updates, (3) Need formatting unavailable via Clawdbot's Markdown conversion (underline, spoilers, expandable blockquotes, user mentions by ID), (4) Sending alerts, reports, summaries, or notifications to Telegram, (5) Want professional, scannable message formatting wit...

6511 votes

Just Fucking Cancel

Find and cancel unwanted subscriptions by analyzing bank transactions. Detects recurring charges, calculates annual waste, and helps you cancel with direct URLs and browser automation. Use when: 'cancel subscriptions', 'audit subscriptions', 'find recurring charges', 'what am I paying for', 'save money', 'subscription cleanup', 'stop wasting money'. Supports CSV import (Apple Card, Chase, Amex, Citi, Bank of America, Capital One, Mint, Copilot) OR Plaid API for automatic transaction pull. Out...

6511 votes
View all in business →