Yes, it does do this. It could have problems with metadata depending on what plugins you use, but certainly it can create contacts from new users and keep them synced.
Would I be able to do the same the other way where I create a new Contact object and have WordPress pull from Salesforce and create a new user under wp_users table.
Do you have any suggestions on your reply above on going about the user registration syncing from WP to Salesforce
-
This reply was modified 6 years, 2 months ago by
gijungkim.
Yes, a new contact can create new users. But again, it depends on how you use metadata.
I think you might want to try reading through the documentation and see if you can follow it, but here’s what you basically need to do:
1. Create a fieldmap where the WordPress object is user and the Salesforce object is Contact.
2. Pick the fields that you want to map, and set which direction each field’s data should go. That is, from WP->SF, from SF->WP, or syncing between the two.
3. Pick the triggers that should cause a sync. You’ll want both WP and SF events, presumably.
4. Make sure you have the schedule running.
5. If you are syncing meta fields, make sure you’re using a plugin that stores the metadata in wp_usermeta as opposed to a custom table (you can do it with a custom table, but it requires using developer hooks).
Beyond that, again, follow the documentation and ask if you need clarification. This forum isn’t really set up to provide custom guidance beyond what the documentation says, but to give some free support for folks who have specific issues with the plugin.
Hey Jonathan,
I tried the steps, but came across Error: Salesforce Push: unable to process queue item because it has no WordPress ID. All the required fields are filled out.
-
This reply was modified 6 years, 2 months ago by
gijungkim.
-
This reply was modified 6 years, 2 months ago by
gijungkim.
Okay. This error happens when the plugin can’t access the ID field. This could be related to a third party plugin.
That log message should, if you click on it, contain the data structure of the object the plugin tried to work with. That way you can maybe see what fields it does recognize.
Hmm, this is just upon user creation via WordPress Admin UI page. To my knowledge, url being empty shouldn’t impact the push
Array
(
[action] => createuser
[_wpnonce_create-user] => 07d0ce9751
[_wp_http_referer] => /wp-admin/user-new.php
[user_login] => WPtoSF
[email] => [email protected]
[first_name] => WP
[last_name] => SF
[url] =>
[pass1] => sviL^@&9WO#4SeZdZhr#jAeL
[pass2] => sviL^@&9WO#4SeZdZhr#jAeL
[role] => student
[createuser] => Add New User
[slt-fsp-pass-strength-result] => strong
)
You’re right, the url is not the problem. As you can see though, there’s no ID in there. Are you using a different kind of plugin to create users? There are a lot of methods for creating users in WordPress, and we don’t necessarily support them with this plugin.
Hey Jonathan, I use the default method as in the link below. Perhaps it is a race condition that ObjectSync tries to push before the WP appends the WP ID and saves the data
https://www.theedigital.com/blog/add-new-user-wordpress
Maybe. Happy to check into it if it is an issue I can reproduce, or to look at a pull request if you discover why it’s happening, but this is not something I’ve seen with WordPress Core so there’s not much I can do at this point.