Custom Process - prev unable to access values
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) {
...
...
}
}
}
Tagged:
0