Page 1 of 1

Case tracking in participated cases with dynamic created user in web entry form

Posted: Wed Oct 09, 2019 2:15 am
by ariannovin
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:
[email protected]@APPLICATION;
$c = new Cases();
$aCase = $c->loadCase(@@APPLICATION, @%INDEX);
$aCase['CURRENT_USER_UID']='4551256105c24cd644012b3077759831';
$c->updateCase(@@APPLICATION, $aCase);

Re: Case tracking in participated cases with dynamic created user in web entry form

Posted: Sun Oct 20, 2019 3:29 am
by programerboy
Hi,
You can submit a copy of the Web Input Form to a newly created user (Create a new task with the same web entry form in view mode), Therefore the created user can be in the whole of process and you don't change the guest user