This script will retrieve all the accounts that the cc_on_all_org_tickets field is not empty in zendesk. It will store the results on a csv file.
- python3
- pip and virtualenv installed
On linux, if the virtualenv is missing install it by:
sudo apt-get install python3-pip
sudo pip3 install virtualenv virtualenvwrapper
- Clone this repository
git clone https://github.com/Redislabs-Solution-Architects/cc_zendesk.git
- change directory to cc_zendesk.
- Create a virtual environment directory:
On Windows:
python3 -m env env
On Linux and MacOS:
virtualenv -p /usr/bin/python3 env
- Activate Virtual Environment
source env/bin/activate
- Install required modules
env/bin/pip install -r requirements.txt
- Run the script by
env/bin/python search_cc_zendesk.py
The script will create an organization_list.csv file, containing all account with CC defined
In case of an error like: PermissionError: [Errno 1] Operation not permitted: '/usr/bin/python3' -> ' It mean You are trying to create virtualenv on external SD card, so virtualenv cannot create symlinks and/or set executable permissions. Try to do this in your $HOME directory.