@salesforce/plugin-orchestrator 1.0.17 → 1.0.18

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.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [![License](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://opensource.org/license/apache-2-0)
6
6
 
7
- A Salesforce CLI plugin for working with AppFramework apps, templates, assets, and services.
7
+ A Salesforce CLI plugin for working with orchestrated apps, templates, assets, and services.
8
8
 
9
9
  ## Installation
10
10
 
@@ -59,7 +59,7 @@ yarn test:nuts
59
59
 
60
60
  ## Commands
61
61
 
62
- The plugin provides commands for working with AppFramework templates and applications.
62
+ The plugin provides commands for working with templates and apps.
63
63
 
64
64
  ### Template Commands
65
65
 
@@ -9,12 +9,8 @@ export default class UpdateApp extends SfCommand<string> {
9
9
  'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
10
  'app-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
11
  'app-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
- 'template-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
- 'template-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
12
  label: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
13
  description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
- 'runtime-method': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
- 'log-level': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
14
  };
19
15
  run(): Promise<string>;
20
16
  }
@@ -47,18 +47,6 @@ export default class UpdateApp extends SfCommand {
47
47
  description: messages.getMessage('flags.app-name.description'),
48
48
  exclusive: ['app-id'],
49
49
  }),
50
- 'template-id': Flags.string({
51
- char: 't',
52
- summary: messages.getMessage('flags.template-id.summary'),
53
- description: messages.getMessage('flags.template-id.description'),
54
- exclusive: ['template-name'],
55
- }),
56
- 'template-name': Flags.string({
57
- char: 'm',
58
- summary: messages.getMessage('flags.template-name.summary'),
59
- description: messages.getMessage('flags.template-name.description'),
60
- exclusive: ['template-id'],
61
- }),
62
50
  label: Flags.string({
63
51
  char: 'l',
64
52
  summary: messages.getMessage('flags.label.summary'),
@@ -69,18 +57,6 @@ export default class UpdateApp extends SfCommand {
69
57
  summary: messages.getMessage('flags.description.summary'),
70
58
  description: messages.getMessage('flags.description.description'),
71
59
  }),
72
- 'runtime-method': Flags.string({
73
- char: 'r',
74
- summary: messages.getMessage('flags.runtime-method.summary'),
75
- description: messages.getMessage('flags.runtime-method.description'),
76
- options: ['sync', 'async'],
77
- }),
78
- 'log-level': Flags.string({
79
- char: 'g',
80
- summary: messages.getMessage('flags.log-level.summary'),
81
- description: messages.getMessage('flags.log-level.description'),
82
- options: ['debug', 'info', 'warn', 'error'],
83
- }),
84
60
  };
85
61
  async run() {
86
62
  const { flags } = await this.parse(UpdateApp);
@@ -88,9 +64,9 @@ export default class UpdateApp extends SfCommand {
88
64
  if (!flags['app-id'] && !flags['app-name']) {
89
65
  throw new SfError(messages.getMessage('noAppSpecified'), 'AppUpdateError', messages.getMessages('error.UpdateError.Actions'));
90
66
  }
91
- // Check that at least one of template-id or template-name is provided
92
- if (!flags['template-id'] && !flags['template-name']) {
93
- throw new SfError(messages.getMessage('noTemplateSpecified'), 'AppUpdateError', messages.getMessages('error.UpdateError.Actions'));
67
+ // Check that at least one update field is provided
68
+ if (!flags.label && !flags.description) {
69
+ throw new SfError(messages.getMessage('noUpdateFieldsSpecified'), 'AppUpdateError', messages.getMessages('error.UpdateError.Actions'));
94
70
  }
95
71
  try {
96
72
  const connection = flags['target-org'].getConnection(flags['api-version']);
@@ -111,27 +87,11 @@ export default class UpdateApp extends SfCommand {
111
87
  else {
112
88
  appId = flags['app-id'] ?? '';
113
89
  }
114
- let templateId = '';
115
- // Get template ID if template name was provided
116
- if (flags['template-name']) {
117
- this.spinner.start(messages.getMessage('fetchingTemplate'));
118
- // Since we don't have a direct way to list templates,
119
- // we need to get the template by name from a different utility class
120
- // For now, we'll throw an error and suggest using template-id instead
121
- this.spinner.stop();
122
- throw new SfError(messages.getMessage('noTemplateFound'), 'AppUpdateError', messages.getMessages('error.UpdateError.Actions'));
123
- }
124
- else {
125
- templateId = flags['template-id'] ?? '';
126
- }
127
90
  // Update the app
128
91
  this.spinner.start(messages.getMessage('updatingApp'));
129
- const updatedAppId = await appFrameworkApp.updateApp(appId, {
130
- templateSourceId: templateId,
92
+ const updatedAppId = await appFrameworkApp.patchApp(appId, {
131
93
  label: flags.label,
132
94
  description: flags.description,
133
- runtimeMethod: flags['runtime-method'],
134
- logLevel: flags['log-level'],
135
95
  });
136
96
  this.spinner.stop();
137
97
  this.log(messages.getMessage('updateSuccess', [updatedAppId]));
@@ -1 +1 @@
1
- {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../src/commands/orchestrator/app/update.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAc,MAAM,kBAAkB,CAAC;AACjE,OAAO,eAAe,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAEtE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,iCAAiC,EAAE,yB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,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,WAAW,EAAE,KAAK,CAAC,WAAW;aAC/B,CAAC,CAAC;YAEH,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAEpB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YAE/D,gDAAgD;YAChD,MAAM,UAAU,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YAC9D,IAAI,UAAU,EAAE,CAAC;gBACf,MAAM,aAAa,GAAG,WAAW,CAAC,WAAW,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;gBAC5D,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBAC7B,cAAc,CAAC,iBAAiB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC3D,CAAC;YACH,CAAC;YAED,OAAO,YAAY,CAAC;QACtB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAEpB,MAAM,IAAI,OAAO,CACf,QAAQ,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAE,KAAe,CAAC,OAAO,CAAC,CAAC,EACpE,gBAAgB,EAChB,QAAQ,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAClD,CAAC;QACJ,CAAC;IACH,CAAC"}
@@ -38,7 +38,7 @@ export class AppDisplayUtil {
38
38
  * @param apps - The app data to display
39
39
  * @param title - Optional title for the table
40
40
  */
41
- static displayAppList(command, apps, title = 'AppFramework Apps') {
41
+ static displayAppList(command, apps, title = 'Apps') {
42
42
  if (apps.length === 0) {
43
43
  command.log('No apps found.');
44
44
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"appDisplayUtil.js","sourceRoot":"","sources":["../../../src/utils/app/appDisplayUtil.ts"],"names":[],"mappings":"AAAA;;;;;;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AAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,CAAC,OAAO,IAAI,KAAK,EAAE;gBACpD,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,CAAC,QAAQ,IAAI,KAAK,EAAE;aACvD;YACD,OAAO,EAAE;gBACP,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE;gBACjC,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE;aAC/B;SACF,CAAC,CAAC;QAEH,OAAO;QACP,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAC7B,OAAO,CAAC,KAAK,CAAC;YACZ,IAAI,EAAE;gBACJ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,GAAG,IAAI,KAAK,EAAE;gBAC5C,EAAE,QAAQ,EAAE,mBAAmB,EAAE,KAAK,EAAE,GAAG,CAAC,gBAAgB,IAAI,KAAK,EAAE;gBACvE,EAAE,QAAQ,EAAE,eAAe,EAAE,KAAK,EAAE,GAAG,CAAC,YAAY,IAAI,KAAK,EAAE;aAChE;YACD,OAAO,EAAE;gBACP,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE;gBACjC,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE;aAC/B;SACF,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -55,10 +55,20 @@ export default class AppFrameworkApp {
55
55
  */
56
56
  updateApp(appId: string, options: {
57
57
  templateSourceId: string;
58
- label?: string;
59
- description?: string;
60
58
  templateValues?: Record<string, unknown>;
61
59
  runtimeMethod?: string;
62
60
  logLevel?: string;
61
+ chainName?: string;
62
+ }): Promise<string>;
63
+ /**
64
+ * Patch an existing app's metadata (label, description)
65
+ *
66
+ * @param appId - ID of the app to patch
67
+ * @param options - Patch options
68
+ * @returns The ID of the patched app
69
+ */
70
+ patchApp(appId: string, options: {
71
+ label?: string;
72
+ description?: string;
63
73
  }): Promise<string>;
64
74
  }
@@ -150,14 +150,47 @@ export default class AppFrameworkApp {
150
150
  const url = `/apps/${appId}`;
151
151
  const body = Object.fromEntries(Object.entries({
152
152
  templateSourceId: options.templateSourceId,
153
- label: options.label,
154
- description: options.description,
155
153
  templateValues: options.templateValues ?? {},
156
154
  runtimeMethod: options.runtimeMethod,
157
155
  logLevel: options.logLevel,
156
+ chainName: options.chainName,
158
157
  }).filter((entries) => entries[1] !== undefined));
159
158
  const response = await request(this.connection, {
160
- method: 'POST',
159
+ method: 'PUT',
160
+ url,
161
+ body,
162
+ });
163
+ if (response && typeof response === 'object') {
164
+ if ('id' in response && typeof response.id === 'string') {
165
+ return response.id;
166
+ }
167
+ else if ('app' in response && response.app && typeof response.app === 'object' && 'id' in response.app) {
168
+ return response.app.id;
169
+ }
170
+ }
171
+ return appId; // Return the original app ID if no specific ID was found in the response
172
+ }
173
+ /**
174
+ * Patch an existing app's metadata (label, description)
175
+ *
176
+ * @param appId - ID of the app to patch
177
+ * @param options - Patch options
178
+ * @returns The ID of the patched app
179
+ */
180
+ async patchApp(appId, options) {
181
+ if (!appId) {
182
+ throw new Error('App ID must be provided');
183
+ }
184
+ if (!options.label && !options.description) {
185
+ throw new Error('At least one field (label or description) must be provided for patch');
186
+ }
187
+ const url = `/apps/${appId}`;
188
+ const body = Object.fromEntries(Object.entries({
189
+ label: options.label,
190
+ description: options.description,
191
+ }).filter((entries) => entries[1] !== undefined));
192
+ const response = await request(this.connection, {
193
+ method: 'PATCH',
161
194
  url,
162
195
  body,
163
196
  });
@@ -1 +1 @@
1
- {"version":3,"file":"appframeworkapp.js","sourceRoot":"","sources":["../../../src/utils/app/appframeworkapp.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGxC,MAAM,CAAC,OAAO,OAAO,eAAe;IACjB,UAAU,CAAa;IAExC,YAAmB,UAAsB;QACvC,IAAI,CAAC,UAAU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,OAAO,CAAC,WAAW;SACjC,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CACjD,CAAC;QAQF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAc,IAAI,CAAC,UAAU,EAAE;YAC3D,MAAM,EAAE,OAAO;YACf,GAAG;YACH,IAAI;SACL,CAAC,CAAC;QAEH,IAAI,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;YAC7C,IAAI,IAAI,IAAI,QAAQ,IAAI,OAAO,QAAQ,CAAC,EAAE,KAAK,QAAQ,EAAE,CAAC;gBACxD,OAAO,QAAQ,CAAC,EAAE,CAAC;YACrB,CAAC;iBAAM,IAAI,KAAK,IAAI,QAAQ,IAAI,QAAQ,CAAC,GAAG,IAAI,OAAO,QAAQ,CAAC,GAAG,KAAK,QAAQ,IAAI,IAAI,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;gBACzG,OAAO,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACzB,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC,CAAC,yEAAyE;IACzF,CAAC;CACF"}
@@ -1,86 +1,118 @@
1
1
  # summary
2
2
 
3
- Create a new AppFramework app from a template.
3
+ Create a new app from a template.
4
4
 
5
5
  # description
6
6
 
7
- Creates a new app from an existing template. The app will be initialized with the configuration defined in the template.
7
+ Create a new orchestrated app using an existing template as the foundation. The app is initialized with the configuration, structure, and settings defined in the template, providing a quick start for app development.
8
+
9
+ You can identify the template to use by either its unique ID or its name. Template IDs are guaranteed to be unique, while template names should be unique within an org. The new app inherits the template's configuration, but can be customized independently after creation.
10
+
11
+ Use this command to quickly create apps with consistent configurations and accelerate your development workflow. The created app assets appear in Data Cloud and Tableau Next where you can customize as needed. You can manage the app from the App Install History page in Setup.
12
+
13
+ You must have Data Cloud and Tableau Next enabled in your org and the AppFrameworkManageApp user permission to create apps. Both the template and the new app must be in the same org.
14
+
15
+ # examples
16
+
17
+ - Create an app from a template by ID:
18
+
19
+ <%= config.bin %> <%= command.id %> --target-org myOrg --name "my_app" --template-id 01t000000000123
20
+
21
+ - Create an app from a template by name:
22
+
23
+ <%= config.bin %> <%= command.id %> --target-org myOrg --name "sales_app" --template-name "Sales_Template"
24
+
25
+ - Create an app with a custom label and description:
26
+
27
+ <%= config.bin %> <%= command.id %> --target-org myOrg --name "analytics_app" --template-name "Analytics_Template" --label "My Analytics App" --description "Custom analytics app"
28
+
29
+ - Create an app with specific runtime configuration:
30
+
31
+ <%= config.bin %> <%= command.id %> --target-org myOrg --name "dashboard_app" --template-id 01t000000000456 --runtime-method async --log-level debug
32
+
33
+ - Create an app using a specific API version:
34
+
35
+ <%= config.bin %> <%= command.id %> --target-org mySandbox --name "test_app" --template-name "Test Template" --api-version 60.0
8
36
 
9
37
  # flags.target-org.summary
10
38
 
11
- Username or alias of the target org.
39
+ Login username or alias for the target org.
12
40
 
13
41
  # flags.target-org.description
14
42
 
15
- Username or alias of the target org. Not required if the `target-org` configuration variable is already set.
43
+ The target org to connect to for creating the app. This org must have Data Cloud and Tableau Next enabled and you must have the AppFrameworkManageApp user permission to create apps. The template must also exist in this org.
16
44
 
17
45
  # flags.api-version.summary
18
46
 
19
- Override the api version used for api requests made by this command.
47
+ Override the API version used for API requests.
20
48
 
21
49
  # flags.api-version.description
22
50
 
23
- Override the api version used for api requests made by this command.
51
+ Override the API version used for orchestrator API requests. Use this flag to specify a particular API version when the default version doesn't work with your org's configuration.
24
52
 
25
53
  # flags.name.summary
26
54
 
27
- Name for the new app (required)
55
+ Name for the new app.
28
56
 
29
57
  # flags.name.description
30
58
 
31
- A unique identifier for the app. Must be unique within your org.
59
+ A unique identifier for the app. Must be unique within your org. Use descriptive names that help identify the app's purpose. App names should follow your org's naming conventions.
32
60
 
33
61
  # flags.label.summary
34
62
 
35
- Label for the new app
63
+ Label for the new app.
36
64
 
37
65
  # flags.label.description
38
66
 
39
- A human-readable label for the app. If not provided, the name will be used.
67
+ A human-readable label for the app. This is displayed on the App Install History setup page and helps users identify the app's purpose. If not provided, the name will be used as the label.
40
68
 
41
69
  # flags.description.summary
42
70
 
43
- Description of the new app
71
+ Description of the new app.
44
72
 
45
73
  # flags.description.description
46
74
 
47
- A description of what the app does.
75
+ A description of what the app does and its intended use case. This helps users understand the app's purpose and functionality. The description appears on the App Install History page.
48
76
 
49
77
  # flags.template-id.summary
50
78
 
51
- ID of the template to use for creating the app
79
+ ID of the template to use for creating the app.
52
80
 
53
81
  # flags.template-id.description
54
82
 
55
- ID of an existing template to use for creating the app. Either template-id or template-name must be provided.
83
+ The unique identifier of the template to use for generating the new app.
56
84
 
57
85
  # flags.template-name.summary
58
86
 
59
- Name of the template to use for creating the app
87
+ Name of the template to use for creating the app.
60
88
 
61
89
  # flags.template-name.description
62
90
 
63
- Name of an existing template to use for creating the app. Either template-id or template-name must be provided.
91
+ The name of the template to use for generating the new app.
64
92
 
65
93
  # flags.runtime-method.summary
66
94
 
67
- Runtime method for the app (sync or async)
95
+ Runtime method for the app.
68
96
 
69
97
  # flags.runtime-method.description
70
98
 
71
- Specifies how the app's runtime operates, either synchronously or asynchronously.
99
+ Specifies the runtime method for the app execution. This affects how the app processes data and handles user interactions. Valid values are 'sync' and 'async'.
72
100
 
73
101
  # flags.log-level.summary
74
102
 
75
- Log level for the app
103
+ Log level for the app.
76
104
 
77
105
  # flags.log-level.description
78
106
 
79
- Sets the logging level for the app. Valid options are: debug, info, warn, error.
107
+ Sets the logging level for the app. This controls how much diagnostic information is captured during app execution. Valid values are 'debug', 'info', 'warn', and 'error'.
108
+
109
+ # noTemplateSpecified
110
+
111
+ No template specified. You must specify either a template ID with --template-id or a template name with --template-name.
80
112
 
81
113
  # fetchingTemplate
82
114
 
83
- Fetching template information...
115
+ Fetching template details...
84
116
 
85
117
  # creatingApp
86
118
 
@@ -90,35 +122,57 @@ Creating app from template...
90
122
 
91
123
  Successfully created app with ID: %s
92
124
 
93
- # noTemplateSpecified
125
+ # error.MissingRequiredFlag
126
+
127
+ Either --template-id or --template-name must be provided.
94
128
 
95
- Either template-id or template-name must be specified.
129
+ # error.MissingRequiredFlag.Actions
130
+
131
+ - Use --template-id to specify a template by its unique ID
132
+ - Use --template-name to specify a template by its name
133
+ - Get template IDs and names using "sf orchestrator template list"
96
134
 
97
135
  # error.TemplateNotFound
98
136
 
99
- Template not found. Please check the template ID or name and try again.
137
+ Template not found.
100
138
 
101
139
  # error.TemplateNotFound.Actions
102
140
 
103
- - Verify that the template exists in your organization
104
- - Check that you have spelled the template name correctly
105
- - Try using the template ID instead of the name
141
+ - Verify the template ID or name is correct
142
+ - Use "sf orchestrator template list" to see available templates
143
+ - Check your permissions to view templates
144
+ - Make sure you're connected to the correct org with --target-org
106
145
 
107
146
  # error.AppCreationError
108
147
 
109
- An error occurred while creating the app: %s
148
+ Failed to create app: %s
110
149
 
111
150
  # error.AppCreationError.Actions
112
151
 
113
- - Check the error message above for more details
114
- - Ensure that AppFramework is enabled in your org
115
- - Ensure that your user has the necessary permissions
152
+ - Verify that you have permission to create apps in the target org
153
+ - Ensure the app name is unique within your org
154
+ - Check that Data Cloud and Tableau Next are enabled in your org
155
+ - Verify your authentication and org connection are valid
156
+ - Try using a different API version with --api-version
116
157
 
117
- # examples
158
+ # error.InvalidAppName
118
159
 
119
- - Create a new app using a template ID:
120
- <%= config.bin %> <%= command.id %> --target-org myOrg --name "my_app" --template-id 01t000000000123
121
- - Create a new app using a template name:
122
- <%= config.bin %> <%= command.id %> --target-org myOrg --name "sales_app" --template-name "Sales_Template"
123
- - Create a new app with additional details:
124
- <%= config.bin %> <%= command.id %> --target-org myOrg --name "analytics_app" --template-name "Analytics_Template" --label "My Analytics App" --description "Custom analytics application" --runtime-method async --log-level debug
160
+ App name "%s" is invalid or already exists.
161
+
162
+ # error.InvalidAppName.Actions
163
+
164
+ - Choose a unique name that doesn't exist in your org
165
+ - Ensure the name follows your org's naming conventions
166
+ - Use "sf orchestrator app list" to see existing app names
167
+ - Avoid special characters and spaces in app names
168
+
169
+ # error.InsufficientPermissions
170
+
171
+ You don't have permission to create apps in this org.
172
+
173
+ # error.InsufficientPermissions.Actions
174
+
175
+ - Contact your Salesforce admin to request app creation permissions
176
+ - Verify you're connected to the correct org with --target-org
177
+ - Check that Data Cloud and Tableau Next are enabled in your org
178
+ - Check that your user profile has the AppFrameworkManageApp user permission
@@ -1,66 +1,92 @@
1
1
  # summary
2
2
 
3
- Create a new AppFramework template.
3
+ Create a new template.
4
4
 
5
5
  # description
6
6
 
7
- Creates a new empty template that can be customized. Templates allow you to define reusable configurations for AppFramework applications.
7
+ Create a new template that can be used as a blueprint for building orchestrated apps. Templates allow you to define reusable configurations, layouts, and settings that can be shared across multiple apps.
8
+
9
+ Once created, templates appear in Tableau Next where users can use them to create new apps. Templates help standardize app development and ensure consistency across your org.
10
+
11
+ You must have Data Cloud and Tableau Next enabled in your org and the AppFrameworkManageApp user permission to create templates. The template name must be unique within your org. This command works with production orgs, sandboxes, and scratch orgs that have orchestrated apps configured.
12
+
13
+ # examples
14
+
15
+ - Create a basic app template:
16
+
17
+ <%= config.bin %> <%= command.id %> --target-org myOrg --name "my_template"
18
+
19
+ - Create a template with a label for better identification:
20
+
21
+ <%= config.bin %> <%= command.id %> --target-org myOrg --name "sales_template" --label "Sales Analytics Template"
22
+
23
+ - Create a dashboard template with a specific subtype:
24
+
25
+ <%= config.bin %> <%= command.id %> --target-org myOrg --name "dashboard_template" --type dashboard --subtype "analytics"
26
+
27
+ - Create a comprehensive template with all metadata:
28
+
29
+ <%= config.bin %> <%= command.id %> --target-org myOrg --name "analytics_template" --type app --subtype "tableau" --label "Sales Template" --description "Template for sales analytics apps"
30
+
31
+ - Create a template using a specific API version:
32
+
33
+ <%= config.bin %> <%= command.id %> --target-org myOrg --name "legacy_template" --api-version 60.0
8
34
 
9
35
  # flags.target-org.summary
10
36
 
11
- Login username or alias for the target org
37
+ Login username or alias for the target org.
12
38
 
13
39
  # flags.target-org.description
14
40
 
15
- The target org to connect to for creating the template.
41
+ The target org to connect to for creating the template. This org must have Data Cloud and Tableau Next enabled and you must have the AppFrameworkManageApp user permission to create templates.
16
42
 
17
43
  # flags.api-version.summary
18
44
 
19
- Override the api version used for api requests
45
+ Override the API version used for API requests.
20
46
 
21
47
  # flags.api-version.description
22
48
 
23
- Override the api version used for api requests to the app framework.
49
+ Override the API version used for orchestrator API requests. Use this flag to specify a particular API version when the default version doesn't work with your org's configuration.
24
50
 
25
51
  # flags.name.summary
26
52
 
27
- Name for the new template (required)
53
+ Name for the new template.
28
54
 
29
55
  # flags.name.description
30
56
 
31
- A unique identifier for the template. Must be unique within your org.
57
+ A unique identifier for the template. Must be unique within your org. Use descriptive names that help identify the template's purpose. Template names should follow your org's naming conventions.
32
58
 
33
59
  # flags.type.summary
34
60
 
35
- Type of template to create
61
+ Type of template to create.
36
62
 
37
63
  # flags.type.description
38
64
 
39
- Specifies the type of template to create. Valid options are: app, component, dashboard, or lens. Defaults to 'app' if not specified.
65
+ Specifies the type of template to create. Valid values are 'app', 'component', 'dashboard', or 'lens'. Defaults to 'app' if not specified. Choose the type that matches your intended use case for the template.
40
66
 
41
67
  # flags.subtype.summary
42
68
 
43
- Subtype for the template
69
+ Subtype for the template.
44
70
 
45
71
  # flags.subtype.description
46
72
 
47
- An optional subtype categorization for the template (e.g., 'tableau' for app templates).
73
+ An optional subtype categorization for the template (e.g., 'tableau' for app templates). Subtypes help organize templates and provide additional context about their intended use or underlying technology.
48
74
 
49
75
  # flags.label.summary
50
76
 
51
- Label for the new template
77
+ Label for the new template.
52
78
 
53
79
  # flags.label.description
54
80
 
55
- A human-readable label for the template. This is displayed in the Analytics Studio UI.
81
+ A human-readable label for the template. This is displayed in Tableau Next and helps users identify the template's purpose. Use clear, descriptive labels that explain what the template does.
56
82
 
57
83
  # flags.description.summary
58
84
 
59
- Description of the new template
85
+ Description of the new template.
60
86
 
61
87
  # flags.description.description
62
88
 
63
- A description of what the template does. This is displayed in the Analytics Studio UI.
89
+ A description of what the template does and its intended use case. This is displayed in Tableau Next and helps users understand when to use this template. Include information about the template's purpose, features, and any prerequisites.
64
90
 
65
91
  # fetchingApp
66
92
 
@@ -74,9 +100,36 @@ Creating template from app...
74
100
 
75
101
  Successfully created template with ID: %s
76
102
 
77
- # examples
103
+ # error.TemplateCreationError
104
+
105
+ Error creating template: %s
106
+
107
+ # error.TemplateCreationError.Actions
108
+
109
+ - Verify that you have permission to create templates in the target org
110
+ - Ensure the template name is unique within your org
111
+ - Check that Data Cloud and Tableau Next are enabled in your org
112
+ - Verify your authentication and org connection are valid
113
+ - Try using a different API version with --api-version
114
+
115
+ # error.InvalidTemplateName
116
+
117
+ Template name "%s" is invalid or already exists.
118
+
119
+ # error.InvalidTemplateName.Actions
120
+
121
+ - Choose a unique name that doesn't exist in your org
122
+ - Ensure the name follows your org's naming conventions
123
+ - Use "sf orchestrator template list" to see existing template names
124
+ - Avoid special characters and spaces in template names
125
+
126
+ # error.InsufficientPermissions
127
+
128
+ You don't have permission to create templates in this org.
129
+
130
+ # error.InsufficientPermissions.Actions
78
131
 
79
- - <%= config.bin %> <%= command.id %> --target-org myOrg --name "my_template"
80
- - <%= config.bin %> <%= command.id %> --target-org myOrg --name "sales_template" --type app --label "My Custom Template"
81
- - <%= config.bin %> <%= command.id %> --target-org myOrg --name "dashboard_template" --type dashboard --subtype "analytics"
82
- - <%= config.bin %> <%= command.id %> --target-org myOrg --name "analytics_template" --type app --subtype "tableau" --label "Sales Template" --description "Template for sales analytics apps"
132
+ - Contact your Salesforce admin to request template creation permissions
133
+ - Verify you're connected to the correct org with --target-org
134
+ - Check that Data Cloud and Tableau Next are enabled in your org
135
+ - Check that your user profile has the AppFrameworkManageApp permission