By ariannovin - Wed Oct 09, 2019 2:15 am
- Wed Oct 09, 2019 2:15 am
#826763
Hi
I have a form that user guest fills out (web entry form) and then it has JavaScript code that creates user for form filler so I want this user(created by JavaScript code) can to view this case in participated cases after login with this account created, for this reason I try to execute trigger code to change user of case but it was not successful. In this trigger, I want to change the user with a fixed user-id temporarily.
Please help me on how to do this.
Thanks.
My trigger is this:
$app_uid=@@APPLICATION;
$c = new Cases();
$aCase = $c->loadCase(@@APPLICATION, @%INDEX);
$aCase['CURRENT_USER_UID']='4551256105c24cd644012b3077759831';
$c->updateCase(@@APPLICATION, $aCase);
I have a form that user guest fills out (web entry form) and then it has JavaScript code that creates user for form filler so I want this user(created by JavaScript code) can to view this case in participated cases after login with this account created, for this reason I try to execute trigger code to change user of case but it was not successful. In this trigger, I want to change the user with a fixed user-id temporarily.
Please help me on how to do this.
Thanks.
My trigger is this:
$app_uid=@@APPLICATION;
$c = new Cases();
$aCase = $c->loadCase(@@APPLICATION, @%INDEX);
$aCase['CURRENT_USER_UID']='4551256105c24cd644012b3077759831';
$c->updateCase(@@APPLICATION, $aCase);