Jump to content

How can I get the customField data while using the ClientAdd hook?


ramf

Recommended Posts

Hi,
When I'm creating a client I'm using the ClientAdd hook so that any information added when creating the client will be sent to another system as a webhook.

I can do it without a problem and everything is working well - except getting the client custom fields information.
I know that I can call this information separately with a nother get command - but this is not what I'm looking for. 

In the hook documentation it is only mentioned that the customFields Variable is a array Type.

Can someone give me a code example to show how can I incorporate the custom fields information that got added when creating the client?

This is the code I'm using now - sorry this is a picture since I'm getting 403 Forbidden when trying to add it directly to the ticket....

image.png.841db33d3c4432f9d1d73e268b5919fc.png

 

The only part missing is the information added to the  custom fields during the client creation and got triggered with the ClientAdd hook.

Thanks!
Ram

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated