CB and Civicrm...or alternative CRM

12 years 9 months ago #172782 by krileon
Replied by krileon on topic Re: CB and Civicrm...or alternative CRM

robbiemc wrote: Hi Krileon

Again thanks for the prompt response...Unfortunately I am not a coder, to you have any example code I can work off...or will this be obvious in the plugin backend?

Robbie

There's no coding necessary. You'll only need to formulate the necessary database query to insert or update the user in you CRM system. I can't help with this as I've no idea your CRMs database structure.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

12 years 9 months ago #172814 by robbiemc
Replied by robbiemc on topic Re: CB and Civicrm...or alternative CRM
Hi Krileon
I appreciatte you do not know the db structure but is it possible you can give me a sample SQL query statement, ie

To update firstname in the CRM from Community builder

To create new first name in CRM from community builder

Cheers

Robbie

Please Log in to join the conversation.

12 years 9 months ago #172821 by nant
Replied by nant on topic Re: CB and Civicrm...or alternative CRM

robbiemc wrote: Hi Krileon
I appreciatte you do not know the db structure but is it possible you can give me a sample SQL query statement, ie

To update firstname in the CRM from Community builder

To create new first name in CRM from community builder

Cheers

Robbie


That is impossible to do without knowing where the firstname is stored in the CRM database.

Please Log in to join the conversation.

12 years 8 months ago #174018 by robbiemc
Replied by robbiemc on topic Re: CB and Civicrm...or alternative CRM
Hi Nant

Sorry it has taken a while to get back to you on this...been a bit chocca.

I have interigated the system and civicrm adds new tables to the database. With the following information is it possible you can give me an example SQL statement to update data using CB Queries;

database;
jo_161

table
civicrm_address,

fields;
street_address
street_number
city
postal_code

Is this a two way process, ie if data is updated in civicrm will it update Community Builder...?

Many thanks for your help

Robbie

Please Log in to join the conversation.

12 years 8 months ago - 12 years 8 months ago #174031 by krileon
Replied by krileon on topic Re: CB and Civicrm...or alternative CRM

I have interigated the system and civicrm adds new tables to the database. With the following information is it possible you can give me an example SQL statement to update data using CB Queries;

Example update query as follows.
UPDATE `civicrm_address` SET `street_address` = '[cb_address]', `street_number` = '[cb_street]', `city` = '[cb_city]', `postal_code` = '[cb_zip]' WHERE `email` = '[email]';

The above assumes the unique value between the 2 tables is the email address and trys to match it to the user. See below link for tutorials on SQL usage.

www.w3schools.com/sql/default.asp

Is this a two way process, ie if data is updated in civicrm will it update Community Builder...?

No, CB Queries will execute your query on the trigger you specified.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

12 years 8 months ago #174067 by robbiemc
Replied by robbiemc on topic Re: CB and Civicrm...or alternative CRM
Krileon

as ever many thanks for your support...will give this a go.

Robbie

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.197 seconds

Facebook Twitter LinkedIn