I would like to manage snippets with text and Liquid templates into my filesystem as separate files, manage them under source control, and be able to upload the to PowerApps Portal into the entity structure that PowerApps Portal uses.But I have to handle create/update/delete scenarios. A snippet looks like:
<record id="94496219-ddeb-4c10-8d83-524fb7952b8b">
<field name="adx_contentsnippetid" value="94496219-ddeb-4c10-8d83-524fb7952b8b"/>
<field name="adx_contentsnippetlanguageid" value="d9e7ed64-7337-47a8-af6e-35a783c2e2dd" lookupentityname="English" lookupentity="adx_websitelanguage"/>
<field name="adx_display_name" value="Footer"/>
<field name="adx_name" value="Footer"/>
<field name="statecode" value="0"/>
<field name="statuscode" value="1"/>
<field name="adx_type" value="756150001"/>
<field name="adx_value" value="<p><span><b>Copyright </b>© </span>{{ now | date: 'yyyy' }}<span>. All rights <b>reserved</b>.<br>test - test - test ||&nbsp;</span></p>"/>
<field name="adx_websiteid" value="f46b70cc-580b-4f1a-87c3-41deb48eb90d" lookupentityname="Starter Portal" lookupentity="adx_website"/>
</record>
I would like to do it in a way that it does not intervene with snippets managed in the Portal, so for example prefix all snippets managed on the filesystem with _component_, because the snippets I want to create are as a replacement for components to be used in the PowerApps Portal by the citizen developer.I prefer to do it in PowerShell, so developers can easily extend it to their development needs.