Skip to content

Retrieving all Assets from a folder in the Content Builder #1490

Answered by JoernBerkefeld
valoote asked this question in Q&A
Discussion options

You must be logged in to vote

hi @valoote thank you for your patience!
Yes, there is an option: the --like option, to be exact. Try running something like this:

The following will empty your retrieve/cred/bu/asset folder and then ONLY save assets that sit directly in my/folder or a subfolder of my/folder, e.g. my/folder/otherFolder

mcdev r cred/bu asset --like.r__folder_Path "Content Builder/my/folder%"

The following will empty your retrieve/cred/bu/asset folder and then ONLY save assets that sit in a subfolder of my/folder, e.g. my/folder/otherFolder. Note the trailing forward-slash which makes sure nothing directly in my/folder will be saved to your disk

mcdev r cred/bu asset --like.r__folder_Path "Content Builder/…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JoernBerkefeld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants