You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Custom Process - Account not returning any values

Accepted answer
27
Views
1
Comments
edited Jun 8, 2022 12:01PM in General Technical Discussions 1 comment

Content

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?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!