Skip to main content

Custom entity mapping not returning 'People' data correctly

  • November 30, 2021
  • 0 replies
  • 746 views

We are creating an integration, using custom entity to allow mapping from Monday board item to our application. One of the fields we want to map is a people field.

The documentation here: https://apps.developer.monday.com/docs/dynamic-mapping#supported-primitive-field-types - seems to indicate that if we map from a ‘people’ field, we should get the data submitted as per:

"people": {
      "identifierType": "email",
      "identifierValue": ["email1@company.com", "email2@company.com"]
    }

we are finding that the data is being submitted to us as:

"ourPeople": {
    "value": {
        "personsAndTeams": [
            {
                "id": 25388021,
                "kind": "person"
            },
            {
                "id": 25387959,
                "kind": "person"
            }
        ],
        "changed_at": "2021-11-29T22:31:30.321Z"
    },
    "bypassPrimitiveConverters": true
}

The field definition we supply have both inbound and outbound field types set as user_emails.

The bypassPrimitiveConverters flag set to true seems to indicate it hasn’t gone though a converter that maybe would give it to us in the expected format.

Can you please confirm if this is a bug on the platform, or if there is something we can do on our end.

Thanks.