Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Adobe Campaign Purge A folder of Recipients

Avatar

Avatar
Validate 1
Level 2
jeremyasmith
Level 2

Likes

4 likes

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
jeremyasmith
Level 2

Likes

4 likes

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 3
Boost 1
Affirm 1
View profile
jeremyasmith
Level 2

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)

Avatar

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile
florentlb
Level 10

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)

Avatar

Avatar
Validate 1
Level 2
jeremyasmith
Level 2

Likes

4 likes

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
jeremyasmith
Level 2

Likes

4 likes

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 3
Boost 1
Affirm 1
View profile
jeremyasmith
Level 2

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

Avatar

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile
florentlb
Level 10

11-05-2018

Hey Jeremy,

Were you able to find a solution for this?

Let me know,

Florent

Avatar

Avatar
Validate 1
Level 2
jeremyasmith
Level 2

Likes

4 likes

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
jeremyasmith
Level 2

Likes

4 likes

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 3
Boost 1
Affirm 1
View profile
jeremyasmith
Level 2

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

Avatar

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile
florentlb
Level 10

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