microsoft / SharePoint-Embedded-Samples

Welcome to the SharePoint Embedded samples repository. Here you will find client-side and server-side samples to help you get started building on SharePoint Embedded!
MIT License
41 stars 28 forks source link

Power Platform sample: Null ContainerTypeId #69

Open nickjgill opened 3 weeks ago

nickjgill commented 3 weeks ago

I am receiving an error when trying to create a container. Upon selecting create, I am receiving an error that a text value is required as a parameter in the CreateContainer flow. When inspecting the formula I am noticing that property value is blank.

It seems the ContainerTypeId is being populated as a result of GetContainers in the app onstart. It seems the assumption is that a container has been previously created prior to first running the app.

To debug, I entered the GUID for my ContainerTypeId directly in the formula and found that the container creation function as expected.

Instead expecting at least one existing container in the ContainerType prior to using the sampe app, if the ContainerTypeId is populated from the Environment Variable Value, it would enable for the app to be used even when no Containers have yet been created.

I am happy to help and contribute to this project and participate in the adjustment if you are interested and if it makes sense for your team.

Spucelik commented 3 weeks ago

Thank you for the feedback @nickjgill. This would be a great feature addition. I'm also exploring the possibility of creating everything from the PowerApp which would include the Azure App Registration, API Permissions, Certificate, ContentTypeID creation, Container creation and activation. Essentially eliminating the manual process that currently exists.

nickjgill commented 1 week ago

Do you need any help/support for implementing or would this be implemented on your end?

Happy to contribute. If looking for contributors, it might be a bit easier to track changes and handle PRs if the solution (.zip) is unpacked in source control. Submissions could then be submitted against the unpacked solution.