After trying Add a custom app module to the Field Service (Dynamics 365) mobile app | Microsoft Docs and failing multiple times, with error message of bad XML, I starter getting curious.
So here is my solution
- Create a solution and include your Model Driven App
- Export solution and Extract customization.xml file
- Locate the <AppModule> node
- Add the following Xml
<appsettings>
<appsetting uniquename="{name of your App with prefix}_ChannelAvailability">
<value>{name of your App}</value>
<iscustomizable>1</iscustomizable>
<displayname default="App channel availability">
<label description="App channel availability" languagecode="1033" />
</displayname>
<description default="Default Description.">
<label description="Description." languagecode="1033" />
</description>
<settingdefinitionid>
<uniquename>ChannelAvailability</uniquename>
</settingdefinitionid>
</appsetting>
<appsetting uniquename="{name of your App with prefix}_ServerMode">
<value>false</value>
<iscustomizable>1</iscustomizable>
<displayname default="ServerMode">
<label description="ServerMode" languagecode="1033" />
</displayname>
<description default="Specifies the ServerMode.">
<label description="Specifies the ServerMode." languagecode="1033" />
</description>
<settingdefinitionid>
<uniquename>ServerMode</uniquename>
</settingdefinitionid>
</appsetting>
</appsettings>
Sample:
<appsettings>
<appsetting uniquename="mg_FieldServiceMobileApp_ChannelAvailability">
<value>FieldServiceMobileApp</value>
<iscustomizable>1</iscustomizable>
<displayname default="App channel availability">
<label description="App channel availability" languagecode="1033" />
</displayname>
<description default="Default Description.">
<label description="Description." languagecode="1033" />
</description>
<settingdefinitionid>
<uniquename>ChannelAvailability</uniquename>
</settingdefinitionid>
</appsetting>
<appsetting uniquename="mg_FieldServiceMobileApp_ServerMode">
<value>false</value>
<iscustomizable>1</iscustomizable>
<displayname default="ServerMode">
<label description="ServerMode" languagecode="1033" />
</displayname>
<description default="Specifies the ServerMode.">
<label description="Specifies the ServerMode." languagecode="1033" />
</description>
<settingdefinitionid>
<uniquename>ServerMode</uniquename>
</settingdefinitionid>
</appsetting>
</appsettings>
Save the file.
Add the customization.xml file in your zip solution file
Import it back to your environment.
Comments
Post a Comment