This then would be probably something like:
ClearCollect(
tempCollection,
DTAdmins
);
ForAll(
tempCollection As _item,
With(
{
_Lookup: LookUp(
DTAdmins,
ID = _item.ID
),
_UpdateLeaveDate: LookUp(DTAdmins,
ID = _item.ID + 1
)
},
If(
!IsBlank(_Lookup),
Patch(
DTAdmins,
_Lookup,
{
Created:_Lookup.Created,
LeaveDate: _UpdateLeaveDate.StartDate
}
)
)
)
)
_____________________________________________________________________________________
Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!