• Resolved danatpi

    (@danatpi)


    When first setting up an object sync, is it possible to pull all the objects for a particular salesforce object into WordPress?

    Thanks,
    Dan

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jonathan Stegall

    (@jonathanstegall)

    @danatpi not really, no. The plugin does have an import/export feature, but even if you had the matching JSON structure, all it really does is create maps between individual objects (so between individual posts and individual Salesforce objects that already exist). There’s not really a way to do a bulk import of all of the objects. I’d like to add that to the plugin at some point, but there’s no current plan for doing that.

    You could probably do it with a combination of developer hooks and making direct queries to the Salesforce API, but certainly there’s no documentation or support for that kind of thing at this point.

    Thread Starter danatpi

    (@danatpi)

    Thanks @jonathanstegall, very much appreciate the info.

    Hi @jonathanstegall, apologies for commenting in an old thread. What is your recommended way to inflate the database as per @danatpi’s request?

    There are about ~3000 records we’d like to fetch into the WordPress database from Salesforce. Should we write code to do an “Update” call on these Salesforce records which will be caught by your plugin making it create records in WordPress?

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    @mvpspl619 I would not recommend that you do this at all, honestly. But if you have the resources to try it and fix things that might possibly break, you could:

    1. Use the plugin’s import feature to import the records into the plugin as object maps. You’d have to generate the JSON yourself, so you’d probably want to do some manual records and then export it to get the JSON structure, and then have some way of generating a matching set.
    2. Then do some kind of update on the Salesforce records as you say.

    Some caveats:

    1. I’m not sure it would work. I think it would, but I’m not positive and would certainly not provide support for it on this forum, since it’s not a feature in the plugin.
    2. Your initial question of doing an update on those records in Salesforce would not work. This plugin doesn’t catch update records unless they already exist as object maps.

    Appreciate your quick response @jonathanstegall. Couple of follow up questions.

    1. We do already have about 3000 of these records in WP but in a different Custom Post Type. Hypothetically speaking if we add a custom field for this CPT called “Salesforce ID” and manually (outside the plugin) add the salesforce IDs to these ~3000 records, and setup your plugin to do the “Sync”, would it work?
    2. You said the “plugin doesn’t catch update records unless they already exist as object maps”, but I configured the plugin to act on Salesforce add/update/delete and it did end up creating a new WordPress custom post when I manually edited an Object in Salesforce. Am I misunderstanding you or is this not how it’s supposed to work?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pull all objects from SF into WordPress’ is closed to new replies.