• Resolved danatpi

    (@danatpi)


    What would be the best way to conditionally prevent pulling data into WordPress based on a SF field. For instance, we have an “Approval Status” field and we only want to sync over data that is approved.

    Thanks,
    Dan

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

    (@jonathanstegall)

    You can use the object_sync_for_salesforce_pull_object_allowed hook, which is documented here. You can use it to check for the Salesforce value you want.

    Thread Starter danatpi

    (@danatpi)

    Oh awesome, sorry I didn’t see that. Thank you for the speedy response! This software is fantastically easy to use, keep up the good work!

    Thanks again,
    Dan

    Hi, @jonathanstegall

    Thanks for redirecting to this link. I read the documentation and it makes sense. My only question would be where should I put the code? Thanks.

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    @fvl1987 that is a bigger question than I can answer for you. Many times people put that kind of stuff into a functions.php file inside the theme. There are lots of articles about this, like this one. We don’t provide support for the filters in this plugin aside from the documentation, but like I say there are a lot of resources out there about developing with WordPress.

    Thanks, @jonathanstegall

    Regarding the fields to be filtered, I am trying to pull only Contacts that have a checkbox checked. What value should I use? I’m pretty now at this, I truly appreciate your help.

    Thanks

    • This reply was modified 5 years, 2 months ago by fvl1987.
    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    Well, here’s a really basic example of a plugin that I’ve used for this kind of thing in the past. https://github.com/jonathanstegall/example-salesforce-addon

    Again, we don’t provide support for these hooks; if it doesn’t work I can’t provide further help for you; it’s out of scope for this forum. You may want to look into hiring a WordPress developer if you need to go further with this.

    For now I’m going to consider this thread finished.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Conditionally supress pull’ is closed to new replies.