Engagements: Cannot get any Associations


#1

How do I figure out which company, deal, or contact an engagement belongs to?! A LOT (most) of the engagements returned have NO associations. Here is one example:

can’t get associations on engagements from API

Here is a sample response - where are the associations? What am I doing wrong? This is a call to get all engagements:

[86] => Array
    (
        [engagement] => Array
            (
                [id] => 27665260
                [portalId] => 1936297
                [active] => 1
                [createdAt] => 1454003227134
                [lastUpdated] => 1454003227134
                [ownerId] => 8338050
                [type] => NOTE
                [timestamp] => 1442091606000
            )

        [associations] => Array
            (
                [contactIds] => Array
                    (
                    )

                [companyIds] => Array
                    (
                    )

                [dealIds] => Array
                    (
                    )

                [ownerIds] => Array
                    (
                    )

                [workflowIds] => Array
                    (
                    )

                [ticketIds] => Array
                    (
                    )

            )

        [metadata] => Array
            (
                [body] => STRIPPED
            )

    )

#2

Hi @Ibrahim_Mesbah,

Can you reach back out with your portal ID so I can do some testing? Are you seeing engagements in-app that don’t show any association when accessed via the api? There isn’t a way to create engagements without any associations via the UI.


#3

Hi, I’m using the API. HubID: 1936297. I am not sure why no associations come back with the API response…


#4

@Derek_Gervais any ideas?


#5

Hi Derek, still waiting on an answer on this. Thank you


#6

@dadams or @Derek_Gervais would love an answer on this. Need to pull all engagements, and there are a lot of instances where I get NO associations back. Help.

Thanks


#7

Hi, I’m using the API. HubID: 1936297. I am not sure why no associations come back with the API response…


#8

Hi @Ibrahim_Mesbah,

Sorry for the delay on this, thank you for your patience. One thing to note to start is that it’s not possible to create engagements without any associations in-app, which means that the ones we’re seeing with no associations were created via the Engagements API. Do you have an app/integration that creates engagements and syncs contact info? The engagements without associations all appear to include “Contact merged from the following data:

Name: {{ some name }}” in the note body. The issue is likely that these engagements are being created, but not properly associated with any objects.


#9

@Ibrahim_Mesbah exactly what URL are you using to fetch engagements?

(Please don’t include your API key, of course.)


#10

Hi @Matt_Ball,

I’m using this
/engagements/v1/engagements/paged

@Derek_Gervais thanks for the response. We did move over from an older CRM, but we did make sure we associated them with the contacts/companies. In this case, these are newer engagements, so I don’t think that’s the case. I’ll do more testing and confirm. So if an engagement is not associated with an object, is it an orphan in la-la land? Why does the API even allow you to create it?