Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Adding Create button in Asset Search console


Level 4

Hi Team,


We overlay omnisearch header under /apps[/apps/granite/omnisearch/content/metadata/asset/actions/selection] and copied create button from /libs [/libs/dam/gui/content/assets/jcr:content/actions/selection/create]. Was able to get create button, but functionality didn't work as expected, have updated couple of js files but no luck. Is this the right way to achieve this functionality?


We are looking to achieve workflow trigger functionality in assets search results console.


Couple of other options:

1. Overlay the create button

2. Extend the create button [didn't work as expected]

3. Create custom button with custom model and functionality [Final Option]


Thanks in advance.


Screen Shot 2020-08-19 at 11.23.07 AM.png

3 Replies


Community Advisor

Create Workflow option is available in latest AEMaaCS SDK.



If a user has Read access on the Workflow Models, he should be able to trigger the workflows. Here is the rendercondition at http://localhost:4502/libs/granite/omnisearch/content/metadata/asset/actions/selection/create/items/...

"jcr:primaryType": "nt:unstructured",
"action": "foundation.dialog",
"granite:class": "cq-dam-omnisearch-workflow",
"granite:rel": "cq-damadmin-admin-actions-createworkflow",
"icon": "workflow",
"text": "Workflow",
"activeSelectionCount": "multiple",
"sling:resourceType": "granite/ui/components/coral/foundation/collection/actionlink",
"data": {
"jcr:primaryType": "nt:unstructured",
"src.uritemplate": "/mnt/overlay/dam/gui/content/commons/createworkflowdialog.html",
"nesting": "hide"
"granite:data": {
"jcr:primaryType": "nt:unstructured",
"trackingElement": "assets-omnisearch-results-create-workflow",
"multipleWorkflowLimit": 15
"granite:rendercondition": {
"jcr:primaryType": "nt:unstructured",
"sling:resourceType": "cq/gui/components/renderconditions/canreadworkflowmodels"

Aanchal Sikka


Level 4

Does this option available only in AEMaaCS SDK ? Whats the alternate for other versions?



@Teja_G Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni