Adobe Campaign Purge A folder of Recipients

jeremyasmith

29-03-2018

I have a folder containing recipients that I want to purge.

Basically we have moved some recipients into this folder that we wish to delete and as per some Adobe instructions I found then to delete these recipients we should purge the folder, I want to do this in a script in a workflow using:

nms.recipient.ClearFolder(<recipient folderId="869848332" />);

where 869848332 is the folder id of the folder I am trying to purge, but when I run this nothing seems to happen.

Jeremy

Accepted Solutions (1)

Accepted Solutions (1)

florentlb

19-04-2018

Hi Jeremy,

You're right, I've just remembered this note in the workflow documentation:

For example, deleting a recipient via a workflow will not result in all of the recipient's delivery history being deleted. However, deleting a recipient directly in the 'Recipients' folder will indeed result in all data linked with this recipient being deleted.

So purging the folder is the right solution. However, I'm not sure if the ClearFolder function is really purging the data or simply removing the data from the folder but without deleting it from the database.

Have you tried other syntax? In the JSAPI, the ClearFolder function seems to only need the folder ID as parameter, so maybe something like ClearFolder("869848332")

If this is not a syntax problem, then I don't know any other similar function available to purge recipient data, so doing it manually would be the only way.

Florent

Answers (4)

Answers (4)

jeremyasmith

14-05-2018

We were able to use the purge option to do the test deletion but could not get the ClearFolder option to work so we will purge manually which is fine

Thanks

jeremyasmith

18-04-2018

Hi,

Thanks for you help.

I only went down the purge route to delete recipients because of some documentation I found: Managing profiles

I imagined this was something to do with fully removing history, subscriptions etc.?

Jeremy

florentlb

18-04-2018

Hi Jeremy,

I'm not really good at JavaScript but why not trying to use the Data Update activity in a workflow (with the Delete action)?

Florent