$i = 0;
while(
$i < array\length(usersIds),
(
$id = record\create(
'Attendance', 'attendanceDate', date,
"createdById", array\at(usersIds, $i),
'modifiedById', array\at(usersIds, $i),
'test', array\at(usersIds, $i) );
$i = $i + 1;
)
);
This is the code I used in formula script of entity Holiday,
When I update holiday, It runs the formula script,
I have multiple enum for users which is usersids,
I run the loop to create Attendance for those user.
I want to have created by field set to the user by assigning id of user,
same thing work good for modifiedbyid or modified By but It shows logged in user name in created by, Please help
while(
$i < array\length(usersIds),
(
$id = record\create(
'Attendance', 'attendanceDate', date,
"createdById", array\at(usersIds, $i),
'modifiedById', array\at(usersIds, $i),
'test', array\at(usersIds, $i) );
$i = $i + 1;
)
);
This is the code I used in formula script of entity Holiday,
When I update holiday, It runs the formula script,
I have multiple enum for users which is usersids,
I run the loop to create Attendance for those user.
I want to have created by field set to the user by assigning id of user,
same thing work good for modifiedbyid or modified By but It shows logged in user name in created by, Please help
Comment