Skip to content

sprignaturemoves

the personal blog of adam spriggs

  • Home
  • About Me
  • Salesforce Marketing Cloud
    • Known Issues
    • AMPscript Syntax Highlighter for Sublime Text
    • All SFMC Posts
    • AMPScript
    • API
    • Automation
    • Journey Builder
    • Server-side JavaScript
    • SQL Queries
  • The AMPscript Guide
  • Coffee
    • Coffee Prep
    • Empty Coffee Bags
  • Dadverbs

Traversing folders with SSJS

Posted on2025-03-122025-03-12 CategoriesSalesforce Marketing Cloud, Server-side JavaScript

If you ever need to start at a folder and do something in each of its child folders, here’s a recursive function that I developed:

Update the root folder’s category ID on line 33 and then add your operation on line 22.

Have you ever needed to do something like this? I’d love to hear about your use-case in the comments.

The Sixtyforgan

Posted on2025-02-04 Categoriesmusic

OK Go – A Stone Only Rolls Downhill

Posted on2025-01-17 Categoriesmusic

The Rain Kept Falling in Love

Posted on2024-11-18 Categoriesmusic

Mike Roe, 77s

Street Organ Thunderstruck

Posted on2024-11-06 Categoriesmusic, pretty darn cool

via kojikojimoheji.com/

Posts navigation

Older posts
Search
Post Categories

Where to Find Me

  • BitBucket
  • GitHub
  • LinkedIn
  • StackExchange

Popular Posts

  • AMPScript Lookup Examples
  • Retrieving and Starting an Automation with SSJS
  • Journey Logging using Update Contact
  • One-Click Unsubscribe with AMPscript
  • Troubleshooting Queries in SFMC
  • Updating Salesforce Objects with Server-Side JavaScript
  • Determining Business Unit Subscriber Status
  • Coupon Claiming in AMPscript
  • Timezones in SFMC
  • Geolocation in the Salesforce Marketing Cloud

Favorite Things

  • Bucks
  • Crema.co
  • PK Grills
  • The AMPscript Guide
United States Flag
06.24.22
FMD

Donate coffee

Copyright © 2025 sprignaturemoves. All Rights Reserved.
Catch Starter Child Theme by Adam Spriggs
Scroll Up