Jump to content

search for clients with blank custom field


Recommended Posts

then you'll probably going to need to use a SQL query - either directly via phpmyadmin etc, or inside a report.

although one problem you might run into is if this custom field was added after clients had already been created, e.g if you already had 1000 clients, and *then*  added this CCF to the setup, there would be no records in the relevant database table for those 1000 clients (unless they/you had updated those values)...

under those circumstances, you'd be querying for relevant field(s) that are either empty of don't exist.... if the CCF was setup before clients where created, then it should just be a straight if value is empty where condition... with relevant joins depending on what info you want to extract from the query (e.g client names etc)

Link to comment
Share on other sites

yea the field was added later on, when I started using an SMS module.

so the fields do not exist in the DB for most users.

I have noticed that most clients seem to have listed their main number as a mobile number.

So my goal is, to find out which clients do not have a mobile number.
check if the main profile phone  number starts with 07, which means it is a mobile number, and if so, copy it to mobile number custom field.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated