pnp / vscode-viva

With the SharePoint Framework Toolkit extension, you can create and manage your SharePoint Framework solutions on your tenant. All actions you need to perform during the development flow are at your fingertips.
https://marketplace.visualstudio.com/items?itemName=m365pnp.viva-connections-toolkit
MIT License
34 stars 14 forks source link

💡 [Feature]: Create model/service based on SharePoint list data #232

Open mkm17 opened 1 month ago

mkm17 commented 1 month ago

🎯 Aim of the feature

Some time ago, I came across a helpful package that makes generating elements in SPFx projects easier. For instance, you can create a model based on data retrieved from a SharePoint list. Perhaps this functionality could be added to the SharePoint Framework extension using the mentioned package or custom code.

I am not sure if the whole mapping used in the package is needed, maybe something simpler would be enough.

Some references: https://www.youtube.com/watch?v=urhHe_NlYvI&t=446s&ab_channel=Microsoft365%26PowerPlatformCommunity https://spfx-app.dev/spfx-sharepoint-development-quickly-generate-list-based-models-using-a-single-command https://github.com/SPFxAppDev/spfxcli

I am also adding the author @SPFxAppDev for the discussion.

📷 Images (if possible) with expected result

No response

🤔 Additional remarks or comments

No response

Adam-it commented 1 month ago

Thanks @mkm17 for suggesting a new idea 👍. You Rock 🤩. Besides generating a model based on a response what other functionalities you consider helpful?

SPFxAppDev commented 1 month ago

Hi everyone and thank you, @mkm17, for including me in the discussion and referring to my solution. To be honest, the mapping package is the most useful feature in my opinion. Because the model is generated with "pretty" names and you can convert the "raw" JSON from the REST API to the model in seconds or vice versa. BTW: The mapper package is NO longer in the beta phase.

@Adam-it Let me know if I can help or give more input or anything else!

mkm17 commented 1 month ago

@Adam-it I saw that in the package there is also a possibility to create also a basic service to communicate with a SharePoint list. That also would speed-up the development process. @SPFxAppDev Maybe you see any functionalities to add/merge from the package?