Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

Hide or remove Attach Files From component in knowledge article for interactive experience form

Posted on by 235

Hello Partners,

Is there an OOB way to hide or remove the "Attach Files From" dropdown in KA's knowledge article for interactive experience form? In our app, we have enabled Document Management from the entity level so that all attachments would be maintained in a Sharepoint folder.

pastedimage1668406934469v1.png

Regards,

Jolas365

  • Jolas365 Profile Picture
    Jolas365 235 on at
    RE: Hide or remove Attach Files From component in knowledge article for interactive experience form

    Hello Rahul Dubey ,

    Is it possible to hide it in customization.xml? I created a new solution containing only knowledge article and knowledge article attachment entities, then I exported it.

    Please see below the customization. xml:

    <ImportExportXml xmlns:xsi="">www.w3.org/.../XMLSchema-instance">

    <Entities>

    <Entity>

    <Name LocalizedName="Knowledge Article" OriginalName="">KnowledgeArticle</Name>

    <EntityInfo>

    <entity Name="KnowledgeArticle" unmodified="1">

    <attributes />

    </entity>

    </EntityInfo>

    <RibbonDiffXml>

    <CustomActions />

    <Templates>

    <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>

    </Templates>

    <CommandDefinitions />

    <RuleDefinitions>

    <TabDisplayRules />

    <DisplayRules />

    <EnableRules />

    </RuleDefinitions>

    <LocLabels />

    </RibbonDiffXml>

    </Entity>

    <Entity>

    <Name LocalizedName="Knowledge Article Attachment" OriginalName="Knowledge Article Attachment">msdyn_kbattachment</Name>

    <EntityInfo>

    <entity Name="msdyn_kbattachment" unmodified="1">

    <attributes />

    </entity>

    </EntityInfo>

    <RibbonDiffXml>

    <CustomActions />

    <Templates>

    <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>

    </Templates>

    <CommandDefinitions />

    <RuleDefinitions>

    <TabDisplayRules />

    <DisplayRules />

    <EnableRules />

    </RuleDefinitions>

    <LocLabels />

    </RibbonDiffXml>

    </Entity>

    </Entities>

    <Roles></Roles>

    <Workflows></Workflows>

    <FieldSecurityProfiles></FieldSecurityProfiles>

    <Templates />

    <EntityMaps />

    <EntityRelationships />

    <OrganizationSettings />

    <optionsets />

    <CustomControls />

    <EntityDataProviders />

    <Languages>

    <Language>1033</Language>

    </Languages>

    </ImportExportXml>

    Since I have no prior experience manipulating the xml file, I am not sure how to hide that attachment button custom action in xml file.

    Thanks

    Jolas365

  • Jolas365 Profile Picture
    Jolas365 235 on at
    RE: Hide or remove Attach Files From component in knowledge article for interactive experience form

    Hello Steve Zhao2

    Is it possible to hide it in customization.xml? I created a new solution containing only knowledge article and knowledge article attachment entities, then I exported it.

    Please see below the customization. xml:

    <ImportExportXml xmlns:xsi="">www.w3.org/.../XMLSchema-instance">
    <Entities>
    <Entity>
    <Name LocalizedName="Knowledge Article" OriginalName="">KnowledgeArticle</Name>
    <EntityInfo>
    <entity Name="KnowledgeArticle" unmodified="1">
    <attributes />
    </entity>
    </EntityInfo>
    <RibbonDiffXml>
    <CustomActions />
    <Templates>
    <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
    </Templates>
    <CommandDefinitions />
    <RuleDefinitions>
    <TabDisplayRules />
    <DisplayRules />
    <EnableRules />
    </RuleDefinitions>
    <LocLabels />
    </RibbonDiffXml>
    </Entity>
    <Entity>
    <Name LocalizedName="Knowledge Article Attachment" OriginalName="Knowledge Article Attachment">msdyn_kbattachment</Name>
    <EntityInfo>
    <entity Name="msdyn_kbattachment" unmodified="1">
    <attributes />
    </entity>
    </EntityInfo>
    <RibbonDiffXml>
    <CustomActions />
    <Templates>
    <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
    </Templates>
    <CommandDefinitions />
    <RuleDefinitions>
    <TabDisplayRules />
    <DisplayRules />
    <EnableRules />
    </RuleDefinitions>
    <LocLabels />
    </RibbonDiffXml>
    </Entity>
    </Entities>
    <Roles></Roles>
    <Workflows></Workflows>
    <FieldSecurityProfiles></FieldSecurityProfiles>
    <Templates />
    <EntityMaps />
    <EntityRelationships />
    <OrganizationSettings />
    <optionsets />
    <CustomControls />
    <EntityDataProviders />
    <Languages>
    <Language>1033</Language>
    </Languages>
    </ImportExportXml>

    Since I have no prior experience manipulating the xml file, I am not sure how to hide that attachment button custom action in xml file.

    Thanks

    Jolas365

  • Jolas365 Profile Picture
    Jolas365 235 on at
    RE: Hide or remove Attach Files From component in knowledge article for interactive experience form

    Hello @Steve Zhao,

    Thank you. I tried the same and I also got an error similar to what you got.

    Thanks,

    Jolas365

  • Suggested answer
    Rahuldubey Profile Picture
    Rahuldubey 105 on at
    RE: Hide or remove Attach Files From component in knowledge article for interactive experience form

    You need to export the form xml, where control is added and manually make the changes in XML to disable it , it is not supported way but will work

    something similar:

    1.     

    2. http://tunnik.name/how-to-hide-timeline-control-action-buttons/ 

    hope that helps 

  • Suggested answer
    Steve Zhao2 Profile Picture
    Steve Zhao2 on at
    RE: Hide or remove Attach Files From component in knowledge article for interactive experience form

    Hi Jolas365,

    There is no OOB way to hide this button. Usually, we use Ribbon Workbench to hide button. However, when I add 'Knowledge Article Attachment', I get the following error:

    pastedimage1668418011355v1.png

    You can try this on your side. If not work, you could try to follow this blog:

    Hiding Special buttons from Dynamics 365 CE | HIMBAP

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans