How can I insert a row into a subform using API V2 and PHP SDK
Looking at the V2 documentation on subforms, I do not see any documentations about how to insert rows into a subform using the PHP SDK. ie: https://www.zoho.com/crm/developer/docs/api/insert-subforms.html How would I go about doing that? I have tried something like this with no success, where "Debt_Matrix" is my subform: $zcrmRecordIns = ZCRMRecord::getInstance("Contacts", $contactId); $zcrmRecordIns->setFieldValue("Debt_Matrix", [ [ 'Priority' => 1, 'Creditor' => 'Creditor',
Not able to fetch data from https://www.zohoapis.com/crm/v2/org when access token generated from https://accounts.zoho.eu/oauth/v2/token
We have a client id registered in https://accounts.zoho.com/developerconsole. Now configured that client id Multi-DC enabled for EU. So with the Client Secret for EU, we can generate the access token using following API. https://accounts.zoho.eu/oauth/v2/token But with this generated access token, when we are trying to fetch organization information using following API, it is giving message UNAUTHORIZED (HTTP ERROR CODE : 401) https://www.zohoapis.com/crm/v2/org But If we try to fetch the organization
I can’t get the Contacts data in the sandbox.
With these settings, I get records from the live account private $configuration = [ 'client_id' => '1000.AAA', 'client_secret' => 'BBB', 'redirect_uri' => 'CCC', 'currentUserEmail' => 'DDD', 'token_persistence_path' => './', ]; $contacts = ZCRMModule::getInstance("Contacts")->getRecords(); Result: array of Contacts. With these settings, I do not get records from the sandbox private $configuration = [ 'client_id' => '1000.AAA',
CRM Invalid data
I am trying to get potential data in CRM, but am getting below error. "{"code":"INVALID_DATA","details":{},"message":"the relation name given seems to be invalid","status":"error"} " Please find PHP curl request given below, $code = (isset($_REQUEST['code'])) ? $_REQUEST['code'] : ""; $client_id = "xxxxxxxxxxxx"; $client_secrect = "xxxxxxxxxxxxxx"; $uri = "http://localhost/zohoapi/apitest.php"; ?> <a href="https://accounts.zoho.com/oauth/v2/auth?scope=ZohoCRM.modules.all&client_id=<?php echo $client_id; ?>&response_type=code&access_type=offline&redirect_uri=<?php echo $uri; ?>">Get access Token</a>
Problem reading all responses from API - Unknown zcrmsdk\crm\exception\ZCRMException
Hi, I'm upgrading a ZOHO PHP SDK client application from V1 to V2. In order to keep the V1 implementation running while i'm working om the new one, i've created a new client_id for the new implementation. I've updated the zohocrm/php-sdk from 1.0.2 to 2.0.9 using composer. Created the new client_id Got a grant token with the following scopes: aaaserver.profile.READ,ZohoCRM.users.ALL,ZohoCRM.modules.ALL,ZohoCRM.settings.all Got a refresh token and setup file persistence. Authentication looks good.
Always getting Access token expired error generating the Access and Refresh Token from Grant Token
I'm working to migrate our API integration in C# from v1 to v2. I've added my Client Id but always I get the same error executing the GenerateAccessToken method to generate the access token 'Access token expired'. I've set the time to expiry in 10 min. Any idea what should be other reason to fail? I'm using aaaserver.profile.READ,ZohoCRM.users.ALL,ZohoCRM.modules.ALL,ZohoCRM.settings.ALL in scopes.
Issue with customModule insertion and fetching records
Unable to insert data and retrieve data from customModule with v2 but it was working with xml insert and fetch record using curl. I have registered app with admin account not with super admin account. Please guide me as I am struck with this. Tried different options : => https://www.zohoapis.com/crm/v2/CustomModule_1/search?criteria=((Email:equals:pankaj.k@sarv.com)) Response : { "code": "INVALID_MODULE", "details": {}, "message": "the module name given seems to be invalid", "status": "error" } =>https://www.zohoapis.com/crm/v2/Custom_Module1/search?criteria=((Email:equals:pankaj.k@sarv.com))
How to Generate Access Token from Grant token and then from Refresh token
Hi this is my first ever first here! I am working on PHP SDK, right now i have created self token from developer console, now when i am trying to add generate access token from the below code i get url not correct, here is the code https://accounts.zoho.com/oauth/v2/token?code=mycode&redirect_uri=urk&client_id=code&client_secret=code&grant_type=authorization_code So i am stuck here!
Id given seems to be invalid
Hi there. I'm using PHP SDK for creating a lead from my website form. It's working but sometimes I get the response: ( [code] => INVALID_DATA [details] => Array ( [id] => 3220979000034212261 ) [message] => the id given seems to be invalid [status] => error ) I'm not passing any "ID" tough... It doesn't happen all the time. Does anyone know something about it? Thanks!
Create a lead from PHP API gives an error: 4401Unable to populate data, please check if mandatory value is entered correctly.
Hello, I'm getting this error: 4401Unable to populate data, please check if mandatory value is entered correctly. And I'm sure, that i passed all mandatory variables. This is my query: https://crm.zoho.com/crm/private/xml/Leads/insertRecords?newFormat=1&authtoken=xxxxxxx&scope=crmapi&xmlData=%3CLeads%3E%3Crow+no%3D%221%22%3E%3CFL+val%3D%22Company%22%3Efsfds%3C%2FFL%3E%3CFL+val%3D%22Email%22%3Edavid%40domain.es%3C%2FFL%3E%3CFL+val%3D%22First_Name%22%3EDavid%3C%2FFL%3E%3CFL+val%3D%22Last_Name%22%3EDavid%3C%2FFL%3E%3CFL+val%3D%22Mobile%22%3E669904426%3C%2FFL%3E%3C%2Frow%3E%3C%2FLeads%3E
Send email using zoho crm API
How do I send a email to a lead using Zoho CRM API? also a side question that might be related to this - what's the <FL val="Send Notification Email">True</FL> from here: https://zohocrmapi.wiki.zoho.com/insertRecords-Method.html#Events can it be used for automatic sending out an email when a new Lead is added? Thanks.
ZOHO CRM SDK returning currentUserEmail is not passed even when value is passed.
Hi, I am trying to use the Zoho CRM SDK c# for accessing the Zoho API from our application. I have passed the configuration details as shown below and receive a error message stating that Given User not found in configuration, Please assist in providing a response. Note - that i have masked the values in the below configuration. The actual values are entered correctly as they have been setup as part of client id creation. Dictionary<string, string> config = new Dictionary<string, string>()
Zapier Integration - Datetime field pulling month value for minutes
I have an integration setup between Zapier and Zoho CRM using the new API. When creating an event entry, I pass a value for the start date/time formatted as: 2019-12-15T15:30:00-06:00 However, the Data Out is: 2019-12-15T15:12:00-06:00 It appears that the Month value is being passed to the minutes value. When I changed the test date to a November date the minutes get changed to '11' instead of '12' as shown in the example above.
Note Attachment - DownloadAttachment() receive Empty ResponseJSON
Hello, I'm trying to get an attachment from Notes Record using c# sdk. The problem is that I get an empty response even if attachment exists. Please see the code below: 1. First I get the "Note" instance. ZCRMRecord recordIns = ZCRMRecord.GetInstance("Notes", {_note_ID_}); 2. get The attachment - try to download attachment FileAPIResponse response = recordIns.DownloadAttachment({_attachment_ID_}); 3. received: {STATUS_CODE=OK,RESPONSE_JSON=,RESPONSE_HEADERS=X-RATELIMIT-LIMIT=0;X-RATELIMIT-
Testing ZOHO CRM API on different organizations / datacenters
Hello, we have developed an integration of our call center service CloudTalk with ZOHO CRM. We have clients all over the world so we would like to test the integration on every datacenter. How we can reach that, please? We have ZOHO developer account situated on the .eu datacenter. For instance, we would like to test the integration on your new .au datacenter. Do we have to create a new organization on that datacenter? Thank you. Best regards, Kali from CloudTalk
Uncaught zcrmsdk\crm\exception\ZCRMException Caused by:'invalid oauth token'
Hello Zoho Team, I am facing this issue again and again when I try to access the Leads module. I generated the grant token with this scope "ZohoCRM.modules.ALL". This is my configuration $configuration=array( "client_id"=>$client_id, "client_secret"=>$client_secret, "redirect_uri"=>$redirect_url, "currentUserEmail"=>$user_email_id, "access_type"=>$access_type, "api_domain"=>"https://www.zohoapis.com", "accounts_url"=>"https://accounts.zoho.in" ); $rest=ZCRMRestClient::getInstance();
CRM what to add conditions in layout
Hello, I am doing layout content and I have this schema : When "Y" is "W" >>Condition 1 (="W" is "W1") = A1, A2, and/or A3 >>Condition 2 (="W is "W2") = B1, B2, and/or B3 I want to ass more condition ("W3" and "W4") but I can't. The button "add condition" disappear after 2 conditions added for one option. Can you help please ? Thanks,
Zoho API v2 - PHP - InsertLeads - Fields
I want to know, my Leads insertion is successful, but the following fields are not affected. "Created_By", "Created_Time", "Last_Activity_Time", "Modified_by" and "Modified_Time" Is it even possible to modify those fields ? The time fields are filled with the current Date and Time The "Created_By" and "Modified_By" are filled with the user information of the token giver For the time type filed, I'm using the following format "2019-05-05T14:20:23+05:30" For the "Created_By" and "Modified_By", I'm
Zoho CRM Custom Connections
Hey Everyone, I'm working on adding a connection as a custom service in CRM. I have all of the required credentials for Oauth2.0, but I'm having trouble with authentication, though it is working for me in my Postman client. When I insert all of my credentials, I am getting the following error: This error isn't giving me any indication of what is going wrong with the authentication. I am not sure which parameters I should and shouldn't include in the URLs (include scope & client_id in the query string?)
PHP SDK: generateAccessTokenFromRefreshToken returning NULL
Hello all, I'm having problems generating the access token from refresh token when using the generateAccessTokenFromRefreshToken function. Firstly, I'm using CURL to receive both the access_token and refresh_tokens. Maybe this is where I am going wrong, as the access token is already successfully created? If anyone could help, that would be great. Please see code below: $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://accounts.zoho.eu/oauth/v2/token?client_id="
I'm having a problem with Bulk Write API in Zoho CRM Plus Contacts Module
Hi . I have some questions about integrating REST API with my Nodejs App. I'm new to Zoho and haven't used it before. The current client I have is using Zoho CRM Plus and he is requesting a csv file upload which he is going to do that an automatic process everyday , which I'm doing to achieve this by doing a cron job in my server and executing bulk write api functions. I've already created a developer app and got the refresh token with this scope : ZohoCRM.bulk.ALL,ZohoCRM.modules.contacts.all,ZohoFiles.files.ALL,ZohoCRM.org.ALL,ZohoCRM.settings.fields.all
WARNING for anyone using Zoho SDKs
After our code randomly stopped working, and started erroring with bizarre errors, I discovered that the PHP SDK (at least) has had a bunch of params changed. $module::getRecords() has changed, as well as a huge number of other things. Here's the commit: https://github.com/zoho/zcrm-php-sdk/commit/d09a5731ecdd47dbc7eb8371883296139069f6c7 This should have been a major version bump, but it's appeared in 2.0.9, instead of 3.0.0
cURL REST API: INVALID TOKEN
Hello all, I was having problems with the PHP SDK, so am also trying with cURL, however I'm getting a INVALID TOKEN response. I've successfully received both an access_token and refresh_token from https://accounts.zoho.eu/oauth/v2/token endpoint. I'm then using curl and pasting that access_token with REST API. For example: curl "https://www.zohoapis.com/crm/v2/settings/modules" -X GET -H "Authorization: Zoho-oauthtoken PASTED_ACCESS_TOKEN_FROM_PREVIOUS_RESPONSE" However, I'm getting the following
Looking for a Zoho Freeelancer(contract basis)
I'm looking for a Zoho Pro Freelancer to customize my CRM that should align with my business process. Please refer someone who is perfect for this job. I don't have the time to post it on any freelancing sites.That's why I post it here. Thanks.
Why no zoho meetups in Pune, India?
https://community.zoho.com/meetups/#calendar_view
CRM API Version 1 vs. Version 2
Hi, I'm starting to integrate our site with Zoho CRM, and there seem to be 2 API versions: 1) https://www.zoho.com/crm/help/api/ 2) https://www.zoho.com/crm/newhelp/api/v2/#introduction The V2 API looks great - but I can't see how to authenticate - it says OAuth, but doesn't tell me what the Token Request/Access/Refresh URLs are, or where I can get a Client ID & Secret, and the Zoho-Authtoken authorization fails. The V1 API has better documentation of Authentication, but worse documentation of API
Searching record with Invoice_Number working only one Id
Dear Sir, I am trying to get record with Invoice_Number, but it returns with no content. If I provide Invoice Number "OT100585" then it returns data there. But for all other Invoices such as "FABS000559" which is available on my zoho account, it return No Content. I generated a fresh tokens for it. those worked find but end result is same. Can you guide me where I am making mistake. Regards
Bug in setExpiryTime
EN el archivo "vendor\zohocrm\php-sdk\src\oauth\ZohoOAuthClient.php" del SDK hay un problema en la funcion getTokensFromJSON() y es que al hacer el setExpiryTime(), llama a la funcion getCurrentTimeInMillis() que retorna los milisegundos y suma los segundo de expitesIn que retorna la respuesta de la api lo cual ase q el tiempo de expiracion de expiracion del token sea como 3 segundos en vez de 1 hora como deberia ser
Zoho CRM PHP SDK v2 - Concept Issues
Hi, It seems that although you are able to provide a applicationLogFilePath configuration parameter when initializing ZCRMRestClient, you are unable to do anything about OAuthLogger, nor are you able to completely turn off OAuth logging in the SDK. Here's a snippet from zcrmsdk\oauth\utility: public static function writeToFile($msg) { $filePointer = fopen(dirname(__FILE__) . "/OAuth.log", "a"); fwrite($filePointer, sprintf("%s %s\n", date("Y-m-d H:i:s"), $msg)); fclose($filePointer);
Seeing API timeouts today
Hi, I'm experiencing constant timeouts in API calls and also authentication today, checking the status page there's no outage information. Was there any change in the API that would generate this issue? Thanks.
Kaizen #7 - URL Encoding while making API Calls
Welcome to another week of Kaizen. In this post, we will discuss things you need to handle in your code before you start making API calls to Zoho CRM. If you have an application that is integrated with Zoho CRM, it will contain the code for making API calls with different request methods—GET, POST, PUT, and DELETE. We will explain the things you need to handle for each of these methods, before you use it to make API calls to Zoho CRM. a. GET method A GET method is used to retrieve data/resource
Can't retrieve access token via JavaScript implicit flow
I am having problems retrieving the expected response containing the access token, using these instructions: https://www.zoho.com/accounts/protocol/oauth/js-apps/access-token.html In the responsive, I instead receive a Zoho login box that appears to want credentials. Maybe I am misunderstanding, but I was hoping to make an AJAX call to retrieve the access token, then use that token to make subsequent API calls. All this should be transparent to the user. Is this possible via JavaScript alone?
How to add new Line to Button Action
Hey guys, Got a very simple function that looks at an account and returns a basic stack of information for that account that we need to keep our vendor's happy. The function is simple, it goes into the Account, finds all the data and returns a string. The only issue is the "\n" (Newline) is not being encoded to <br> on when the button is actioned. I tried \r but that actually returns the string "\r". Is this a bug or is there another way to implement line breaks? accountId = accID.toLong(); rec
Deploying python crm sdk in google cloud platform(GCP)
Deploying python crm sdk in google cloud platform(GCP), not working. 1. After deployment in google cloud for client_library.log file in log folder its giving an exception called -read-only file for example Exception: [Errno 30] Read-only file system: '/20191120t105536.422578541552524233/log/client_library.log' 2. the zcrm_outhtokens.pk file data is different when we run it locally and when we deploy it google cloud and run it for example in local ->zcrm_outhtokens.pkl--file data is € •
How to make api connection through node js for Zoho CRM
Hi, I have tried to make an api call from Zoho Extension to Zoho CRM. But I get an error "invalid client error". Please help me to make an api call to get the details from Zoho CRM and also I'm in need of sample code for reference.
Problem with inserting record into custom module API V2 cURL
Hi, I have a problem with custom module, i am using the correct module name CustomModule2, but after sending the data they do not appear in Zoho module. With standard modules (Contacts) everything works fine. I do not know what the problem is. My code: Thanks
PHP SDK 2.0 - Can't get custom views for Deals module
Hello, I've been encountering an issue with trying to fetch a list of custom views using the PHP SDK. Using this same module instance, i am able to fetch all the Deals records I want, it works very well. But when I try to get my list of custom views, I encounter this error: and I've attached the response info below with IPs blanked out Could this possibly be an error with permissions when I generated the access token? I'm unable to think of any other issues. Thank you in advance.
Update my code from API v1 to v2
Hi guys Ive got a simple form that when submitted inserts the form values into Zoho. The Zoho code is very simple: $curl_connection = curl_init('https://crm.zoho.com/crm/WebToLeadForm'); curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($curl_connection, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl_connection,
Bug in php-sdk
When the oAuth token is created, the expiry time is managed in Milliseconds https://github.com/zoho/zcrm-php-sdk/blob/master/src/oauth/ZohoOAuthClient.php#L119 But, the response object is saying 'expires_in=3600' to it, which is only 3.6 seconds, instead of one hour. This needs to be multiplied by 1000 before using it in setExpiryTime() For helping people google this problem, you'll see this trigger {"error":"access_denied"} randomly, or with the exception "Exception while fetching access token from
Our User login to ZOHO CRM
Is possible that our own crm users can login to ZOHO CRM or Our contacts can login to ZOHO CRM
Next Page