Topic by Lydia C
I’m writing a custom process where I have to get the values of a user (account) to perform some validations. I’m using the same code I used in previous occasions in the customer portal to get the account object, but in the custom process is only returning the ID or nothing at all. This is the code I’m using:
$user = RNCPHP\Account::fetch(6); print_r($user);
The value I use in the fetch is the account ID as I can see it in the Staff Management section in the agent desktop (console).
Is something incorrect in my code? Is possible get the account object in a custom process?
Thanks.