• Resolved blipps

    (@blipps)


    Hello,

    All the posts that come into WordPress from salesforce are drafts. I looked up and down for a solution before posting but I’m not seeing much. Is there a way to bring them in as published?

    Also, while I’m here. I have been mainly doing testing and I noticed if I delete posts that were brought in from SF and then try to reimport them by updating the system mod time using apex code that the posts are not brought back over. If there something that would stop them from making it back to WP?

    Thanks ahead and sorry for what might be stupid questions…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter blipps

    (@blipps)

    Well…

    I found this right after I posted and it works: https://gist.github.com/jonathanstegall/5919e8dcf333336d625f8d87a870dcf5

    However, if I could still get some insight on my second question that would be awesome.

    Thanks

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    To your second question, here’s how the plugin works:

    • When you create a post from Salesforce, the plugin creates a database row that connects the post with the Salesforce record.
    • This database row gets deleted if the plugin is set to track deletions. That is, if you’ve set it to delete the Salesforce record, it’ll get deleted when the post gets deleted. Or vice versa, if you delete the Salesforce record.
    • If you don’t set the fieldmap to do that, the database record will stay and will prevent the record from being mapped again.
    • If the plugin tries to map a record that has been deleted and it runs into an error, it will create an entry for that on the Mapping Errors tab of the plugin. There’s a little bit of documentation (it should be expanded probably, someday) about that here: https://github.com/MinnPost/object-sync-for-salesforce/blob/master/docs/mapping-errors.md

    If you don’t see the row in the Mapping Errors tab, the only way to delete it really is to remove the data from the wp_object_sync_sf_object_map table in the database.

    But regardless, if you don’t delete the corresponding row from the database, you won’t be able to remap the same record.

    Thread Starter blipps

    (@blipps)

    Thank you, Jonathan! I appreciate the fast and detailed response. Need more plugin devs out there like you! Awesome plugin btw!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘All posts come into WP as drafts’ is closed to new replies.