adobe / acc-js-sdk

A JavaScript SDK for Adobe Campaign Classic
Apache License 2.0
21 stars 20 forks source link

New optional action parameter for upload function #81

Closed mkiki closed 1 year ago

mkiki commented 1 year ago

New optional action parameter for upload function. This parameter can be used to set the post-processing action to execute after upload. Defaults to 'publishIfNeeded'. Also supports 'none' which will execute no action

Related Issue

Current implementation of upload function will automaticaly publish the uploaded resource as a public resource in Campaign. This is correct for attachments, or public resources used in email, but is not correct for other type of resoures, for instance an uploaded audience. The default value (i.e. no action given) defaults to a pubish action for backwards compatibility

Motivation and Context

Work in progress to support upload functionality.

How Has This Been Tested?

Unit tests

Types of changes

Checklist: