APIs & Integrations

ASyncUser
Membro

hs_created_by_user_id is null when I create deal using api

resolver

When I create or Update a deal using API then hs_created_by_user_id field is coming null.

but when I create or Update through UI it is coming in resonse who created or updated that field.

How should I get this through API??

 

Created through API

ASyncUser_0-1711953811968.png

 

Created through UI

ASyncUser_1-1711953865286.png

 

0 Avaliação positiva
1 Solução aceita
ChrisMagtoto
Solução
Membro | Parceiro Platinum
Membro | Parceiro Platinum

hs_created_by_user_id is null when I create deal using api

resolver

It will only be filled if you create the deal using a user not with the API because API is not a user.

Exibir solução no post original

0 Avaliação positiva
3 Respostas 3
ChrisMagtoto
Membro | Parceiro Platinum
Membro | Parceiro Platinum

hs_created_by_user_id is null when I create deal using api

resolver

Hey, you are creating the the deal THROUGH the API and not through a user which explain why it's null. What you can do is reference the source of the deal with "hs_object_source_detail_1" or "hs_object_source" to identify if it was created through the API.

0 Avaliação positiva
ASyncUser
Membro

hs_created_by_user_id is null when I create deal using api

resolver

I want a Id of user or Owner who created that deal

0 Avaliação positiva
ChrisMagtoto
Solução
Membro | Parceiro Platinum
Membro | Parceiro Platinum

hs_created_by_user_id is null when I create deal using api

resolver

It will only be filled if you create the deal using a user not with the API because API is not a user.

0 Avaliação positiva