24 lines
646 B
JavaScript
24 lines
646 B
JavaScript
// last execution: 2026-03-28 01:00:01
|
|
logAdd(log);
|
|
|
|
$portal_users = record\fetchManyHash('User', 'id, userName, contactId', 'userName', 'asc', 'type=', 'portal');
|
|
$script_praktijken_koppelen = configGet('script-praktijken-koppelen-aan-portal-user');
|
|
|
|
$n = array\length($portal_users);
|
|
$i = 0;
|
|
|
|
logAdd(log, 'info', $n, ' portal users');
|
|
|
|
while($i < $n,
|
|
$u = array\at($portal_users, $i);
|
|
$username = hash\get($u, 'userName');
|
|
|
|
$user_id = hash\get($u, 'id');
|
|
$contact_id = hash\get($u, 'contactId');
|
|
|
|
logAdd(log, 'info', 'user:', $username, ' id:', $user_id);
|
|
|
|
exec($script_praktijken_koppelen);
|
|
|
|
$i = $i + 1;
|
|
); |