Salesforce · JSON Structure

Salesforce Body6 Structure

Type: object Properties: 3 Required: 3
Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

Body6 is a JSON Structure definition published by Salesforce, describing 3 properties, of which 3 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

isRichText messageSegments text

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "Body6",
  "properties": {
    "isRichText": {
      "type": "boolean"
    },
    "messageSegments": {
      "type": "array",
      "description": "",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "altText": {
            "type": "['string', 'null']"
          },
          "htmlTag": {
            "type": "string"
          },
          "markupType": {
            "type": "string"
          },
          "url": {
            "type": "['string', 'null']"
          },
          "accessible": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "record": {
            "type": "object",
            "properties": {
              "additionalLabel": {
                "type": "['string', 'null']"
              },
              "communityNickname": {
                "type": "string"
              },
              "companyName": {
                "type": "string"
              },
              "displayName": {
                "type": "string"
              },
              "firstName": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "isActive": {
                "type": "boolean"
              },
              "isInThisCommunity": {
                "type": "boolean"
              },
              "lastName": {
                "type": "string"
              },
              "motif": {
                "type": "object",
                "properties": {
                  "color": {
                    "type": "string"
                  },
                  "largeIconUrl": {
                    "type": "string"
                  },
                  "mediumIconUrl": {
                    "type": "string"
                  },
                  "smallIconUrl": {
                    "type": "string"
                  },
                  "svgIconUrl": {
                    "type": "['string', 'null']"
                  }
                },
                "required": [
                  "color",
                  "largeIconUrl",
                  "mediumIconUrl",
                  "smallIconUrl",
                  "svgIconUrl"
                ]
              },
              "mySubscription": {
                "type": "['string', 'null']"
              },
              "name": {
                "type": "string"
              },
              "outOfOffice": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "message"
                ]
              },
              "photo": {
                "type": "object",
                "properties": {
                  "fullEmailPhotoUrl": {
                    "type": "string"
                  },
                  "largePhotoUrl": {
                    "type": "string"
                  },
                  "mediumPhotoUrl": {
                    "type": "string"
                  },
                  "photoVersionId": {
                    "type": "string"
                  },
                  "smallPhotoUrl": {
                    "type": "string"
                  },
                  "standardEmailPhotoUrl": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  }
                },
                "required": [
                  "fullEmailPhotoUrl",
                  "largePhotoUrl",
                  "mediumPhotoUrl",
                  "photoVersionId",
                  "smallPhotoUrl",
                  "standardEmailPhotoUrl",
                  "url"
                ]
              },
              "reputation": {
                "type": "['string', 'null']"
              },
              "title": {
                "type": "['string', 'null']"
              },
              "type": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "userType": {
                "type": "string"
              }
            },
            "required": [
              "additionalLabel",
              "communityNickname",
              "companyName",
              "displayName",
              "firstName",
              "id",
              "isActive",
              "isInThisCommunity",
              "lastName",
              "motif",
              "mySubscription",
              "name",
              "outOfOffice",
              "photo",
              "reputation",
              "title",
              "type",
              "url",
              "userType"
            ]
          }
        },
        "required": [
          "text",
          "type"
        ]
      }
    },
    "text": {
      "type": "string"
    }
  },
  "required": [
    "isRichText",
    "messageSegments",
    "text"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}