Removal of old Segmentation/Query | Community
Skip to main content
jae_lee
Level 3
March 1, 2017
Solved

Removal of old Segmentation/Query

  • March 1, 2017
  • 6 replies
  • 2840 views

In our system, we have some queries/segments set up that are looking for a particular value.  

You’ll see a query looking for "Is User Valid’ @IsUserValid = 1":

This code/logic is apparently a left over from when we were using Aprimo and it is an old piece of logic that no longer applies.  If queries are set up like this, they are not picking up new contacts in the system that do not have this value set to 1.  

We are wondering if there is an easy way to either remove this field system-wide or will we need to go into each filter/segment, etc and look for this logic and remove it from where it exists?

Thank you.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by unifica

Hi Jae,

A script could be written to achieve this by looping through all workflows and modifying the WHERE clause within each Query object.
However, I wouldn't describe it as being an 'easy way'. You may find it quicker to perform the task manually.

Thanks,

Jordan Dolan - Adobe Campaign Consultant

6 replies

unificaAccepted solution
March 1, 2017

Hi Jae,

A script could be written to achieve this by looping through all workflows and modifying the WHERE clause within each Query object.
However, I wouldn't describe it as being an 'easy way'. You may find it quicker to perform the task manually.

Thanks,

Jordan Dolan - Adobe Campaign Consultant

vraghav
Adobe Employee
Adobe Employee
March 1, 2017

Hi Jae,

You can modify the schema column and apply default constraint to be as 1 instead of 0.

every new record will get created as isValid=1

Other thing is to modify your workflow that inserts new recipients and ensure that isValid field is configured to be set to 1.

alistairk396804
Level 3
March 1, 2017

Depending on how many workflows you currently have it may just be quicker and easier to set aside an hour or two and manually remove them.

jae_lee
jae_leeAuthor
Level 3
March 1, 2017

Thank you.

Jae

jae_lee
jae_leeAuthor
Level 3
March 1, 2017

Thank you.

Jae

jae_lee
jae_leeAuthor
Level 3
March 1, 2017

Thank you.

Jae