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 - prev unable to access values

Received Response
17
Views
1
Comments
edited Jun 8, 2022 10:30AM in Agent Desktop 1 comment

Summary

$obj->prev throwing error as "Trying to get property of non-object"

Content

I have checked a similar post,but it didn't solve the issue.If i use isset($obj->prev),its empty.Sample snippet which i used.

 

 public static function apply($runMode, $action, $obj, $cycle)

{

if (isset($obj))
    {
$var=$obj->Name->First;  
$pvar=$obj->prev->Name->First;
if ($var != $pvar) {
...
...
}
}
}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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