dynamics-crmmicrosoft-dynamicsdynamics-365

Uploading Word Document Templates


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?


Solution

  • After raising a support ticket with Microsoft about the button being missing, I was told it is a known bug with no expected fix date yet.

    the issue you are having about being unable to upload Word documents it is a Bug, and the Product Team is currently working on it, the workaround is to have one record from the list selected for the option to appear. But there is no ETA at the moment of when it will be over due to some changes that will need to be deployed globally

    No Upload Button Upload Button