John Kennedy Posted July 24, 2018 Share Posted July 24, 2018 We need to achieve the following: Upon updating client profile, check custom field and, if not blank, call external API with the value as token. The problem is https://developers.whmcs.com/hooks-reference/client/#clientedit has no reference to any custom fields. Does that mean I can't reference custom fields in the ClientEdit function? 0 Quote Link to comment Share on other sites More sharing options...
John Kennedy Posted July 24, 2018 Author Share Posted July 24, 2018 (edited) 2 hours ago, John Kennedy said: https://developers.whmcs.com/hooks-reference/client/#clientedit Edited July 24, 2018 by John Kennedy 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted July 24, 2018 Share Posted July 24, 2018 (edited) It's true that custom fields are not directly available in the hook point in question but don't forget that you can still use userid to query tblcustomfields and tblcustomfieldsvalues to get what you need with a simple query. Then if the given custom field is empty you can run your external API. Edited July 24, 2018 by Kian 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.