Hi all. This might not be a common issue to the large portion of the user base here, but for those who dabble and use CRM and Books integration, they know how painful it is that we have to wait for the 2-hour intervals for the records to sync; especially from CRM to Books.
Sure, you can 'force' the contact/account to be synced to Books by creating SO/Estimate/Invoice manually, but sometimes, you have automations, buttons, etc to handle the creation of these records and in that case, normally, we don't have any way to do so.
So, I searched and searched, and lo and behold, a way to do it. Now, the method was documented here:
However, it was not mentioned that this can be used to 'force' sync a particular record. So, its application, basically. With this, you can ensure that the contact/account exists first in Books before you create any SO/Estimate/Invoice for the respective record. Might not seem big, but it is from a developer's point of view. So, what you want to do is create a custom function/button, and use this script:
- orgId = "78213211";
- mp = Map();
- createsync = invokeurl
- [
- url :"https://books.zoho.com/api/v3/crm/contact/" + contactId + "/import?organization_id=" + orgId
- type :POST
- parameters: mp
- connection:"zbooks"
- ];
- info createsync;
Please note that "contactId" has been mapped to the Contact Id of the record, and "orgId" has also been defined in the first line. "zbooks" is the connection name I use and it's simple to create one. In CRM, Go to Developer Space > Connections > Create New > Find Zoho Books app > choose zohobooks.fullaccess scope to be able to use this connection for nearly everything regarding Zoho Books. Remember, the connection name is up to you, mine happens to be "zbooks".
To use this code to force sync an account record, simply change "/contact" in the url shown to "/account", and put the account Id in place of the "contactId".
You can use this upon the creation of the contact/account, or at any point you desire, really. But that's the critical point in my opinion at least.
Good luck!