mcdev 4.1.2 → 4.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,6 +39,7 @@ body:
39
39
  label: Version
40
40
  description: What version of our software are you running? (mcdev --version)
41
41
  options:
42
+ - 4.1.3
42
43
  - 4.1.2
43
44
  - 4.1.1
44
45
  - 4.1.0
@@ -1,15 +1,15 @@
1
- {
2
- // Use IntelliSense to learn about possible attributes.
3
- // Hover to view descriptions of existing attributes.
4
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
- "version": "0.2.0",
6
- "configurations": [
7
- {
8
- "type": "node",
9
- "request": "launch",
10
- "name": "Launch Program",
11
- "program": "${workspaceFolder}\\lib\\index.js",
12
- "args": ["retrieve", "Dev"]
13
- }
14
- ]
15
- }
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "type": "node",
9
+ "request": "launch",
10
+ "name": "Launch Program",
11
+ "program": "${workspaceFolder}\\lib\\index.js",
12
+ "args": ["retrieve", "Dev"]
13
+ }
14
+ ]
15
+ }
package/README.md CHANGED
@@ -123,7 +123,7 @@ If you experience issues installing Accenture SFMC DevTools, please check out th
123
123
  1. Install Accenture SFMC DevTools by running `npm install -g mcdev` (prefix with `sudo` on MacOS)
124
124
  - If you get an error, please see the below troubleshooting section.
125
125
 
126
- When completed run `mcdev --version` and it will show you which version you installed (e.g. `4.1.2`).
126
+ When completed run `mcdev --version` and it will show you which version you installed (e.g. `4.1.3`).
127
127
 
128
128
  > **_Side note for proud nerds_:**
129
129
  >
@@ -277,10 +277,10 @@ _Note: Regardless of which tag or branch you install_
277
277
  **Install specific version (using a version tag on npm):**
278
278
 
279
279
  ```bash
280
- npm install -g mcdev@4.1.2
280
+ npm install -g mcdev@4.1.3
281
281
  ```
282
282
 
283
- **Warning**: When you used the above method to install Accenture SFMC DevTools for a specific version or tag, trying to [update Accenture SFMC DevTools](#updating-mcdev) might not download the most recently published official version but instead stay on the version or branch you previously selected (in the above examples: develop, 4.1.2)!
283
+ **Warning**: When you used the above method to install Accenture SFMC DevTools for a specific version or tag, trying to [update Accenture SFMC DevTools](#updating-mcdev) might not download the most recently published official version but instead stay on the version or branch you previously selected (in the above examples: develop, 4.1.3)!
284
284
 
285
285
  > **Note**: The version is currently _not_ updated on the developer branch until a new release is published. Hence, you will not see a change if you run `mcdev --version`.
286
286
 
@@ -1493,7 +1493,7 @@ Assuming you cloned Accenture SFMC DevTools into `C:\repos\sfmc-devtools\` (or `
1493
1493
 
1494
1494
  This should tell npm to create a symlink to your cloned local directoty, allowing you to see updates you make in your mcdev repo instantly.
1495
1495
 
1496
- To test your new **global** developer setup, run `mcdev --version` in CLI which should return the current version (e.g. `4.1.2`). Then, go into your mcdev repo and update the version with the suffix `-dev`, e.g. to `4.1.2-dev` and then run `mcdev --version` again to verify that your change propagates instantly.
1496
+ To test your new **global** developer setup, run `mcdev --version` in CLI which should return the current version (e.g. `4.1.3`). Then, go into your mcdev repo and update the version with the suffix `-dev`, e.g. to `4.1.3-dev` and then run `mcdev --version` again to verify that your change propagates instantly.
1497
1497
 
1498
1498
  > **Not recommended:** Alternatively, you can install it locally only by opening a terminal in your project directory and executing `npm install --save-dev "C:\repos\sfmc-devtools"`
1499
1499
  > To run the local version you need to prepend "npx" before your commands, e.g. `npx mcdev --version`
@@ -1531,7 +1531,7 @@ The following explains how you _could_ install it locally for certain edge cases
1531
1531
  4. Afterwards, install Accenture SFMC DevTools by running `npm install --save-dev mcdev`
1532
1532
  - If you get an error, please see the below troubleshooting section.
1533
1533
 
1534
- When completed run `mcdev --version` and it will show you which version you installed (e.g. `4.1.2`).
1534
+ When completed run `mcdev --version` and it will show you which version you installed (e.g. `4.1.3`).
1535
1535
 
1536
1536
  ### 9.3. NPM Scripts
1537
1537
 
@@ -1,66 +1,66 @@
1
- # Metadata Type findings & considerations
2
-
3
- ## Automation
4
-
5
- API: SOAP / REST
6
-
7
- ## Campaign
8
-
9
- API: SOAP
10
-
11
- Child Metadata:
12
-
13
- - [CampaignAsset](#CampaignAsset)
14
-
15
- ## CampaignAsset
16
-
17
- API: SOAP
18
-
19
- ## DataExtension
20
-
21
- API: SOAP
22
-
23
- Child Metadata:
24
-
25
- - [DataExtensionField](#DataExtensionField)
26
-
27
- Considerations:
28
-
29
- - **"SendableSubscriberField": { "Name": "\_SubscriberKey" }** is part of a DataExtension while retrieving, but a DataExtension cannot be created/updated with this property. **\_SubscriberKey** must be replaced with **Subscriber Key** before creating/updating
30
- - The referenced **CategoryID** represents the folder in which the DataExtension is located. these IDs are auto generated and therefore differ between BUs. When a DataExtension is deployed between BUs, the **CategoryID**s must be mapped between source and target
31
-
32
- ## DataExtensionField
33
-
34
- API: SOAP
35
-
36
- Considerations:
37
-
38
- - DataExtensionFields can only be created or updated
39
- - Instead of using the **CustomerKey** for updates like other metadata types, it uses the **ObjectID** which is auto generated and therefore different in each BU. ObjectIDs must be mapped between source and target if they are deployed between BUs
40
- - Some properties cannot be updated, but are also not throwing an error when they are part of the request (e.g. **Scale**)
41
-
42
- ## Email
43
-
44
- API: SOAP
45
-
46
- ## Folder
47
-
48
- API: SOAP
49
-
50
- Child Metadata:
51
-
52
- - [DataExtension](#DataExtension)
53
- - [Automation](#Automation)
54
-
55
- Considerations:
56
-
57
- - Folders are identified by their **ID** instead of their **CustomerKey**, this **ID** is auto generated and therefore different in each BU.
58
- - **CustomerKey** field can be empty and the **Name** only needs to be unique inside a sub-folder. A unique identifier can be created by building the complete path of a folder (e.g. **/grandparent/parent/folder**). Such a unique identifier can be used to map Folder **ID**s between BUs. This kind of mapping does not support moving folders into other subfolders, because the unique identifier would then change
59
-
60
- ## List
61
-
62
- API: SOAP
63
-
64
- ## Query
65
-
66
- API: SOAP
1
+ # Metadata Type findings & considerations
2
+
3
+ ## Automation
4
+
5
+ API: SOAP / REST
6
+
7
+ ## Campaign
8
+
9
+ API: SOAP
10
+
11
+ Child Metadata:
12
+
13
+ - [CampaignAsset](#CampaignAsset)
14
+
15
+ ## CampaignAsset
16
+
17
+ API: SOAP
18
+
19
+ ## DataExtension
20
+
21
+ API: SOAP
22
+
23
+ Child Metadata:
24
+
25
+ - [DataExtensionField](#DataExtensionField)
26
+
27
+ Considerations:
28
+
29
+ - **"SendableSubscriberField": { "Name": "\_SubscriberKey" }** is part of a DataExtension while retrieving, but a DataExtension cannot be created/updated with this property. **\_SubscriberKey** must be replaced with **Subscriber Key** before creating/updating
30
+ - The referenced **CategoryID** represents the folder in which the DataExtension is located. these IDs are auto generated and therefore differ between BUs. When a DataExtension is deployed between BUs, the **CategoryID**s must be mapped between source and target
31
+
32
+ ## DataExtensionField
33
+
34
+ API: SOAP
35
+
36
+ Considerations:
37
+
38
+ - DataExtensionFields can only be created or updated
39
+ - Instead of using the **CustomerKey** for updates like other metadata types, it uses the **ObjectID** which is auto generated and therefore different in each BU. ObjectIDs must be mapped between source and target if they are deployed between BUs
40
+ - Some properties cannot be updated, but are also not throwing an error when they are part of the request (e.g. **Scale**)
41
+
42
+ ## Email
43
+
44
+ API: SOAP
45
+
46
+ ## Folder
47
+
48
+ API: SOAP
49
+
50
+ Child Metadata:
51
+
52
+ - [DataExtension](#DataExtension)
53
+ - [Automation](#Automation)
54
+
55
+ Considerations:
56
+
57
+ - Folders are identified by their **ID** instead of their **CustomerKey**, this **ID** is auto generated and therefore different in each BU.
58
+ - **CustomerKey** field can be empty and the **Name** only needs to be unique inside a sub-folder. A unique identifier can be created by building the complete path of a folder (e.g. **/grandparent/parent/folder**). Such a unique identifier can be used to map Folder **ID**s between BUs. This kind of mapping does not support moving folders into other subfolders, because the unique identifier would then change
59
+
60
+ ## List
61
+
62
+ API: SOAP
63
+
64
+ ## Query
65
+
66
+ API: SOAP
@@ -723,13 +723,18 @@ class Asset extends MetadataType {
723
723
 
724
724
  const filecontent = await File.readFilteredFilename(
725
725
  [templateDir, this.definition.type, subType],
726
- metadata.customerKey,
726
+ templateName,
727
727
  fileExt,
728
728
  'base64'
729
729
  );
730
+
731
+ // keep old name if creating templates, otherwise use new name
732
+ const fileName =
733
+ mode === 'definition' ? metadata[this.definition.keyField] : templateName;
734
+
730
735
  fileList.push({
731
736
  subFolder: [this.definition.type, subType],
732
- fileName: templateName,
737
+ fileName: fileName,
733
738
  fileExt: fileExt,
734
739
  content: filecontent,
735
740
  encoding: 'base64',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcdev",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "description": "Accenture Salesforce Marketing Cloud DevTools",
5
5
  "author": "joern.berkefeld, douglas.midgley, robert.zimmermann, maciej.barnas",
6
6
  "license": "MIT",
@@ -63,5 +63,5 @@
63
63
  "triggeredSendDefinition"
64
64
  ]
65
65
  },
66
- "version": "4.1.2"
66
+ "version": "4.1.3"
67
67
  }