Web Services Connector missing attributes on CREATE

Hi,
What am I missing? Web services connector, CREATE profile, the body is:

{
    "meta": {
        "CorrelationId": "9936a5a2-0ddc-4f00-b151-2f767579bd54",
        "MessageTimeStamp": "$plan.timestamp$",
        "LastUpdatedTimeStamp": "$plan.timestamp$"
    },
    "Data": {
        "UpdateType": "Create",
        "Status": "$plan.cloudLifecycleState$",
        "FirstName": "$plan.firstname$",
        "LastName": "$plan.lastname$",
        "Username": "$plan.email$",
        "EmailAddress": "$plan.email$",
        "Attributes": {
            "bromcomUserId": "$plan.bromcomUserId$",
            "CurrentSchool": "$plan.currentDeni$",
            "GuestSchools": "$plan.guestSchools$",
            "RoleType": "$plan.roles$",
            "SchoolType": "$plan.schoolType$",
            "SchoolYear": "$plan.schoolYear$",
            "SpsmsId": "999",
            "UserType": "$plan.userType$"
        }
    }
}

But its not parsing the plan attributes into the body. This is what is getting sent to webhook.site:

{
  "meta": {
    "CorrelationId": "9936a5a2-0ddc-4f00-b151-2f767579bd54"
  },
  "Data": {
    "UpdateType": "Create",
    "Attributes": {
      "SpsmsId": "999"
    }
  }
}

The static values are going through fine, but none of the variables

Hello @phil_awlings,

Can you share with us the create provisioning template you have in the source? you should have filled all that data.

Regards,
Pablo

{
    "name": "",
    "description": null,
    "usageType": "CREATE",
    "fields": [
        {
            "name": "CurrentSchool",
            "transform": {
                "type": "identityAttribute",
                "attributes": {
                    "name": "currentDeni"
                }
            },
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        },
        {
            "name": "EmailAddress",
            "transform": {
                "type": "identityAttribute",
                "attributes": {
                    "name": "email"
                }
            },
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        },
        {
            "name": "FirstName",
            "transform": {
                "type": "identityAttribute",
                "attributes": {
                    "name": "firstname"
                }
            },
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        },
        {
            "name": "LastName",
            "transform": {
                "type": "identityAttribute",
                "attributes": {
                    "name": "lastname"
                }
            },
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        },
        {
            "name": "RoleType",
            "transform": {
                "type": "identityAttribute",
                "attributes": {
                    "name": "roles"
                }
            },
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        },
        {
            "name": "SchoolType",
            "transform": {
                "type": "identityAttribute",
                "attributes": {
                    "name": "schoolType"
                }
            },
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        },
        {
            "name": "SchoolYear",
            "transform": {
                "type": "identityAttribute",
                "attributes": {
                    "name": "schoolYear"
                }
            },
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        },
        {
            "name": "Status",
            "transform": {
                "type": "identityAttribute",
                "attributes": {
                    "name": "cloudLifecycleState"
                }
            },
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        },
        {
            "name": "Username",
            "transform": {
                "type": "identityAttribute",
                "attributes": {
                    "name": "email"
                }
            },
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        },
        {
            "name": "UserType",
            "transform": {
                "type": "identityAttribute",
                "attributes": {
                    "name": "userType"
                }
            },
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        }
    ]
}

Hello Phil, i am not 100% sure, but it can be because the plan attributes are case sensitive, did you test it trying with the case sensitive?
Regards,Pablo

1 Like

Iā€™m 99% confident that they are case sensitive, ā€˜lastnameā€™ and ā€˜firstnameā€™ are definitely correct to the mapping

If I see your body and provisioning policy,

ā€œFirstNameā€: ā€œ$plan.firstname$ā€,

{
ā€œnameā€: ā€œFirstNameā€,
ā€œtransformā€: {
ā€œtypeā€: ā€œidentityAttributeā€,
ā€œattributesā€: {
ā€œnameā€: ā€œfirstnameā€
}
},
ā€œattributesā€: {},
ā€œisRequiredā€: false,
ā€œtypeā€: ā€œstringā€,
ā€œisMultiValuedā€: false
}

The case is not matching, attribute name in provisioning policy form is what you get in Provisioning plan.

2 Likes

The names are different.
if you put FirstName in the body need to be $plan.FirstName$.

Thats it.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.