AEM 6420 - Sync Specific Folders to Scene7 in AEM Dynamic Media Scene7 (DMS7)


By default, the Scene7 step of DAM Update Asset workflow syncs all assets uploaded to AEM, to Scene 7, in DMS7 mode (sling run mode dynamicmedia_scene7)

If the requirement is syncing specific folders, this post explains how-to, by adjusting the DAM Update Asset Workflow

For AEM 65 check this post

Another way of do this is by removing Scene7 step from default DAM Update Asset workflow, creating a DAM update workflow with Scene7 step having workflow launcher path condition set to e.g. /content/dam/my_dm_sync_folder(/.*/)renditions/original (where my_dm_sync_folder is the folder in AEM with assets synced to Scene7)

Demo | Package Install | Github


1) Edit the DAM Update Asset workflow to add an OR Split step, move the Scene7 step to branch 1 and add a No Operation step in branch 2

2) Add the following script in branch 1 tab of OR Split; add the folder paths in SYNC_PATHS variable, which should be kept in sync with Scene7 (so the images and videos uploaded to these folders ONLY are synced to Scene7)

function check() {
    var SYNC_PATHS = new;

    //add the paths you'd like to sync to scene7

    var doSync = false;

    try {
        var path = workflowData.getPayload().toString();

        if (path === null) {
            return doSync;

        path = path.replaceAll("/jcr:content/renditions/original", "");"Checking if asset should be uploaded to Scene7 - " + path);

        var payloadNode = workflowSession.getSession().getNode(path);

        if (payloadNode === null) {
            return doSync;

        doSync = SYNC_PATHS.contains(payloadNode.getParent().getPath());

        if (doSync === false) {
  "Skipping upload to Scene7 - " + path);
        } else {
  "Uploading to Scene7 - " + path);
    } catch (e) {
        doSync = false;

    return doSync;

3) For the branch 2 tab (no operation) add the following script

function check(){
      return true;

4) Sync the workflow to copy the model from /conf/global/settings/workflow/models/dam/update_asset to /var/workflow/models/dam/update_asset

5) A bug in 64 SP2 causes the workflow nodes to get reversed as below during workflow sync (fixed in later versions), so workaround it in /var/workflow/models/dam/update_asset by changing the node xml and pushing to CRX



6) Upload an asset to folder with Scene7 sync allowed, you can see the jcr:content/metadata@dam:scene7ID  in asset metadata, confirming the upload to Scene7

7) Assets in folders that are skipped by OR-split do not have  jcr:content/metadata@dam:scene7ID  in asset metadata and are not uploaded to Scene7


  1. Nice blog with Amazing information .. love to read about this.
    Awaiting for your new post
    We at bring to you the most significant Management assignment help writing service at the best cost. With long stretches of understanding we are prepared to give online assignment help over the globe.You will be guided here with a portion of the information of Management assignment which could assist you in deciding writing a Manageent assignment. Nonetheless, we unequivocally prescribe you to benefit Leadership Assignment help from our specialist to find out about marketing and its scope.We also provide Macro Economics Assignment Help from our experts.

  2. Select the option of Assignment Help when you don’t want to take the stress of writing your assignments or homework. This option allows you to get experts’ assistance for composing your academic papers even in adverse conditions. You can take the online help of academic writers at any time using these kinds of services. If you can’t pay attention to homework writing or don’t have enough time, this option will help you a lot. Handle everything for composing your papers even in adverse conditions via online academic writing services.
    Assignment Helper | Assignments Help | Help with assignment

  3. Such a wonderful information blog post on this topic provides assignment service at affordable cost in a wide range of subject areas for all grade levels, we are already trusted by thousands of students who struggle to write their academic papers and also by those students who simply want Performance Management Assignment Help to save their time and make life easy.

  4. Thanks for sharing post.
    Hi, I am Alexkim, I am working as senior translator at I have 5 years of experience in this field. If you have any problems related to language translation of personal documents like birth certificate, marriage certificate, passport, immigration certificate then you must hire Language translation services Singapore or email me

  5. M learning commonly know as mobile learning. Utilizing mobile learning services provided by Acadecraft, could be possible one of your best choice, as we just not deliver service but absolute satisfaction to our clients.

  6. Global translation help UAE is superior translation company in united Arab Emirates whose fully capable team of high experienced translators deliver the passport translation into various languages pairs like Malay to English, Thai to korean,chinese to Arabic and many more.

  7. Get quotes for kids, students, short stories for inspirational, motivational quotes for men, thought for the day etc. motivational quotes for men

  8. Submission dates are knocking at your door? Students can now avail Last Minute Assignment Help Online from SourceEssay. We have a team of highly qualified professionals who assist students in writing high quality assignments keeping the university guidelines in mind. We make sure the assignments are proofread by subject matter experts to ensure they are non-plagiarized, flawless and delivered to students within their deadlines.
    Thesis Assignment Help
    Plagiarism Checker Tool
    Plagiarism Checker
    Plagiarism Checker Free
    Clinical Reasoning Cycle
    Teel Paragraph Structure
    Dissertation Vs Thesis
    Assignment Help Assistance
    My Assignment Help
    Do My Assignment
    Write My Essay For Me
    Essay writing Service Australia

  9. Want to know what are the current trends of india? Get all the latest info and news stories in brief about viral news in India. All your news at one place. Know what's happening in India, in Bollywood, viral news in india and latest Indian web series. viral news in hindi