Metadata Mapping - What We Handle

This document provides a comprehensive overview of all Salesforce metadata and data that Stood Flows accesses. All operations are read-only - we never modify your Salesforce org.


Overview

Stood Flows accesses metadata and data from your Salesforce org to build visual flow graphs and provide analytics. We use standard Salesforce APIs to retrieve this information.

Data Access Methods

  1. SOQL Queries - Standard and Tooling API queries for metadata and aggregate data

  2. REST API Endpoints - Describe endpoints and metadata APIs for field and relationship information

  3. Field History Tracking - Historical data for lifecycle analysis (requires Field History Tracking to be enabled)


Standard Objects (Data Access)

Lead Object

Lead Status Definitions

We retrieve all available Lead status values including:

Lead Record Counts

We retrieve aggregate counts of Lead records:

Lead Status History

For lifecycle analytics, we access Lead Status field change history:

Note: Requires Field History Tracking enabled on Lead Status field.

Opportunity Object

Opportunity Stage Definitions

We retrieve all available Opportunity stage values including:

Opportunity Record Counts

We retrieve aggregate counts of Opportunity records:

Opportunity Stage History

For lifecycle analytics, we access Opportunity StageName field change history:

Note: Requires Field History Tracking enabled on Opportunity StageName field.

Case Object

Case Status Definitions

We retrieve all available Case status values including:

Case Record Counts

Note: Case count queries follow the same pattern as Lead/Opportunity but are not currently implemented in the platform.

Case Status History

Note: Case history queries follow the same pattern as Lead/Opportunity but are not currently implemented in the platform.


Metadata Objects (Tooling API)

Business Processes

Business Process Definitions

We retrieve business process metadata for Lead, Opportunity, and Case objects:

Business Process Metadata

For each business process, we retrieve detailed metadata including:

Record Types

We retrieve all active Record Types for Lead, Opportunity, and Case objects:

Flow Definitions

We retrieve active Flow definitions:

Apex Triggers

We retrieve active Apex triggers for Lead and Opportunity objects:

Note: Case triggers are not currently included in the query scope.

Layouts

Layout Definitions

We retrieve page layout definitions for Lead and Opportunity objects:

Layout Metadata

For each layout, we retrieve detailed metadata including:

Note: Case layouts are not currently included in the query scope.

Profile Layouts

We retrieve profile-layout associations:

Note: Case profile layouts are not currently included in the query scope.

Profiles

We retrieve profile definitions:

Validation Rules

We retrieve active validation rules for Lead, Opportunity, and Case objects:

Note: Only active validation rules are retrieved. Validation rules are queried via Tooling API and full metadata is retrieved for each rule.


REST API Endpoints

Describe Endpoints

We use Salesforce Describe API to retrieve field and relationship metadata:

Lead Describe

Retrieves comprehensive metadata about the Lead object:

Opportunity Describe

Retrieves comprehensive metadata about the Opportunity object:

Case Describe

Retrieves comprehensive metadata about the Case object:

Custom Object Describe

For custom objects discovered through relationships:

Metadata Endpoints

Flow Metadata

For each active flow, we retrieve complete flow metadata:

Profile Metadata

For each profile, we retrieve complete profile metadata:

Limits API

We access organization limits information:


License Management Data

User Licenses

We retrieve user license information:

Note: UserLicense data may not be available in Developer/Sandbox editions.

Permission Set Licenses

We retrieve permission set license information:

User Data

For license analysis, we retrieve user information:


Custom Object Discovery

Discovery Process

We discover custom objects through relationships with standard objects:

  1. Field Analysis:

    • Analyze Lead, Opportunity, and Case field definitions

    • Identify lookup and master-detail fields pointing to custom objects

    • Identify custom object relationships

  2. Related List Analysis:

    • Analyze child relationships on Lead, Opportunity, and Case

    • Identify custom objects with related lists

    • Track relationship names and labels

  3. Layout Verification:

    • Check if discovered custom objects appear in layouts

    • Verify custom object usage in page layouts

  4. Metadata Retrieval:

    • Retrieve field and relationship metadata for discovered custom objects

    • Understand custom object structure

Limitations


Data Storage & Versioning

Versioned Snapshots

All metadata is stored in versioned snapshots in our database:

Data Retention


Objects Summary

Objects Accessed via SOQL

Object

Purpose

API Type

LeadStatus

Lead status definitions

Standard

OpportunityStage

Opportunity stage definitions

Standard

CaseStatus

Case status definitions

Standard

BusinessProcess

Business process definitions

Tooling

RecordType

Record type definitions

Tooling

Opportunity

Opportunity records (for counts)

Standard

Lead

Lead records (for counts)

Standard

FlowDefinition

Flow definitions

Tooling

ApexTrigger

Apex trigger definitions

Tooling

Layout

Layout definitions

Tooling

ProfileLayout

Profile-layout associations

Tooling

Profile

Profile definitions

Tooling

ValidationRule

Validation rule definitions

Tooling

User

User records (for counts and licenses)

Standard

LeadStatusHistory

Lead status change history

Standard

OpportunityFieldHistory

Opportunity stage change history

Standard

UserLicense

User license information

Standard

PermissionSetLicense

Permission set license information

Standard

Objects Accessed via REST API (Describe)

Object

Purpose

Lead

Field and relationship metadata

Opportunity

Field and relationship metadata

Case

Field and relationship metadata

Custom Objects

Field and relationship metadata (as discovered)

Flow

Flow metadata

Profile

Profile metadata

Limits

Organization limits


Data Access Patterns

Read-Only Operations

All data access is read-only:

Query Optimization

We optimize data access to minimize API usage:

Rate Limit Management

We respect Salesforce API rate limits:


Data Privacy & Security

Data Isolation

Token Security

Compliance


Field History Tracking Requirements

Required Setup

For lifecycle analytics to work, Field History Tracking must be enabled on:

Setup Steps

  1. Navigate to Object Manager → Lead (or Opportunity)

  2. Click Fields & Relationships

  3. Find the Status (Lead) or StageName (Opportunity) field

  4. Click Set History Tracking

  5. Enable history tracking

  6. Save

Data Retention


API Usage Summary

Standard API Usage

Used for:

Tooling API Usage

Used for:

Rate Limits


Published with Nuclino