Hello once again, please, can someone tell me where the issue is in this forum? I can't retrieve the "status" field even though it exists in the information.
PHP Code:
$vacancesesIds = vacancesesIds;
if (array\length($vacancesesIds) > 0) {
$premierId = array\at($vacancesesIds, 0);
$informations = json\encode(record\fetch('Vacances', $premierId));
output\printLine($informations);
if (array\length($informations, "status")) {
$status = array\get($informations, 'status');
output\printLine("The status associated with the ID is: $status");
} else {
output\printLine("The 'status' field is not present in the information.");
}
} else {
output\printLine("The list of vacationIds is empty.");
}
Comment