Hi @Gorilla_8 ,
I did a sample for you.
1\ Add a button control and set its onselect property to:
Clear(Col);Set(varNextlink,Blank());Set(varNextlinkTemp,Blank());Set(varSkiptoken,"");With(Office365Users.SearchUserV2({searchTerm:""}),Collect(Col,ThisRecord.value);Set(varNextlink,ThisRecord.'@odata.nextLink');Set(varSkiptoken,Mid(varNextlink,Find("skipToken",varNextlink)+10)));Set(varNextlinkTemp,varNextlink)
2\ Add a toggle control and set its Default property to:
If(varNextlinkTemp=Blank(),true,varNextlinkTemp=varNextlink,false,true)
Set the toggle's OnCheck property to:
Set(varNextlinkTemp,varNextlink)
Set the toggle's OnUncheck property to:
If(varNextlink=Blank()&&varNextlinkTemp=Blank(),Blank(),With(Office365Users.SearchUserV2({searchTerm:"",skipToken:varSkiptoken}),Collect(Col,ThisRecord.value);Set(varSkiptoken,Mid(ThisRecord.'@odata.nextLink',Find("skipToken",ThisRecord.'@odata.nextLink')+10));Set(varNextlink,ThisRecord.'@odata.nextLink')))
Set the toggle's visible property to:
false
Best Regards,
Wearsky