kevin-rutledge of Bema Code
5/8/2020 - 3:25 PM

Create Connection Request

This workflow is triggered by other workflows to create a connection request for the supplied opportunity.

Use Case: An external connection card might have a multi-select of various next steps that each correspond to a connection request. Instead of looping activities for each value to create the connection request. A lava action can loop through the raw value and use workflow activiate to create the connection request passing in the opportunity guid(the multi-select value), the person, and a comment.

Example Triggering Lava:


{
  "Entities": [
    {
      "EntityType": "Rock.Model.WorkflowType",
      "Guid": "9a8954f1-aa3d-460f-88a2-f2462f0e5493",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "IsActive": true,
        "WorkflowIdPrefix": "",
        "Name": "Create Connection Request",
        "Description": "",
        "Order": 0,
        "WorkTerm": "Work",
        "ProcessingIntervalSeconds": 28800,
        "IsPersisted": true,
        "SummaryViewText": "<div class='row'>\n    <div class='col-sm-6'>\n        <dl><dt>Started By</dt><dd>{{ Workflow.InitiatorPersonAlias.Person.FullName }}</dd></dl>\n    </div>\n    <div class='col-sm-6'>\n        <dl><dt>Started On</dt><dd>{{ Workflow.ActivatedDateTime | Date:'MM/dd/yyyy' }} at {{ Workflow.ActivatedDateTime | Date:'hh:mm:ss tt' }}</dd></dl>\n    </div>\n</div>\n\n{% assign attributeList = '' %}\n{% for attribute in Workflow.AttributeValues %}\n    {% if attribute.AttributeIsGridColumn %}\n        {% assign attributeValue = attribute.ValueFormatted %}\n        {% if attributeValue != '' %}\n            {% capture item %}<dt>{{ attribute.AttributeName }}</dt><dd>{{ attributeValue }}</dd>{% endcapture %}\n            {% assign attributeList = attributeList | Append:item %}\n        {% endif %}\n    {% endif %}\n{% endfor %}\n\n{% if attributeList != '' %}\n    <div class='row'>\n        <div class='col-sm-6'>\n            <dl>\n                {{ attributeList }}\n            </dl>\n        </div>\n    </div>\n{% endif %}",
        "NoActionMessage": "This {{ Workflow.WorkflowType.WorkTerm }} does not currently require your attention.",
        "LogRetentionPeriod": null,
        "CompletedWorkflowRetentionPeriod": null,
        "LoggingLevel": 0,
        "IconCssClass": "fa fa-list-ol",
        "CreatedDateTime": "2020-03-18T15:16:06.887",
        "ModifiedDateTime": "2020-05-05T10:13:36.76"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "CategoryId",
          "EntityType": "",
          "Type": 4,
          "Data": "WorkflowCategory"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.WorkflowActivityType",
      "Guid": "4641d8c8-0ad1-4427-8392-6e01a301cae9",
      "GenerateNewGuid": true,
      "Properties": {
        "IsActive": true,
        "Name": "Start",
        "Description": "",
        "IsActivatedWithWorkflow": true,
        "Order": 0,
        "CreatedDateTime": "2020-03-18T15:16:06.98",
        "ModifiedDateTime": "2020-03-18T15:16:06.98"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "WorkflowTypeId",
          "EntityType": "Rock.Model.WorkflowType",
          "Type": 1,
          "Data": "9a8954f1-aa3d-460f-88a2-f2462f0e5493"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.WorkflowActionType",
      "Guid": "f65654ee-405e-44d1-9f8f-59ee7795eaf7",
      "GenerateNewGuid": true,
      "Properties": {
        "Name": "Create Connection Request",
        "Order": 0,
        "IsActionCompletedOnSuccess": true,
        "IsActivityCompletedOnSuccess": false,
        "CriteriaAttributeGuid": null,
        "CriteriaComparisonType": 1,
        "CriteriaValue": "",
        "CreatedDateTime": "2020-03-18T15:16:07.043",
        "ModifiedDateTime": "2020-03-18T15:16:07.043"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "ActivityTypeId",
          "EntityType": "Rock.Model.WorkflowActivityType",
          "Type": 1,
          "Data": "4641d8c8-0ad1-4427-8392-6e01a301cae9"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Workflow.Action.CreateConnectionRequest"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "4ed5bb08-de9b-47df-933c-b352bfe3417a",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "EntityTypeId",
        "Key": "PersonAttribute",
        "Name": "Person Attribute",
        "Description": "The Person attribute that contains the person that connection request should be created for.",
        "Order": 0,
        "IsGridColumn": false,
        "DefaultValue": "",
        "IsMultiValue": false,
        "IsRequired": true,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": null,
        "PostHtml": null,
        "AbbreviatedName": "Person Attribute",
        "CreatedDateTime": "2019-12-20T14:32:41.223",
        "ModifiedDateTime": "2019-12-20T14:32:41.223"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.WorkflowAttributeFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.WorkflowActionType"
        },
        {
          "Property": "EntityTypeQualifierValue",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Workflow.Action.CreateConnectionRequest"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "0e0d2a54-7778-4f88-b475-bbc594cafe9b",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "Key": "attributefieldtypes",
        "Value": "Rock.Field.Types.PersonFieldType"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "4ed5bb08-de9b-47df-933c-b352bfe3417a"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeValue",
      "Guid": "975bd8bf-2197-48c8-a2ac-f258bd55be56",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "Value": "d2b852f3-4f09-44b0-8ae5-e05403b10ca5",
        "CreatedDateTime": "2020-03-18T15:16:07.06",
        "ModifiedDateTime": "2020-03-18T15:16:07.06"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "4ed5bb08-de9b-47df-933c-b352bfe3417a"
        },
        {
          "Property": "EntityId",
          "EntityType": "Rock.Model.WorkflowActionType",
          "Type": 1,
          "Data": "f65654ee-405e-44d1-9f8f-59ee7795eaf7"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "16d714ba-a518-4183-8a10-d494ef04ca8a",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "EntityTypeId",
        "Key": "Order",
        "Name": "Order",
        "Description": "The order that this service should be used (priority)",
        "Order": 0,
        "IsGridColumn": false,
        "DefaultValue": "",
        "IsMultiValue": false,
        "IsRequired": true,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": null,
        "PostHtml": null,
        "AbbreviatedName": "Order",
        "CreatedDateTime": "2019-12-20T14:32:41.27",
        "ModifiedDateTime": "2019-12-20T14:32:41.27"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.IntegerFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.WorkflowActionType"
        },
        {
          "Property": "EntityTypeQualifierValue",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Workflow.Action.CreateConnectionRequest"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "36e3787d-5859-49b6-b8d8-27c2400f661d",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "EntityTypeId",
        "Key": "Active",
        "Name": "Active",
        "Description": "Should Service be used?",
        "Order": 0,
        "IsGridColumn": false,
        "DefaultValue": "False",
        "IsMultiValue": false,
        "IsRequired": false,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": null,
        "PostHtml": null,
        "AbbreviatedName": "Active",
        "CreatedDateTime": "2019-12-20T14:32:41.277",
        "ModifiedDateTime": "2019-12-20T14:32:41.277"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.BooleanFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.WorkflowActionType"
        },
        {
          "Property": "EntityTypeQualifierValue",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Workflow.Action.CreateConnectionRequest"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeValue",
      "Guid": "027db9bd-1c32-491c-875b-0ebd59b0a39f",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "Value": "False",
        "CreatedDateTime": "2020-03-18T15:16:07.06",
        "ModifiedDateTime": "2020-03-18T15:16:07.06"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "36e3787d-5859-49b6-b8d8-27c2400f661d"
        },
        {
          "Property": "EntityId",
          "EntityType": "Rock.Model.WorkflowActionType",
          "Type": 1,
          "Data": "f65654ee-405e-44d1-9f8f-59ee7795eaf7"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "90126b1b-cb43-4eae-b354-038d2a2b9521",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "EntityTypeId",
        "Key": "ConnectionOpportunityAttribute",
        "Name": "Connection Opportunity Attribute",
        "Description": "The attribute that contains the type of connection opportunity to create.",
        "Order": 1,
        "IsGridColumn": false,
        "DefaultValue": "",
        "IsMultiValue": false,
        "IsRequired": true,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": null,
        "PostHtml": null,
        "AbbreviatedName": "Connection Opportunity Attribute",
        "CreatedDateTime": "2019-12-20T14:32:41.23",
        "ModifiedDateTime": "2019-12-20T14:32:41.23"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.WorkflowAttributeFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.WorkflowActionType"
        },
        {
          "Property": "EntityTypeQualifierValue",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Workflow.Action.CreateConnectionRequest"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "b1f88db4-6ea4-4341-8336-d1d886863fab",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "Key": "attributefieldtypes",
        "Value": "Rock.Field.Types.ConnectionOpportunityFieldType"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "90126b1b-cb43-4eae-b354-038d2a2b9521"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeValue",
      "Guid": "58641acc-8e0c-4641-810b-c9dd69f7f984",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "Value": "979e2bc9-9f8f-4129-9430-a500b180a491",
        "CreatedDateTime": "2020-03-18T15:16:07.06",
        "ModifiedDateTime": "2020-03-18T15:16:07.06"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "90126b1b-cb43-4eae-b354-038d2a2b9521"
        },
        {
          "Property": "EntityId",
          "EntityType": "Rock.Model.WorkflowActionType",
          "Type": 1,
          "Data": "f65654ee-405e-44d1-9f8f-59ee7795eaf7"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "2ffb31ee-b17a-4e88-b899-834ba33a6757",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "EntityTypeId",
        "Key": "ConnectionStatusAttribute",
        "Name": "Connection Status Attribute",
        "Description": "The attribute that contains the connection status to use for the new request.",
        "Order": 2,
        "IsGridColumn": false,
        "DefaultValue": "",
        "IsMultiValue": false,
        "IsRequired": false,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": null,
        "PostHtml": null,
        "AbbreviatedName": "Connection Status Attribute",
        "CreatedDateTime": "2019-12-20T14:32:41.237",
        "ModifiedDateTime": "2019-12-20T14:32:41.237"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.WorkflowAttributeFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.WorkflowActionType"
        },
        {
          "Property": "EntityTypeQualifierValue",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Workflow.Action.CreateConnectionRequest"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "5b23ce56-7571-4f4a-b912-7d8e92e55c06",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "Key": "attributefieldtypes",
        "Value": "Rock.Field.Types.ConnectionStatusFieldType"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "2ffb31ee-b17a-4e88-b899-834ba33a6757"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "9739a744-121b-4038-91d2-14957f995b27",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "EntityTypeId",
        "Key": "ConnectionStatus",
        "Name": "Connection Status",
        "Description": "The connection status to use for the new request (when Connection Status Attribute is not specified or invalid). If neither this setting or the Connection Status Attribute setting are set, the default status will be used.",
        "Order": 3,
        "IsGridColumn": false,
        "DefaultValue": "",
        "IsMultiValue": false,
        "IsRequired": false,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": null,
        "PostHtml": null,
        "AbbreviatedName": "Connection Status",
        "CreatedDateTime": "2019-12-20T14:32:41.247",
        "ModifiedDateTime": "2019-12-20T14:32:41.247"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.ConnectionStatusFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.WorkflowActionType"
        },
        {
          "Property": "EntityTypeQualifierValue",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Workflow.Action.CreateConnectionRequest"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "2b5561a0-1667-42be-b505-d8fceec4c4c1",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "EntityTypeId",
        "Key": "CampusAttribute",
        "Name": "Campus Attribute",
        "Description": "An optional attribute that contains the campus to use for the request.",
        "Order": 4,
        "IsGridColumn": false,
        "DefaultValue": "",
        "IsMultiValue": false,
        "IsRequired": false,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": null,
        "PostHtml": null,
        "AbbreviatedName": "Campus Attribute",
        "CreatedDateTime": "2019-12-20T14:32:41.25",
        "ModifiedDateTime": "2019-12-20T14:32:41.25"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.WorkflowAttributeFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.WorkflowActionType"
        },
        {
          "Property": "EntityTypeQualifierValue",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Workflow.Action.CreateConnectionRequest"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "c53de4c2-fa3e-4f94-8e6b-2f7492113784",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "Key": "attributefieldtypes",
        "Value": "Rock.Field.Types.CampusFieldType"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "2b5561a0-1667-42be-b505-d8fceec4c4c1"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeValue",
      "Guid": "2ae74e8b-c628-445a-9684-b2baabc5c866",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "Value": "66fe42b8-708f-48b8-a7e1-5652ffd4e6d0",
        "CreatedDateTime": "2020-03-18T15:16:07.06",
        "ModifiedDateTime": "2020-03-18T15:16:07.06"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "2b5561a0-1667-42be-b505-d8fceec4c4c1"
        },
        {
          "Property": "EntityId",
          "EntityType": "Rock.Model.WorkflowActionType",
          "Type": 1,
          "Data": "f65654ee-405e-44d1-9f8f-59ee7795eaf7"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "9db53985-b36c-476f-ac45-67587e6b452c",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "EntityTypeId",
        "Key": "ConnectionCommentAttribute",
        "Name": "Connection Comment Attribute",
        "Description": "An optional attribute that contains the comment to use for the request.",
        "Order": 5,
        "IsGridColumn": false,
        "DefaultValue": "",
        "IsMultiValue": false,
        "IsRequired": false,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": null,
        "PostHtml": null,
        "AbbreviatedName": "Connection Comment Attribute",
        "CreatedDateTime": "2019-12-20T14:32:41.257",
        "ModifiedDateTime": "2019-12-20T14:32:41.257"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.WorkflowAttributeFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.WorkflowActionType"
        },
        {
          "Property": "EntityTypeQualifierValue",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Workflow.Action.CreateConnectionRequest"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "d5e675f9-0d0e-466c-8624-ff2b4dfa4ee3",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "Key": "attributefieldtypes",
        "Value": "Rock.Field.Types.TextFieldType|Rock.Field.Types.MemoFieldType"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "9db53985-b36c-476f-ac45-67587e6b452c"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeValue",
      "Guid": "0a0417b3-9ac7-4595-9070-afd8062dbdf8",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "Value": "f28b5881-a9cb-4070-8a2a-bd632cb81e4c",
        "CreatedDateTime": "2020-05-04T11:41:50.973",
        "ModifiedDateTime": "2020-05-04T11:41:50.973"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "9db53985-b36c-476f-ac45-67587e6b452c"
        },
        {
          "Property": "EntityId",
          "EntityType": "Rock.Model.WorkflowActionType",
          "Type": 1,
          "Data": "f65654ee-405e-44d1-9f8f-59ee7795eaf7"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "762e4528-a809-40d0-9e08-410400ce027e",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "EntityTypeId",
        "Key": "ConnectionRequestAttribute",
        "Name": "Connection Request Attribute",
        "Description": "An optional connection request attribute to store the request that is created.",
        "Order": 6,
        "IsGridColumn": false,
        "DefaultValue": "",
        "IsMultiValue": false,
        "IsRequired": false,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": null,
        "PostHtml": null,
        "AbbreviatedName": "Connection Request Attribute",
        "CreatedDateTime": "2019-12-20T14:32:41.263",
        "ModifiedDateTime": "2019-12-20T14:32:41.263"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.WorkflowAttributeFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.WorkflowActionType"
        },
        {
          "Property": "EntityTypeQualifierValue",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Workflow.Action.CreateConnectionRequest"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "b2b07a90-f8d4-4e32-b5cb-c8038ddfb6eb",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "Key": "attributefieldtypes",
        "Value": "Rock.Field.Types.ConnectionRequestFieldType"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "762e4528-a809-40d0-9e08-410400ce027e"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "5be1bb26-5ff5-4544-96a8-a306b34cb60c",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "",
        "EntityTypeQualifierValue": "",
        "Key": "FlowChart",
        "Name": "Flow Chart",
        "Description": "",
        "Order": 1020,
        "IsGridColumn": false,
        "DefaultValue": "",
        "IsMultiValue": false,
        "IsRequired": false,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": null,
        "PostHtml": null,
        "AbbreviatedName": "Flow Chart",
        "CreatedDateTime": "2019-11-18T10:50:02.35",
        "ModifiedDateTime": "2019-11-18T10:50:02.35"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.FileFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.WorkflowType"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "6286fb36-5e8f-4aaf-9515-19193621eb4d",
      "GenerateNewGuid": false,
      "Properties": {
        "IsSystem": false,
        "Key": "binaryFileType",
        "Value": "6cbea3b0-e983-40c1-9712-bd3fa2466eae"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "5be1bb26-5ff5-4544-96a8-a306b34cb60c"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "979e2bc9-9f8f-4129-9430-a500b180a491",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "WorkflowTypeId",
        "Key": "ConnectionOpportunity",
        "Name": "Connection Opportunity",
        "Description": "",
        "Order": 0,
        "IsGridColumn": false,
        "DefaultValue": "",
        "IsMultiValue": false,
        "IsRequired": false,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": "",
        "PostHtml": "",
        "AbbreviatedName": "Connection Opportunity",
        "CreatedDateTime": null,
        "ModifiedDateTime": "2020-05-05T10:13:36.823"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.ConnectionOpportunityFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.Workflow"
        },
        {
          "Property": "EntityTypeQualifierValue",
          "EntityType": "Rock.Model.WorkflowType",
          "Type": 1,
          "Data": "9a8954f1-aa3d-460f-88a2-f2462f0e5493"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "d85925b3-e8f5-4f57-9bd5-a64c0a61fd47",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "Key": "connectionTypeFilter",
        "Value": ""
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "979e2bc9-9f8f-4129-9430-a500b180a491"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "e211bc6b-b0d5-49f9-a0d0-eaf3343c80b4",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "Key": "includeInactive",
        "Value": "False"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "979e2bc9-9f8f-4129-9430-a500b180a491"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "d2b852f3-4f09-44b0-8ae5-e05403b10ca5",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "WorkflowTypeId",
        "Key": "Person",
        "Name": "Person",
        "Description": "",
        "Order": 1,
        "IsGridColumn": false,
        "DefaultValue": "",
        "IsMultiValue": false,
        "IsRequired": false,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": "",
        "PostHtml": "",
        "AbbreviatedName": "Person",
        "CreatedDateTime": null,
        "ModifiedDateTime": "2020-05-05T10:13:36.87"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.PersonFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.Workflow"
        },
        {
          "Property": "EntityTypeQualifierValue",
          "EntityType": "Rock.Model.WorkflowType",
          "Type": 1,
          "Data": "9a8954f1-aa3d-460f-88a2-f2462f0e5493"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "39e2468d-25b7-499b-b1b5-d78dc342a120",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "Key": "EnableSelfSelection",
        "Value": "False"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "d2b852f3-4f09-44b0-8ae5-e05403b10ca5"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "66fe42b8-708f-48b8-a7e1-5652ffd4e6d0",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "WorkflowTypeId",
        "Key": "Campus",
        "Name": "Campus",
        "Description": "",
        "Order": 2,
        "IsGridColumn": false,
        "DefaultValue": "",
        "IsMultiValue": false,
        "IsRequired": false,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": "",
        "PostHtml": "",
        "AbbreviatedName": "Campus",
        "CreatedDateTime": null,
        "ModifiedDateTime": "2020-05-05T10:13:36.887"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.CampusFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.Workflow"
        },
        {
          "Property": "EntityTypeQualifierValue",
          "EntityType": "Rock.Model.WorkflowType",
          "Type": 1,
          "Data": "9a8954f1-aa3d-460f-88a2-f2462f0e5493"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "07180088-e9ff-4791-bb88-3ca0b9d7c38e",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "Key": "includeInactive",
        "Value": "False"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "66fe42b8-708f-48b8-a7e1-5652ffd4e6d0"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.Attribute",
      "Guid": "f28b5881-a9cb-4070-8a2a-bd632cb81e4c",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "EntityTypeQualifierColumn": "WorkflowTypeId",
        "Key": "Comment",
        "Name": "Comment",
        "Description": "",
        "Order": 3,
        "IsGridColumn": false,
        "DefaultValue": "",
        "IsMultiValue": false,
        "IsRequired": false,
        "IconCssClass": "",
        "AllowSearch": false,
        "IsIndexEnabled": false,
        "IsAnalytic": false,
        "IsAnalyticHistory": false,
        "IsActive": true,
        "EnableHistory": false,
        "PreHtml": "",
        "PostHtml": "",
        "AbbreviatedName": "Comment",
        "CreatedDateTime": null,
        "ModifiedDateTime": "2020-05-05T10:13:36.933"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "FieldTypeId",
          "EntityType": "Rock.Model.FieldType",
          "Type": 3,
          "Data": "Rock.Field.Types.MemoFieldType"
        },
        {
          "Property": "EntityTypeId",
          "EntityType": "Rock.Model.EntityType",
          "Type": 2,
          "Data": "Rock.Model.Workflow"
        },
        {
          "Property": "EntityTypeQualifierValue",
          "EntityType": "Rock.Model.WorkflowType",
          "Type": 1,
          "Data": "9a8954f1-aa3d-460f-88a2-f2462f0e5493"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "d236e1c3-41f4-4b38-95b5-6205357dcbd0",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "Key": "allowhtml",
        "Value": "False"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "f28b5881-a9cb-4070-8a2a-bd632cb81e4c"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "bd52ddb3-f3b3-4250-b211-d66b1d0373af",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "Key": "maxcharacters",
        "Value": ""
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "f28b5881-a9cb-4070-8a2a-bd632cb81e4c"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "519878c3-b8df-46c2-af1e-0a11ea6497fe",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "Key": "numberofrows",
        "Value": ""
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "f28b5881-a9cb-4070-8a2a-bd632cb81e4c"
        }
      ]
    },
    {
      "EntityType": "Rock.Model.AttributeQualifier",
      "Guid": "43deb72a-6f59-49b8-a9b6-96bae00d7e86",
      "GenerateNewGuid": true,
      "Properties": {
        "IsSystem": false,
        "Key": "showcountdown",
        "Value": "False"
      },
      "Transforms": {},
      "References": [
        {
          "Property": "AttributeId",
          "EntityType": "Rock.Model.Attribute",
          "Type": 1,
          "Data": "f28b5881-a9cb-4070-8a2a-bd632cb81e4c"
        }
      ]
    }
  ],
  "RootEntities": [
    "9a8954f1-aa3d-460f-88a2-f2462f0e5493"
  ]
}
{% assign connectionrequests = Workflow | Attribute:'Mynextsteptodayis','RawValue' | Split:',' %}

{% for item in connectionrequests %}
     {% workflowactivate workflowtype:'33' Person:'{{Workflow | Attribute:'Person','RawValue'}}' ConnectionOpportunity:'{{item}}' Campus:'{{Workflow | Attribute:'Campus','RawValue'}}' %}
     {% endworkflowactivate %}
{% endfor %}