In Dynamics I am going to Advanced Settings > Templates > Document Templates to upload templates. But I don't have a button to upload Word template (there is one in the make.powerapps command editor but it is a legacy button and for an unknown reason is not being showed. So I am trying to make a new button to do this, I have found the this.runWordTemplate = function (commandProperties, entityTypeCode, gridControl, selectedRecords)
function in Main_system_library.js
using the old legacy button I have populated entityTypeCode, gridControl, selectedRecords with SelectedEntityTypeCode, SelectedControl and SelectedControlSelectedItemRecords respectively but I don't know what to set for commandProperties, the legacy button had this as a blank (presumably null) but there is no blank option, and none of the available options are remotely like commandProperties.
The options are;
String, Boolean, Number, FirstPrimaryItemId, FirstSelectedItemId, OrgLcid, OrgName, PrimaryControl, PrimaryControlId, PrimaryEntityTypeCode, PrimaryEntityTypeName, PrimaryItemIds, SelectedControl, SelectedControlAllItemCount, SelectedControlAllItemIds, SelectedControlSelectedItemCount, SelectedControlSelectedItemIds, SelectedControlSelectedItemReferences, SelectedControlUnselectedItemCount, SelectedControlUnselectedItemIds, SelectedControlUnselectedItemReferences, SelectedEmtityTypeCode, SelectedEntiyTypeName, UserLcid
I have tried setting an empty string as the parameter, and PrimaryControl and PrimaryControlId but the method is not being called (its showing nothing in dev tools).
How do I add the expected commandProperties to this?