latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Zoho CRM – API Notifications

Home Forums Community Forum Zoho CRM – API Notifications

Tagged: 

This topic contains 1 reply, has 2 voices. Last updated by  Bruce 3 years, 6 months ago.

Topic Author Topic
Posted: Thursday Jun 27th, 2013 at 10:53 am #52685
Tim
Username: TimDov

Hello,

Using this method I’m able to insert records into Zoho CRM when users regsiter in s2member:
https://crm.zoho.com/crm/private/xml/Leads/insertRecords?authtoken=Auth Token&scope=crmapi&xmlData=Your XML Data

Now I would like to update it when users modify their profile, for doing it I need to use similar construction but with updateRecords method. The thing is for doing it I need to know Users Unique ID in Zoho CRM.

They have getRecords method to fetch users data specified in the API request.
Now my question is how can I create custom variable in s2member for each user, where I would be able to fetch and store Zoho users unique IDs ?

Thank you,
Tim

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Friday Jun 28th, 2013 at 5:44 am #52716
Bruce
Username: Bruce
Staff Member

Now my question is how can I create custom variable in s2member for each user, where I would be able to fetch and store Zoho users unique IDs ?

You could create a completely private Custom Registration/Profile Field that you would use to hold this value. If you set it up right, the field will never be seen by your User, but you will be able to access it in the API Notifications area with replacement codes.

See: Dashboard -› s2Member® -› General Options -› Registration/Profile Fields


When you have to set this value via PHP, you’ll want to get the User’s array of custom fields. This is stored in a User Meta field called s2member_custom_fields. You can get it like this:

get_user_option('s2member_custom_fields', $user_id);

See: http://codex.wordpress.org/Function_Reference/get_user_option

Then, after you change the value of the field by changing the array value, you’ll save the array like this:

update_user_option ($user_id, 's2member_custom_fields', $fields);

See: http://codex.wordpress.org/Function_Reference/update_user_option

Will that work for you?

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.