
I have an app that is deployed into 3 different environments, each environment is for a different department & each one has its own SharePoint list for storing employee information.
I want to be able to have 1 form in the app that will connect to the appropriate list for the environment, which I have done with environment variables. However, not all environments need exactly the same columns so I was wondering if there was a cleaner way to achieve this without having to make all 3 lists identical & show/hide the unnecessary fields from the form & list as appropriate for the environment
Hi @GaryLowe1892 Environment variable with data source as SP is usually used when the schema (columns and its data type) of list is same across the environment.
As per my understanding, 3 lists identical & show/hide the unnecessary fields from the form is easier option with single form.
Otherwise use 3 different form and show and hide the form itself as per the department.
-----------------------------------------------------------------------------------------------------------------------------
I hope this helps.
Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍
Thanks,
ANB