{
  "id": "ISSUE-2107-01",
  "name": "Lead create runs record-triggered tenant flow without protected-flow rejection",
  "description": "Regression for #2107. The standard SObject create path must be allowed to execute active record-triggered tenant flows; tenant-owned Flow.Source rows must not be treated as protected standard-action pack flows.",
  "object": "Lead",
  "method": "POST",
  "endpoint": "/services/data/v63.0/sobjects/Lead",
  "payload": {
    "FirstName": "Issue2107",
    "LastName": "Lead {timestamp}",
    "Company": "Issue2107 Co {timestamp}",
    "Status": "Open",
    "Email": "issue2107-{timestamp}@test.com"
  },
  "expects": {
    "status_code": 201
  },
  "query_after": {
    "object": "Lead",
    "assertions": [
      {
        "field": "LastName",
        "operator": "contains",
        "value": "Lead"
      },
      {
        "field": "Company",
        "operator": "contains",
        "value": "Issue2107 Co"
      }
    ]
  },
  "teardown": {
    "method": "DELETE",
    "endpoint": "/services/data/v63.0/sobjects/Lead/{id}"
  },
  "priority": "P0",
  "bug_ref": "#2107",
  "scene": "issue-2107"
}
