Salesforce · JSON-LD Context

Salesforcecom Context

JSON-LD context defining the semantic vocabulary for Salesforcecom from Salesforce.

0 Classes 6 Properties 3 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#
sf: https://api-evangelist.github.io/salesforcecom/vocab#

Properties

Property Type Container
SObject
Account
Contact
Lead
Opportunity
Case

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "sf": "https://api-evangelist.github.io/salesforcecom/vocab#",

    "SObject": {
      "@id": "sf:SObject",
      "@context": {
        "Id": "@id",
        "Name": "schema:name",
        "OwnerId": "sf:ownedBy",
        "CreatedDate": {
          "@id": "schema:dateCreated",
          "@type": "xsd:dateTime"
        },
        "LastModifiedDate": {
          "@id": "schema:dateModified",
          "@type": "xsd:dateTime"
        },
        "IsDeleted": "sf:isDeleted",
        "attributes": "sf:recordAttributes"
      }
    },

    "Account": {
      "@id": "schema:Organization",
      "@context": {
        "Id": "@id",
        "Name": "schema:name",
        "Phone": "schema:telephone",
        "Website": "schema:url",
        "BillingCity": "schema:addressLocality",
        "BillingState": "schema:addressRegion",
        "BillingCountry": "schema:addressCountry",
        "Industry": "schema:industry",
        "NumberOfEmployees": "schema:numberOfEmployees",
        "AnnualRevenue": "schema:value",
        "Description": "schema:description",
        "OwnerId": "sf:ownedBy"
      }
    },

    "Contact": {
      "@id": "schema:Person",
      "@context": {
        "Id": "@id",
        "FirstName": "schema:givenName",
        "LastName": "schema:familyName",
        "Email": "schema:email",
        "Phone": "schema:telephone",
        "MobilePhone": "schema:telephone",
        "Title": "schema:jobTitle",
        "MailingCity": "schema:addressLocality",
        "MailingState": "schema:addressRegion",
        "MailingCountry": "schema:addressCountry",
        "AccountId": "schema:worksFor",
        "OwnerId": "sf:ownedBy"
      }
    },

    "Lead": {
      "@id": "schema:Person",
      "@context": {
        "Id": "@id",
        "FirstName": "schema:givenName",
        "LastName": "schema:familyName",
        "Email": "schema:email",
        "Phone": "schema:telephone",
        "Company": "schema:worksFor",
        "Title": "schema:jobTitle",
        "Status": "sf:leadStatus",
        "OwnerId": "sf:ownedBy"
      }
    },

    "Opportunity": {
      "@id": "schema:Offer",
      "@context": {
        "Id": "@id",
        "Name": "schema:name",
        "Amount": "schema:price",
        "CloseDate": {
          "@id": "schema:validThrough",
          "@type": "xsd:date"
        },
        "StageName": "sf:opportunityStage",
        "AccountId": "schema:offeredBy",
        "OwnerId": "sf:ownedBy",
        "Description": "schema:description"
      }
    },

    "Case": {
      "@id": "schema:ItemList",
      "@context": {
        "Id": "@id",
        "Subject": "schema:name",
        "Description": "schema:description",
        "Status": "sf:caseStatus",
        "Priority": "sf:casePriority",
        "AccountId": "schema:provider",
        "ContactId": "schema:recipient",
        "OwnerId": "sf:ownedBy"
      }
    }
  }
}