Yannick Lepetit
Forum Replies Created
-
I just did it and it works!
Hello and thank you for your answer.
Actually I tried to use thejson_encodeon the array but I received nothing!
As I don’t know why, I decide to put again the [‘json’] line on the return array. It works for now. I’ll do changes when the new version will be available.Forum: Plugins
In reply to: [Object Sync for Salesforce] Trouble to pull from SalesForce to WordPressThanks again, I will add the field in the mapping to achieve what I need.
Forum: Plugins
In reply to: [Object Sync for Salesforce] Trouble to pull from SalesForce to WordPressThanks, I was able to do both field transformations with “object_sync_for_salesforce_pull_params_modify” hook.
If I need to pull only Salesforce Objects with a checkbox field (named ‘sync_to_website’) checked, do I have to do it with ‘object_sync_for_salesforce_pull_object_allowed’ hook and have the “sync_to_website” field in the mapping (to be able to test it on $object and return false if it’s not checked), or do I have other option?
NB: I don’t need this field in WordPress, just in SalesForce to know if it have to be synchronized, that’s why I ask for other solution.Forum: Plugins
In reply to: [Object Sync for Salesforce] Trouble to pull from SalesForce to WordPressThanks, I was able to pull data running job on “Scheduled Actions” but I’m not sure it runs alone. I have to fix that.
I also noted that date fields are converted into “more-readable” date. In my own import I kept “YYYY-MM-DD” format because, in my templates, I then convert them with custom functions. How can I modify this behavior during the pull request? Is their a hook (or a file I can modify)?
Last thing: on my SF “Programme__c” I have 2 fields linked to an Account object. On my import I did a sub request (“SELECT Name FROM Account WHERE Id = ‘$sfid'”), but on the normal pull the WP fields are replaced by Id. Where can I modify behavior to add my sub-query?
Thank you to take the time to answer us.