AnsweredAssumed Answered

Custom action not recognized when called from Aikau menu item

Question asked by theobroma on Dec 15, 2017
Latest reply on Dec 19, 2017 by theobroma

I have created new "Selected items" drop down item in faceted search page. When I click on the item it should call action which I have created as a custom action in a document library. Unfortunately it does not work. Action is not called. I tried to place Alfresco predefined action "download as a Zip" and it works. Below you can find code related to this functionality:



<config evaluator="string-compare" condition="DocumentLibrary">
        <action type="action-link"
id="myAction" />
<config evaluator="string-compare" condition="DocLibCustom" replace="true">
            <js src="/components/documentlibrary/custom-actions.js" />



var itemsAction = widgetUtils.findObject(model.jsonModel, "id", "SELECTED_ITEMS_ACTIONS_GROUP");
if (itemsAction != null) {
        id: "myAction",
        name: "alfresco/documentlibrary/AlfDocumentActionMenuItem",
        config: {
            label: "button",
            type: "action-link",
            permission: "",
            asset: "",
            href: "",
            hasAspect: "",
            notAspect: "",
            publishPayload: {
                action: "myAction"


custom.actions.js"registerAction", {
    actionName: "myAction",
    fn: function custom_myAction(record)


myAction is called from Document library and it works perfect. What can I do to make Alfresco recognize myAction in faceted-search too?