APIs & Integrations

sjoyous
Member

hs_communication_body issue

SOLVE

I am using the communication API to get all whats app messages.

https://api.hubapi.com/crm/v3/objects/communications/search

with below filter 

{
                    "propertyName": "hs_communication_channel_type",                    
                    "value": "WHATS_APP",
                    "operator": "EQ"
                }
and below property list.
 "properties": [
        "text",
        "hs_communication_body",
        "hs_communication_channel_type",
        "hs_communication_logged_from",
        "hubspot_owner_id"
    ]
I am getting all whats app messages but didn't get the body of the whats app message, which is stored in "hs_communication_body".
 
I didn't get the value when "hs_communication_logged_from" is set to "CONVERSATIONS", but I get the value for same when  "hs_communication_logged_from" is set to "CRM".
 
Can someone please look into this and let me know if I am doing any mistake here. 

 

 

0 Upvotes
1 Accepted solution
HubSpot_Corey
Solution
Top Contributor

hs_communication_body issue

SOLVE

Hi @sjoyous and thanks for the tag @BérangèreL 

Apologies for the slow reply, hopefully you found the fix in my absence. However, it just appears as though you are missing your filter groups in the body of your request.
It should be a post through to the listed api with the body of:

{
    "properties": [
        "text",
        "hs_communication_body",
        "hs_communication_channel_type",
        "hs_communication_logged_from",
        "hubspot_owner_id"
    ],
    "filterGroups": [
        {
            "filters": [
                {
                    "propertyName": "hs_communication_channel_type",
                    "operator": "EQ",
                    "value": "WHATS_APP"
                }
            ]
        }
    ]
}



View solution in original post

0 Upvotes
5 Replies 5
HubSpot_Corey
Solution
Top Contributor

hs_communication_body issue

SOLVE

Hi @sjoyous and thanks for the tag @BérangèreL 

Apologies for the slow reply, hopefully you found the fix in my absence. However, it just appears as though you are missing your filter groups in the body of your request.
It should be a post through to the listed api with the body of:

{
    "properties": [
        "text",
        "hs_communication_body",
        "hs_communication_channel_type",
        "hs_communication_logged_from",
        "hubspot_owner_id"
    ],
    "filterGroups": [
        {
            "filters": [
                {
                    "propertyName": "hs_communication_channel_type",
                    "operator": "EQ",
                    "value": "WHATS_APP"
                }
            ]
        }
    ]
}



0 Upvotes
sjoyous
Member

hs_communication_body issue

SOLVE

hi @HubSpot_Corey ,

Thanks for the reply.

Yes, API is post only.

Anyway, we got the solution and it's up and running now. 

BérangèreL
Community Manager
Community Manager

hs_communication_body issue

SOLVE

Hi @sjoyous and welcome to the Community!
We are so glad to have you here!

Thanks for asking the Community!

I'd like to invite a couple of subject matter experts to this conversation: Hi @zach_threadint, @Bortami and @HubSpot_Corey do you have suggestions to help @sjoyous, please?

Thank you so much and have a lovely day!

Best,
Bérangère


Saviez-vous que la Communauté est disponible en Français ?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres !

Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings!


0 Upvotes
sjoyous
Member

hs_communication_body issue

SOLVE

Thanks Berangere,

 

I am a bit stuck here with the above issue and would really appreciate a swift response as it delays my production release. 

0 Upvotes
BérangèreL
Community Manager
Community Manager

hs_communication_body issue

SOLVE

Hi @sjoyous, thanks for your patience!

Let's check with our Top Expert: Hi @jpsanchez could you share your experience with this API to help @sjoyous, please?

If you are still stuck @sjoyous, I would recommend connecting with HubSpot Technical Support, as Support is included in your subscription and they will be able to provide real-time assistance for this matter, including hopping on a screenshare or checking with our Internal Teams if necessary.

Thanks a lot and have a wonderful weekend!

Best,
Bérangère


Saviez-vous que la Communauté est disponible en Français ?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres !

Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings!


0 Upvotes