{
  "info": {
    "name": "QBO tutorial: Routing worklist items automatically",
    "description": "Set up a worklist so that every new task goes to the right team and the right person without a manager assigning it, and let users start their day with Next Item. This example routes loan reviews by the state of the loan\u0027s property.\n\nAudience: PowerUser. Concepts: worklist, task, rules, power-user.\n\nSet \u0060accessKey\u0060 and \u0060secretKey\u0060 as current values (or in an environment); never save them in the collection. Run folder 1 once to create the sample data, then the tutorial\u0027s requests in order.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "exec": [
          "// Exchange accessKey/secretKey for a bearer token, reused until a minute before it expires.",
          "const expires = Number(pm.collectionVariables.get(\u0027tokenExpires\u0027) || 0);",
          "if (Date.now() \u003E expires - 60000) {",
          "  pm.sendRequest({",
          "    url: pm.collectionVariables.get(\u0027baseUrl\u0027) \u002B pm.collectionVariables.get(\u0027corePath\u0027) \u002B \u0027/security/account/token\u0027,",
          "    method: \u0027POST\u0027,",
          "    header: { \u0027Content-Type\u0027: \u0027application/json\u0027 },",
          "    body: { mode: \u0027raw\u0027, raw: JSON.stringify({ accessKey: pm.variables.get(\u0027accessKey\u0027), secretKey: pm.variables.get(\u0027secretKey\u0027) }) }",
          "  }, (err, res) =\u003E {",
          "    if (err || res.code !== 200) { console.error(\u0027Token request failed\u0027, err || res.code); return; }",
          "    let t = res.json(); if (typeof t === \u0027string\u0027) t = JSON.parse(t);",
          "    pm.collectionVariables.set(\u0027token\u0027, t.accessToken);",
          "    pm.collectionVariables.set(\u0027tokenExpires\u0027, Date.now() \u002B (t.expiresInSeconds || 300) * 1000);",
          "  });",
          "}"
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://your-qbo-site.example",
      "description": "Your QBO site\u0027s address (a test or UAT site, not production)."
    },
    {
      "key": "corePath",
      "value": "/core"
    },
    {
      "key": "accessKey",
      "value": "",
      "description": "Your access key. Set as a current value only."
    },
    {
      "key": "secretKey",
      "value": "",
      "description": "Your secret key. Set as a current value only."
    },
    {
      "key": "agentName",
      "value": "api3-1",
      "description": "AI agent registered on the site."
    },
    {
      "key": "token",
      "value": ""
    },
    {
      "key": "tokenExpires",
      "value": "0"
    },
    {
      "key": "user",
      "value": "",
      "description": "Your login: the package adds you to teams and routes work to you."
    },
    {
      "key": "userPersonId",
      "value": "",
      "description": "Your PersonID, found from user."
    },
    {
      "key": "person_taylor",
      "value": "",
      "description": "ID of Person qbo4-fintech-regression-smart-worklists-person-taylor"
    },
    {
      "key": "person_riley",
      "value": "",
      "description": "ID of Person qbo4-fintech-regression-smart-worklists-person-riley"
    },
    {
      "key": "person_morgan",
      "value": "",
      "description": "ID of Person qbo4-fintech-regression-smart-worklists-person-morgan"
    },
    {
      "key": "team_collections",
      "value": "",
      "description": "ID of Collection qbo4-fintech-regression-smart-worklists-team-collections"
    },
    {
      "key": "team_collections_ada",
      "value": "",
      "description": "ID of CollectionMember qbo4-fintech-regression-smart-worklists-team-collections-ada"
    },
    {
      "key": "team_collections_taylor",
      "value": "",
      "description": "ID of CollectionMember qbo4-fintech-regression-smart-worklists-team-collections-taylor"
    },
    {
      "key": "team_collections_riley",
      "value": "",
      "description": "ID of CollectionMember qbo4-fintech-regression-smart-worklists-team-collections-riley"
    },
    {
      "key": "team_collections_morgan",
      "value": "",
      "description": "ID of CollectionMember qbo4-fintech-regression-smart-worklists-team-collections-morgan"
    },
    {
      "key": "property_fl",
      "value": "",
      "description": "ID of Property qbo4-fintech-regression-smart-worklists-property-fl"
    },
    {
      "key": "loan_fl",
      "value": "",
      "description": "ID of Loan qbo4-fintech-regression-smart-worklists-loan-fl"
    },
    {
      "key": "property_ca",
      "value": "",
      "description": "ID of Property qbo4-fintech-regression-smart-worklists-property-ca"
    },
    {
      "key": "loan_ca",
      "value": "",
      "description": "ID of Loan qbo4-fintech-regression-smart-worklists-loan-ca"
    },
    {
      "key": "property_az",
      "value": "",
      "description": "ID of Property qbo4-fintech-regression-smart-worklists-property-az"
    },
    {
      "key": "loan_az",
      "value": "",
      "description": "ID of Loan qbo4-fintech-regression-smart-worklists-loan-az"
    },
    {
      "key": "property_tx",
      "value": "",
      "description": "ID of Property qbo4-fintech-regression-smart-worklists-property-tx"
    },
    {
      "key": "loan_tx",
      "value": "",
      "description": "ID of Loan qbo4-fintech-regression-smart-worklists-loan-tx"
    },
    {
      "key": "matrix",
      "value": "",
      "description": "ID of Matrix qbo4-fintech-regression-smart-worklists-matrix"
    },
    {
      "key": "matrix_state",
      "value": "",
      "description": "ID of MatrixDimension qbo4-fintech-regression-smart-worklists-matrix-state"
    },
    {
      "key": "rule_fl",
      "value": "",
      "description": "ID of MatrixMeasure qbo4-fintech-regression-smart-worklists-rule-fl"
    },
    {
      "key": "rule_fl_team",
      "value": "",
      "description": "ID of MatrixMeasure qbo4-fintech-regression-smart-worklists-rule-fl-team"
    },
    {
      "key": "rule_fl_state",
      "value": "",
      "description": "ID of MatrixFact qbo4-fintech-regression-smart-worklists-rule-fl-state"
    },
    {
      "key": "rule_ca",
      "value": "",
      "description": "ID of MatrixMeasure qbo4-fintech-regression-smart-worklists-rule-ca"
    },
    {
      "key": "rule_ca_team",
      "value": "",
      "description": "ID of MatrixMeasure qbo4-fintech-regression-smart-worklists-rule-ca-team"
    },
    {
      "key": "rule_ca_state",
      "value": "",
      "description": "ID of MatrixFact qbo4-fintech-regression-smart-worklists-rule-ca-state"
    },
    {
      "key": "rule_az",
      "value": "",
      "description": "ID of MatrixMeasure qbo4-fintech-regression-smart-worklists-rule-az"
    },
    {
      "key": "rule_az_team",
      "value": "",
      "description": "ID of MatrixMeasure qbo4-fintech-regression-smart-worklists-rule-az-team"
    },
    {
      "key": "rule_az_state",
      "value": "",
      "description": "ID of MatrixFact qbo4-fintech-regression-smart-worklists-rule-az-state"
    },
    {
      "key": "rule_default",
      "value": "",
      "description": "ID of MatrixMeasure qbo4-fintech-regression-smart-worklists-rule-default"
    },
    {
      "key": "rule_default_team",
      "value": "",
      "description": "ID of MatrixMeasure qbo4-fintech-regression-smart-worklists-rule-default-team"
    },
    {
      "key": "worklist_template",
      "value": "",
      "description": "ID of SmartWorklistTemplate qbo4-fintech-regression-smart-worklists-worklist-template"
    },
    {
      "key": "task_template",
      "value": "",
      "description": "ID of ImportFormTemplate qbo4-fintech-regression-smart-worklists-task-template"
    },
    {
      "key": "question_reviewed",
      "value": "",
      "description": "ID of ImportFormQuestion qbo4-fintech-regression-smart-worklists-question-reviewed"
    },
    {
      "key": "task",
      "value": "",
      "description": "ImportFormID from \u0022Add a Loan Review task to a loan\u0022"
    }
  ],
  "item": [
    {
      "name": "1. Set up sample data",
      "description": "Setup package \u0060smart-worklists\u0060. Records are keyed by SubscriberID, so running this again updates them.",
      "item": [
        {
          "name": "Find your user",
          "request": {
            "method": "GET",
            "url": "{{baseUrl}}/api/person/search?Person={{user}}\u0026Output=Json",
            "description": "Looks up your PersonID from the user variable."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027PersonID\u0027);",
                  "pm.test(\u0027returns PersonID\u0027, () =\u003E pm.expect(id, \u0027PersonID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027userPersonId\u0027, id); else pm.collectionVariables.unset(\u0027userPersonId\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save Person taylor.demo@example.com",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/person/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-person-taylor",
                  "type": "text"
                },
                {
                  "key": "Person",
                  "value": "taylor.demo@example.com",
                  "type": "text"
                },
                {
                  "key": "Contact",
                  "value": "Taylor Demo",
                  "type": "text"
                },
                {
                  "key": "FirstName",
                  "value": "Taylor",
                  "type": "text"
                },
                {
                  "key": "LastName",
                  "value": "Demo",
                  "type": "text"
                },
                {
                  "key": "Active",
                  "value": "False",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060Person/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027PersonID\u0027);",
                  "pm.test(\u0027returns PersonID\u0027, () =\u003E pm.expect(id, \u0027PersonID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027person_taylor\u0027, id); else pm.collectionVariables.unset(\u0027person_taylor\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save Person riley.demo@example.com",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/person/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-person-riley",
                  "type": "text"
                },
                {
                  "key": "Person",
                  "value": "riley.demo@example.com",
                  "type": "text"
                },
                {
                  "key": "Contact",
                  "value": "Riley Demo",
                  "type": "text"
                },
                {
                  "key": "FirstName",
                  "value": "Riley",
                  "type": "text"
                },
                {
                  "key": "LastName",
                  "value": "Demo",
                  "type": "text"
                },
                {
                  "key": "Active",
                  "value": "False",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060Person/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027PersonID\u0027);",
                  "pm.test(\u0027returns PersonID\u0027, () =\u003E pm.expect(id, \u0027PersonID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027person_riley\u0027, id); else pm.collectionVariables.unset(\u0027person_riley\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save Person morgan.demo@example.com",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/person/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-person-morgan",
                  "type": "text"
                },
                {
                  "key": "Person",
                  "value": "morgan.demo@example.com",
                  "type": "text"
                },
                {
                  "key": "Contact",
                  "value": "Morgan Demo",
                  "type": "text"
                },
                {
                  "key": "FirstName",
                  "value": "Morgan",
                  "type": "text"
                },
                {
                  "key": "LastName",
                  "value": "Demo",
                  "type": "text"
                },
                {
                  "key": "Active",
                  "value": "False",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060Person/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027PersonID\u0027);",
                  "pm.test(\u0027returns PersonID\u0027, () =\u003E pm.expect(id, \u0027PersonID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027person_morgan\u0027, id); else pm.collectionVariables.unset(\u0027person_morgan\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save Collection Collections",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/collection/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-team-collections",
                  "type": "text"
                },
                {
                  "key": "Collection",
                  "value": "Collections",
                  "type": "text"
                },
                {
                  "key": "SourceObject",
                  "value": "Person",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060Collection/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027CollectionID\u0027);",
                  "pm.test(\u0027returns CollectionID\u0027, () =\u003E pm.expect(id, \u0027CollectionID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027team_collections\u0027, id); else pm.collectionVariables.unset(\u0027team_collections\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save CollectionMember {User}",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/collectionmember/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-team-collections-ada",
                  "type": "text"
                },
                {
                  "key": "CollectionMember",
                  "value": "{{user}}",
                  "type": "text"
                },
                {
                  "key": "Priority",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "CollectionID",
                  "value": "{{team_collections}}",
                  "type": "text"
                },
                {
                  "key": "SourceObjectID",
                  "value": "{{userPersonId}}",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060CollectionMember/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027CollectionMemberID\u0027);",
                  "pm.test(\u0027returns CollectionMemberID\u0027, () =\u003E pm.expect(id, \u0027CollectionMemberID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027team_collections_ada\u0027, id); else pm.collectionVariables.unset(\u0027team_collections_ada\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save CollectionMember taylor.demo@example.com",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/collectionmember/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-team-collections-taylor",
                  "type": "text"
                },
                {
                  "key": "CollectionMember",
                  "value": "taylor.demo@example.com",
                  "type": "text"
                },
                {
                  "key": "Priority",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "CollectionID",
                  "value": "{{team_collections}}",
                  "type": "text"
                },
                {
                  "key": "SourceObjectID",
                  "value": "{{person_taylor}}",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060CollectionMember/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027CollectionMemberID\u0027);",
                  "pm.test(\u0027returns CollectionMemberID\u0027, () =\u003E pm.expect(id, \u0027CollectionMemberID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027team_collections_taylor\u0027, id); else pm.collectionVariables.unset(\u0027team_collections_taylor\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save CollectionMember riley.demo@example.com",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/collectionmember/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-team-collections-riley",
                  "type": "text"
                },
                {
                  "key": "CollectionMember",
                  "value": "riley.demo@example.com",
                  "type": "text"
                },
                {
                  "key": "Priority",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "CollectionID",
                  "value": "{{team_collections}}",
                  "type": "text"
                },
                {
                  "key": "SourceObjectID",
                  "value": "{{person_riley}}",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060CollectionMember/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027CollectionMemberID\u0027);",
                  "pm.test(\u0027returns CollectionMemberID\u0027, () =\u003E pm.expect(id, \u0027CollectionMemberID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027team_collections_riley\u0027, id); else pm.collectionVariables.unset(\u0027team_collections_riley\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save CollectionMember morgan.demo@example.com",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/collectionmember/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-team-collections-morgan",
                  "type": "text"
                },
                {
                  "key": "CollectionMember",
                  "value": "morgan.demo@example.com",
                  "type": "text"
                },
                {
                  "key": "Priority",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "CollectionID",
                  "value": "{{team_collections}}",
                  "type": "text"
                },
                {
                  "key": "SourceObjectID",
                  "value": "{{person_morgan}}",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060CollectionMember/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027CollectionMemberID\u0027);",
                  "pm.test(\u0027returns CollectionMemberID\u0027, () =\u003E pm.expect(id, \u0027CollectionMemberID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027team_collections_morgan\u0027, id); else pm.collectionVariables.unset(\u0027team_collections_morgan\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save Property 100 Example Lane",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/property/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-property-fl",
                  "type": "text"
                },
                {
                  "key": "Property",
                  "value": "100 Example Lane",
                  "type": "text"
                },
                {
                  "key": "Address",
                  "value": "100 Example Lane",
                  "type": "text"
                },
                {
                  "key": "City",
                  "value": "Sampletown",
                  "type": "text"
                },
                {
                  "key": "State",
                  "value": "FL",
                  "type": "text"
                },
                {
                  "key": "PostalCode",
                  "value": "00000",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060Property/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027PropertyID\u0027);",
                  "pm.test(\u0027returns PropertyID\u0027, () =\u003E pm.expect(id, \u0027PropertyID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027property_fl\u0027, id); else pm.collectionVariables.unset(\u0027property_fl\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save Loan TUTORIAL-SWL-001",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/loan/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-loan-fl",
                  "type": "text"
                },
                {
                  "key": "Loan",
                  "value": "TUTORIAL-SWL-001",
                  "type": "text"
                },
                {
                  "key": "PropertyID",
                  "value": "{{property_fl}}",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060Loan/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027LoanID\u0027);",
                  "pm.test(\u0027returns LoanID\u0027, () =\u003E pm.expect(id, \u0027LoanID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027loan_fl\u0027, id); else pm.collectionVariables.unset(\u0027loan_fl\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save Property 200 Example Lane",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/property/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-property-ca",
                  "type": "text"
                },
                {
                  "key": "Property",
                  "value": "200 Example Lane",
                  "type": "text"
                },
                {
                  "key": "Address",
                  "value": "200 Example Lane",
                  "type": "text"
                },
                {
                  "key": "City",
                  "value": "Sampletown",
                  "type": "text"
                },
                {
                  "key": "State",
                  "value": "CA",
                  "type": "text"
                },
                {
                  "key": "PostalCode",
                  "value": "00000",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060Property/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027PropertyID\u0027);",
                  "pm.test(\u0027returns PropertyID\u0027, () =\u003E pm.expect(id, \u0027PropertyID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027property_ca\u0027, id); else pm.collectionVariables.unset(\u0027property_ca\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save Loan TUTORIAL-SWL-002",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/loan/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-loan-ca",
                  "type": "text"
                },
                {
                  "key": "Loan",
                  "value": "TUTORIAL-SWL-002",
                  "type": "text"
                },
                {
                  "key": "PropertyID",
                  "value": "{{property_ca}}",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060Loan/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027LoanID\u0027);",
                  "pm.test(\u0027returns LoanID\u0027, () =\u003E pm.expect(id, \u0027LoanID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027loan_ca\u0027, id); else pm.collectionVariables.unset(\u0027loan_ca\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save Property 300 Example Lane",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/property/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-property-az",
                  "type": "text"
                },
                {
                  "key": "Property",
                  "value": "300 Example Lane",
                  "type": "text"
                },
                {
                  "key": "Address",
                  "value": "300 Example Lane",
                  "type": "text"
                },
                {
                  "key": "City",
                  "value": "Sampletown",
                  "type": "text"
                },
                {
                  "key": "State",
                  "value": "AZ",
                  "type": "text"
                },
                {
                  "key": "PostalCode",
                  "value": "00000",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060Property/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027PropertyID\u0027);",
                  "pm.test(\u0027returns PropertyID\u0027, () =\u003E pm.expect(id, \u0027PropertyID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027property_az\u0027, id); else pm.collectionVariables.unset(\u0027property_az\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save Loan TUTORIAL-SWL-003",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/loan/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-loan-az",
                  "type": "text"
                },
                {
                  "key": "Loan",
                  "value": "TUTORIAL-SWL-003",
                  "type": "text"
                },
                {
                  "key": "PropertyID",
                  "value": "{{property_az}}",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060Loan/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027LoanID\u0027);",
                  "pm.test(\u0027returns LoanID\u0027, () =\u003E pm.expect(id, \u0027LoanID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027loan_az\u0027, id); else pm.collectionVariables.unset(\u0027loan_az\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save Property 400 Example Lane",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/property/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-property-tx",
                  "type": "text"
                },
                {
                  "key": "Property",
                  "value": "400 Example Lane",
                  "type": "text"
                },
                {
                  "key": "Address",
                  "value": "400 Example Lane",
                  "type": "text"
                },
                {
                  "key": "City",
                  "value": "Sampletown",
                  "type": "text"
                },
                {
                  "key": "State",
                  "value": "TX",
                  "type": "text"
                },
                {
                  "key": "PostalCode",
                  "value": "00000",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060Property/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027PropertyID\u0027);",
                  "pm.test(\u0027returns PropertyID\u0027, () =\u003E pm.expect(id, \u0027PropertyID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027property_tx\u0027, id); else pm.collectionVariables.unset(\u0027property_tx\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save Loan TUTORIAL-SWL-004",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/loan/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-loan-tx",
                  "type": "text"
                },
                {
                  "key": "Loan",
                  "value": "TUTORIAL-SWL-004",
                  "type": "text"
                },
                {
                  "key": "PropertyID",
                  "value": "{{property_tx}}",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060Loan/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027LoanID\u0027);",
                  "pm.test(\u0027returns LoanID\u0027, () =\u003E pm.expect(id, \u0027LoanID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027loan_tx\u0027, id); else pm.collectionVariables.unset(\u0027loan_tx\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save Matrix Assignment: Loan Review",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/matrix/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-matrix",
                  "type": "text"
                },
                {
                  "key": "Matrix",
                  "value": "Assignment: Loan Review",
                  "type": "text"
                },
                {
                  "key": "SourceObject",
                  "value": "ImportForm",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060Matrix/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027MatrixID\u0027);",
                  "pm.test(\u0027returns MatrixID\u0027, () =\u003E pm.expect(id, \u0027MatrixID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027matrix\u0027, id); else pm.collectionVariables.unset(\u0027matrix\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save MatrixDimension State",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/matrixdimension/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-matrix-state",
                  "type": "text"
                },
                {
                  "key": "MatrixDimension",
                  "value": "State",
                  "type": "text"
                },
                {
                  "key": "MatrixID",
                  "value": "{{matrix}}",
                  "type": "text"
                },
                {
                  "key": "ValueType",
                  "value": "0",
                  "type": "text"
                },
                {
                  "key": "XPath",
                  "value": "//PropertyItem/State",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060MatrixDimension/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027MatrixDimensionID\u0027);",
                  "pm.test(\u0027returns MatrixDimensionID\u0027, () =\u003E pm.expect(id, \u0027MatrixDimensionID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027matrix_state\u0027, id); else pm.collectionVariables.unset(\u0027matrix_state\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save MatrixMeasure Person",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/matrixmeasure/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-rule-fl",
                  "type": "text"
                },
                {
                  "key": "MatrixMeasure",
                  "value": "Person",
                  "type": "text"
                },
                {
                  "key": "MatrixID",
                  "value": "{{matrix}}",
                  "type": "text"
                },
                {
                  "key": "ValueType",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "ValueString",
                  "value": "{{user}}",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060MatrixMeasure/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027MatrixMeasureID\u0027);",
                  "pm.test(\u0027returns MatrixMeasureID\u0027, () =\u003E pm.expect(id, \u0027MatrixMeasureID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027rule_fl\u0027, id); else pm.collectionVariables.unset(\u0027rule_fl\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save MatrixMeasure Team",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/matrixmeasure/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-rule-fl-team",
                  "type": "text"
                },
                {
                  "key": "MatrixMeasure",
                  "value": "Team",
                  "type": "text"
                },
                {
                  "key": "MatrixID",
                  "value": "{{matrix}}",
                  "type": "text"
                },
                {
                  "key": "ParentMeasureID",
                  "value": "{{rule_fl}}",
                  "type": "text"
                },
                {
                  "key": "ValueType",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "ValueString",
                  "value": "Collections",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060MatrixMeasure/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027MatrixMeasureID\u0027);",
                  "pm.test(\u0027returns MatrixMeasureID\u0027, () =\u003E pm.expect(id, \u0027MatrixMeasureID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027rule_fl_team\u0027, id); else pm.collectionVariables.unset(\u0027rule_fl_team\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save MatrixFact qbo4-fintech-regression-smart-worklists-rule-fl-state",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/matrixfact/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-rule-fl-state",
                  "type": "text"
                },
                {
                  "key": "MatrixID",
                  "value": "{{matrix}}",
                  "type": "text"
                },
                {
                  "key": "MatrixDimensionID",
                  "value": "{{matrix_state}}",
                  "type": "text"
                },
                {
                  "key": "MatrixMeasureID",
                  "value": "{{rule_fl}}",
                  "type": "text"
                },
                {
                  "key": "ValueString",
                  "value": "FL",
                  "type": "text"
                },
                {
                  "key": "MatchValue",
                  "value": "1",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060MatrixFact/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027MatrixFactID\u0027);",
                  "pm.test(\u0027returns MatrixFactID\u0027, () =\u003E pm.expect(id, \u0027MatrixFactID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027rule_fl_state\u0027, id); else pm.collectionVariables.unset(\u0027rule_fl_state\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save MatrixMeasure Person",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/matrixmeasure/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-rule-ca",
                  "type": "text"
                },
                {
                  "key": "MatrixMeasure",
                  "value": "Person",
                  "type": "text"
                },
                {
                  "key": "MatrixID",
                  "value": "{{matrix}}",
                  "type": "text"
                },
                {
                  "key": "ValueType",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "ValueString",
                  "value": "taylor.demo@example.com",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060MatrixMeasure/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027MatrixMeasureID\u0027);",
                  "pm.test(\u0027returns MatrixMeasureID\u0027, () =\u003E pm.expect(id, \u0027MatrixMeasureID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027rule_ca\u0027, id); else pm.collectionVariables.unset(\u0027rule_ca\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save MatrixMeasure Team",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/matrixmeasure/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-rule-ca-team",
                  "type": "text"
                },
                {
                  "key": "MatrixMeasure",
                  "value": "Team",
                  "type": "text"
                },
                {
                  "key": "MatrixID",
                  "value": "{{matrix}}",
                  "type": "text"
                },
                {
                  "key": "ParentMeasureID",
                  "value": "{{rule_ca}}",
                  "type": "text"
                },
                {
                  "key": "ValueType",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "ValueString",
                  "value": "Collections",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060MatrixMeasure/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027MatrixMeasureID\u0027);",
                  "pm.test(\u0027returns MatrixMeasureID\u0027, () =\u003E pm.expect(id, \u0027MatrixMeasureID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027rule_ca_team\u0027, id); else pm.collectionVariables.unset(\u0027rule_ca_team\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save MatrixFact qbo4-fintech-regression-smart-worklists-rule-ca-state",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/matrixfact/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-rule-ca-state",
                  "type": "text"
                },
                {
                  "key": "MatrixID",
                  "value": "{{matrix}}",
                  "type": "text"
                },
                {
                  "key": "MatrixDimensionID",
                  "value": "{{matrix_state}}",
                  "type": "text"
                },
                {
                  "key": "MatrixMeasureID",
                  "value": "{{rule_ca}}",
                  "type": "text"
                },
                {
                  "key": "ValueString",
                  "value": "CA",
                  "type": "text"
                },
                {
                  "key": "MatchValue",
                  "value": "1",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060MatrixFact/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027MatrixFactID\u0027);",
                  "pm.test(\u0027returns MatrixFactID\u0027, () =\u003E pm.expect(id, \u0027MatrixFactID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027rule_ca_state\u0027, id); else pm.collectionVariables.unset(\u0027rule_ca_state\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save MatrixMeasure Person",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/matrixmeasure/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-rule-az",
                  "type": "text"
                },
                {
                  "key": "MatrixMeasure",
                  "value": "Person",
                  "type": "text"
                },
                {
                  "key": "MatrixID",
                  "value": "{{matrix}}",
                  "type": "text"
                },
                {
                  "key": "ValueType",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "ValueString",
                  "value": "riley.demo@example.com",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060MatrixMeasure/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027MatrixMeasureID\u0027);",
                  "pm.test(\u0027returns MatrixMeasureID\u0027, () =\u003E pm.expect(id, \u0027MatrixMeasureID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027rule_az\u0027, id); else pm.collectionVariables.unset(\u0027rule_az\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save MatrixMeasure Team",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/matrixmeasure/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-rule-az-team",
                  "type": "text"
                },
                {
                  "key": "MatrixMeasure",
                  "value": "Team",
                  "type": "text"
                },
                {
                  "key": "MatrixID",
                  "value": "{{matrix}}",
                  "type": "text"
                },
                {
                  "key": "ParentMeasureID",
                  "value": "{{rule_az}}",
                  "type": "text"
                },
                {
                  "key": "ValueType",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "ValueString",
                  "value": "Collections",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060MatrixMeasure/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027MatrixMeasureID\u0027);",
                  "pm.test(\u0027returns MatrixMeasureID\u0027, () =\u003E pm.expect(id, \u0027MatrixMeasureID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027rule_az_team\u0027, id); else pm.collectionVariables.unset(\u0027rule_az_team\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save MatrixFact qbo4-fintech-regression-smart-worklists-rule-az-state",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/matrixfact/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-rule-az-state",
                  "type": "text"
                },
                {
                  "key": "MatrixID",
                  "value": "{{matrix}}",
                  "type": "text"
                },
                {
                  "key": "MatrixDimensionID",
                  "value": "{{matrix_state}}",
                  "type": "text"
                },
                {
                  "key": "MatrixMeasureID",
                  "value": "{{rule_az}}",
                  "type": "text"
                },
                {
                  "key": "ValueString",
                  "value": "AZ",
                  "type": "text"
                },
                {
                  "key": "MatchValue",
                  "value": "1",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060MatrixFact/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027MatrixFactID\u0027);",
                  "pm.test(\u0027returns MatrixFactID\u0027, () =\u003E pm.expect(id, \u0027MatrixFactID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027rule_az_state\u0027, id); else pm.collectionVariables.unset(\u0027rule_az_state\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save MatrixMeasure Person",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/matrixmeasure/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-rule-default",
                  "type": "text"
                },
                {
                  "key": "MatrixMeasure",
                  "value": "Person",
                  "type": "text"
                },
                {
                  "key": "MatrixID",
                  "value": "{{matrix}}",
                  "type": "text"
                },
                {
                  "key": "ValueType",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "ValueString",
                  "value": "morgan.demo@example.com",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060MatrixMeasure/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027MatrixMeasureID\u0027);",
                  "pm.test(\u0027returns MatrixMeasureID\u0027, () =\u003E pm.expect(id, \u0027MatrixMeasureID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027rule_default\u0027, id); else pm.collectionVariables.unset(\u0027rule_default\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save MatrixMeasure Team",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/matrixmeasure/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-rule-default-team",
                  "type": "text"
                },
                {
                  "key": "MatrixMeasure",
                  "value": "Team",
                  "type": "text"
                },
                {
                  "key": "MatrixID",
                  "value": "{{matrix}}",
                  "type": "text"
                },
                {
                  "key": "ParentMeasureID",
                  "value": "{{rule_default}}",
                  "type": "text"
                },
                {
                  "key": "ValueType",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "ValueString",
                  "value": "Collections",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060MatrixMeasure/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027MatrixMeasureID\u0027);",
                  "pm.test(\u0027returns MatrixMeasureID\u0027, () =\u003E pm.expect(id, \u0027MatrixMeasureID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027rule_default_team\u0027, id); else pm.collectionVariables.unset(\u0027rule_default_team\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save SmartWorklistTemplate Loan Review",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/smartworklisttemplate/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-worklist-template",
                  "type": "text"
                },
                {
                  "key": "SmartWorklistTemplate",
                  "value": "Loan Review",
                  "type": "text"
                },
                {
                  "key": "SourceObject",
                  "value": "ImportForm",
                  "type": "text"
                },
                {
                  "key": "MemberUrl",
                  "value": "Decision/ImportForm.ashx/Summary?Method=Render{Layout}\u0026ImportFormID={SourceObjectID}",
                  "type": "text"
                },
                {
                  "key": "CalculateMethod",
                  "value": "ImportForm/Search?ImportFormTemplate=Loan Review\u0026ActualCompletion!=",
                  "type": "text"
                },
                {
                  "key": "TeamMatrixID",
                  "value": "{{matrix}}",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060SmartWorklistTemplate/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027SmartWorklistTemplateID\u0027);",
                  "pm.test(\u0027returns SmartWorklistTemplateID\u0027, () =\u003E pm.expect(id, \u0027SmartWorklistTemplateID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027worklist_template\u0027, id); else pm.collectionVariables.unset(\u0027worklist_template\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save ImportFormTemplate Loan Review",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/importformtemplate/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-task-template",
                  "type": "text"
                },
                {
                  "key": "ImportFormTemplate",
                  "value": "Loan Review",
                  "type": "text"
                },
                {
                  "key": "ParentObject",
                  "value": "Loan",
                  "type": "text"
                },
                {
                  "key": "Repeatable",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "SmartWorklistTemplateID",
                  "value": "{{worklist_template}}",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060ImportFormTemplate/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027ImportFormTemplateID\u0027);",
                  "pm.test(\u0027returns ImportFormTemplateID\u0027, () =\u003E pm.expect(id, \u0027ImportFormTemplateID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027task_template\u0027, id); else pm.collectionVariables.unset(\u0027task_template\u0027);"
                ]
              }
            }
          ]
        },
        {
          "name": "Save ImportFormQuestion LoanReviewed",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/importformquestion/save?Output=Json",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "SubscriberID",
                  "value": "qbo4-fintech-regression-smart-worklists-question-reviewed",
                  "type": "text"
                },
                {
                  "key": "ImportFormQuestion",
                  "value": "LoanReviewed",
                  "type": "text"
                },
                {
                  "key": "ImportFormTemplateID",
                  "value": "{{task_template}}",
                  "type": "text"
                },
                {
                  "key": "Label",
                  "value": "Loan reviewed",
                  "type": "text"
                },
                {
                  "key": "FormElement",
                  "value": "checkbox",
                  "type": "text"
                },
                {
                  "key": "CssClass",
                  "value": "required",
                  "type": "text"
                },
                {
                  "key": "Sequence",
                  "value": "1",
                  "type": "text"
                }
              ]
            },
            "description": "\u0060ImportFormQuestion/Save\u0060 upserts by SubscriberID."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027ImportFormQuestionID\u0027);",
                  "pm.test(\u0027returns ImportFormQuestionID\u0027, () =\u003E pm.expect(id, \u0027ImportFormQuestionID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027question_reviewed\u0027, id); else pm.collectionVariables.unset(\u0027question_reviewed\u0027);"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "2. Routing worklist items automatically",
      "item": [
        {
          "name": "Add a Loan Review task to a loan",
          "request": {
            "method": "POST",
            "url": "{{baseUrl}}/api/importform/insert?ImportFormTemplateID={{task_template}}\u0026Object=Loan\u0026ObjectID={{loan_fl}}\u0026EstimatedCompletion=2026-11-07\u0026Output=Json",
            "description": "Creates an open task. Its worklist item is created with it, and the worklist\u0027s assignment matrix picks its team and person."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// qbo responses may be JSON-encoded strings; find the property anywhere in the response.",
                  "let body = pm.response.json(); if (typeof body === \u0027string\u0027) body = JSON.parse(body);",
                  "const find = (o, k) =\u003E { if (o \u0026\u0026 typeof o === \u0027object\u0027) for (const [n, v] of Object.entries(o)) {",
                  "  if (n.toLowerCase() === k.toLowerCase() \u0026\u0026 v !== null \u0026\u0026 typeof v !== \u0027object\u0027) return v;",
                  "  const f = find(v, k); if (f !== undefined) return f; } };",
                  "const id = find(body, \u0027ImportFormID\u0027);",
                  "pm.test(\u0027returns ImportFormID\u0027, () =\u003E pm.expect(id, \u0027ImportFormID\u0027).to.exist);",
                  "if (id) pm.collectionVariables.set(\u0027task\u0027, id); else pm.collectionVariables.unset(\u0027task\u0027);"
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}