CRM Analytics Template SDK Aura Component

Discover CRM Analytics templates and apps created from them. Create, update, and delete CRM Analytics apps created from templates.

To call the SDK, declare the wave:sdk component in your component or app.

<wave:sdk aura:id="sdk"/>

Use sdk.invokeMethod to specify the method and any parameters.

sdk.invokeMethod(context, methodName, methodParameters, callback)

For example, here’s a call that uses listFolders as methodName.

Each method has its own set of parameters (methodParameters)—except listTemplates, which doesn’t need any.

Retrieves a list of all templates that the user has access to. Has no parameters.

Retrieves information for the specified template.

Parameter NameDescriptionRequiredType
templateIdID of the template.TRUEString, in either the internal 'sfdc_internal__' or base platform object ID format

Retrieves variable and UI information for the template.

Parameter NameDescriptionRequiredType
templateIdID of the template.TRUEString, in either the internal 'sfdc_internal__' or base platform object ID format

Runs validation on a CRM Analytics template to check for org readiness.

Parameter NameDescriptionRequiredType
templateIdID of the template.TRUEString, in either the internal 'sfdc_internal__' or base platform object ID format
validationInputThe input to use during the validation.TRUEA map of template variable values to validate the template with. These values override any template defaults.

Creates a folder from the specified template. Not used for apps that aren’t created from templates.

Parameter NameDescriptionRequiredType
nameDeveloper name of the folder.TRUEString
labelDisplay label of the folder.TRUEString
descriptionDescription of the folder.FALSEString
dynamicOptionsMap of configuration options for folder creation.FALSEObject; map of name-value pairs, such as {'runtimeLogEntryLevel' : 'Warning'}. For supported names and values, see Template Options Input.
templateSourceIdID of the template used to create the folder.TRUEString, in either the internal 'sfdc_internal__' or base platform object ID format
templateValuesVariable values for the template.FALSEObject; map of name-value pairs, such as {'Can_Continue' : true}

Retrieves a list of folders that the user has access to. Can be filtered by specifying parameters.

Parameter NameDescriptionRequiredType
templateSourceIdLimit the results to folders created from the specified template.FALSEString, in either the internal 'sfdc_internal__' or base platform object ID format
pageSizeLimit the results by page.FALSENumber
qLimit the results by query string.FALSEString
sortSort the results alphabetically or by most recently used.FALSEEnum: 'alpha' or 'mru'
scopeReturn only folders within the specified scope.FALSEEnum: 'createdByMe' or 'sharedWithMe'
pageReturn the specified page of results.FALSENumber
isPinnedLimit the results to pinned or unpinned folders.FALSEBoolean
mobileOnlyLimit the results to mobileOnly folders.FALSEBoolean

Updates a folder’s metadata. Can cancel an in-progress app.

Parameter NameDescriptionRequiredType
folderIdID of the folder.TRUEString
labelNew display label for the folder.FALSEString
descriptionNew description for the folder.FALSEString
applicationStatusWhen specified, cancels an app that is in progress.FALSE'cancelledstatus' is the only value

Resets or upgrades the specified folder. If the version of the template matches the version used to create the app, resets the app using the template. If the versions don’t match, upgrades the app using the new template version. Can specify dynamic options or template values that differ from the values used when the app was originally created.

Parameter NameDescriptionRequiredType
dynamicOptionsMap of configuration options for folder upgrade.FALSEObject; map of name-value pairs, such as {'runtimeLogEntryLevel' : 'Warning'}. For supported names and values, see Template Options Input.
folderIdID of the folder.TRUEString
templateValuesVariable values for the template.FALSEObject; map of name-value pairs, such as {'Can_Continue' : true}

Deletes the specified folder.

Parameter NameDescriptionRequiredType
folderIdID of the folder.TRUEString