Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/1411 delete only processes first metadata entry #1414

Merged

Conversation

JoernBerkefeld
Copy link
Contributor

@JoernBerkefeld JoernBerkefeld commented Jul 4, 2024

PR details

What changes did you make? (Give an overview)

Further details (optional)

...

Checklist

@JoernBerkefeld JoernBerkefeld added this to the 7.0.4 milestone Jul 4, 2024
@JoernBerkefeld JoernBerkefeld self-assigned this Jul 4, 2024
@JoernBerkefeld JoernBerkefeld linked an issue Jul 4, 2024 that may be closed by this pull request
2 tasks
@github-actions github-actions bot added the bug Something isn't working label Jul 4, 2024
Copy link

github-actions bot commented Jul 4, 2024

Coverage Report

Commit:ecbe8e9
Base: develop@8d98c46

Type Base This PR
Total Statements Coverage  68.58%  68.6%  (+0.02%)
Total Branches Coverage  67.8%  67.88%  (+0.08%)
Total Functions Coverage  79.49%  79.49%  (+0%)
Total Lines Coverage  68.58%  68.6%  (+0.02%)
Details (changed files):
File Statements Branches Functions Lines

@JoernBerkefeld JoernBerkefeld mentioned this pull request Jul 4, 2024
11 tasks
@JoernBerkefeld JoernBerkefeld merged commit 6d08940 into develop Jul 4, 2024
14 checks passed
@JoernBerkefeld JoernBerkefeld deleted the bug/1411-delete-only-processes-first-metadata-entry branch July 4, 2024 17:15
@JoernBerkefeld
Copy link
Contributor Author

Documentation

https://github.com/Accenture/sfmc-devtools/wiki/06.b-~-Standard-Commands/_edit

delete

Command: mcdev delete <business unit> <type> <external key> [--metadata]

Alias: mcdev del

Deletes the given metadata from your server. This needs to be run with care as any data stored in the deleted meta-data will be lost.

Currently supported types: Metadata Type Support

Example:

mcdev delete MyProject/_ParentBU_ dataExtension MyUserTable
mcdev delete MyProject/_ParentBU_ -m dataExtension:MyUserTable -m query:myKey -m query:myKey2

mcdev delete MyProject/_ParentBU_ dataExtensionField MyUserTable.MyFieldName

mcdev del MyProject/_ParentBU_ interaction id:%235cfb1bcb-9cb7-42c9-81de-033943bbc18c/4
mcdev del MyProject/_ParentBU_ interaction id:5cfb1bcb-9cb7-42c9-81de-033943bbc18c/4

Note: For interaction (Journey) only, you can provide a key or an ID. In addition, you have to supply the version you want to delete by appending "/" and then the version. In the above example, we are trying to delete version 4 of ID "5cfb1bcb-9cb7-42c9-81de-033943bbc18c".

Note for nerds: When copying the ID from the URL, you might notice it's prefixed with "%23". If you do copy that together with the Id, mcdev del will automatically filter it for you. It, therefore, works with or without the leading "%23".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] delete only processes first --metadata entry
1 participant