pnp / spfx-reference-scenarios

Work repo for the SPFx in Teams samples
48 stars 40 forks source link

ace-teams-roomreservation documentation #33

Closed pankajsurti closed 5 months ago

pankajsurti commented 1 year ago

I was able to deploy the package on SPFX and Personal Teams Tab. I want to create a sample roomresconfig.json file. As per the following line 82 rr.service.ts file. I am not sure where do I add the JSON file. this._currentConfig = await web.getFileByServerRelativeUrl(/SiteAssets/${this.CONFIG_FOLDER}/${this.CONFIG_FILE_NAME}).getJSON();

Which site's root site collection? As per the personal tab where is the site? I understand for the Teams Tab the Site is present.

+++++++++++++++++++++++++++++ This application uses demo data for the personal app that is stored in a JSON file in the root site collection Site Assets library in a folder called RoomReservation. +++++++++++++++++++++++++++++

dcashpeterson commented 1 year ago

@pankajsurti The app is looking for the file that is in the SiteAssets folder in the root SharePoint site (e.g. yourtenant.sharepoint.com. This code only works as a personal app so there needed to be a place where all users could access the configuration and that was the choice we made for the sample. You can change that in the code if you like but you would need to update the service layer to point to a different location. I hope that helps.

dcashpeterson commented 5 months ago

Closed and answered