• Resolved admm8h

    (@admm8h)


    I’m sorry if this is an ignorant question, i’m just trying to better understand how things are working.

    I’ve recently taken over a project that uses this plugin to map Salesforce fields to WordPress. This is all working fine, however, i’m trying to figure out how or when does WordPress update itself when adding in new data in SalesForce.

    For example, in SalesForce i have updated a Price Field which is mapped to a custom field on my WordPress site. But the new price is not being updated on WordPress. Am i missing a trick somewhere or is there something extra functionality that i need to develop in order to achieve this?

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter admm8h

    (@admm8h)

    UPDATE:

    Just to confirm, In WordPress within the Salesforce settings, under the Authorize app, it says Salesforce is successfully authenticated.

    I came across the docs and it suggested to install the WP Crontol plugin to see wether the pull jobs are running as expected. However, upon looking at the list of cron events, none of them relate to SalesForce. This seems to suggest the cron event for pulling data doesn’t exist? Here’s a screenshot of the list of cron events on my site: https://imgur.com/a/FDEQBpv

    And here’s a screenshot of the debug log, the same thing keeps popping up every couple of minutes: https://imgur.com/a/O3W5RTI

    Thanks.

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    @admm8h the ActionScheduler cron entries are the ones that this plugin relies on, so your install does appear to be running them.

    That log entry where it says the query has not yet run is what the plugin sends (if debug is enabled) right before it asks Salesforce for updated records. That is, immediately after that log entry it is supposed to make an API call to Salesforce to get updated data based on your settings.

    I think the first thing you should do is click on that log entry. When it opens, it’ll have details about the exact Salesforce query it has prepared to run. Assuming there’s a query in there, you could run that query in the Salesforce developer console and make sure it returns results.

    That is where I would start, I think. If the Salesforce query returns results but the plugin is not, you might have a plugin cache error or a server error or something like that.

    Also, the log entry where it shows the Salesforce API HTTP request contains the full result of the API request after it has run. You could also click on any of those log entries and see if they return anything useful.

    Thread Starter admm8h

    (@admm8h)

    @jonathanstegall Thank you for your reply Jonathan.

    What’s interesting is, when i create a new event in SalesForce, it successfully creates the post on WordPress (as a draft). The problem seems to only be with updating existing posts.

    I’ll run those errors through the Salesforce developer console and see what i can find.

    Once again thank you for your help thus far.

    Thread Starter admm8h

    (@admm8h)

    So upon further tests, it seems the Salesforce API HTTP Request is returning an Array with empty values.

    Running the Salesforce Query in the Salesforce Developers console seems to return no results as you can see here.

    I can confirm that the Pull request is partially working, as creating a new entry in SalesForce successfully creates a new Post on WordPress. It’s only when i try to update existing values in SalesForce that it does not update its corresponding fields in WordPress.

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

    (@jonathanstegall)

    @admm8h that is helpful. Since the Salesforce query itself returns no results, the plugin is behaving as expected. If the query result it has run is empty, it will stop trying to make any pull requests.

    There may be an issue with the query the plugin is generating, but I am not sure I can speak to that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘When / How does data get pulled into WordPress from SalesForce?’ is closed to new replies.