You will not be able to get the list of people if the user is offline.
However, you can store a cache of the users locally so that when they are offline, you can search through that or use it as a datasource.
You'll want to take a look at the LoadData and SaveData functions to perform this operation.
What you store in the local data will depend on where you are getting the people list from to begin with.
I hope this is helpful for you.
If im understanding you correctly,
ive got to create a collection using Savedata and then load that data using Loaddata on the apps start up?
Could you give me a brief example of how i am able to do this using a person column as its the only thing stopping my apps from being completely offline? As there is no youtube videos and the wiki using twitter as an example does not make sense to me?
So, are you trying then to cache the entire Office 365 directory of people?
That would be the first place to start - determine what you want to cache.
Keep in mind, yes, you can cache all of them, but you're going to have to change functionality of your people picker controls. They will not be able to get their data and you will then need to supply it.
But, first - is this a sub list of names or the entire directory?
So, I'd suggest then potentially creating a list with the people in it that you want. Then load that list and SaveData on it. Otherwise you'd have to query the entire directory and cache it...which you don't want.
The choice of where and how is yours to make.
My recommendation is that you have a SharePoint list with all the names in it that are needed.
Then, OnStart of your App, if your connected, collect that list and SaveData. If not, then LoadData of an existing save. Obviously, the user will have to be connected at some point prior to saving and using a Loaded collection.
After that, since you did this OnStart, the collection would then be available for you for DropDowns or whatever other controls you need to use.
Hope that sheds some more information...if still having issues, post back.
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
Learn how to build the business apps that you need.