Error in Zoho CRM Deluge Script on searching record - zoho

I am getting an error, when trying to execute Deluge script under workflow, when writing a function for Account module, where I need to fetch records based on filter criteria. I run below query script, but its showing the error.
response=zoho.crm.searchRecords("Accounts", "(Account Name|starts with|A*)");
info response;
Error response:
{"code":"INVALID_QUERY","details":{},"message":"invalid query formed","status":"error"}
This query is the default query provided by Zoho blog itself. I just copied and pasted it.
Right now I am using trial Zoho account. May it be the reason?

Please use the below script as you have the search function written in API V1, which is depreciated since February 2018. Refer to the link: https://www.zoho.com/deluge/help/script/crm-search-records-v2.html
response=zoho.crm.searchRecords("Accounts", "(Account_Name:starts_with:A*)");
info response;

Related

Trying to get primarycontactid of particular account in Dynamics 365 CRM through API and getting "Bad Request - Error in query syntax"

I'm sending a GET request to
{orgname}.crm.dynamics.com/api/data/v9.1/accounts(accountGuid)$select=_primarycontactid_value
and getting an error:
Bad Request - Error in query syntax
I'm using the query syntax I found here https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/247815/how-to-get-all-the-primary-contact-of-a-specific-account-through-api/688381
If I take off the $select parameter, I get a JObject with all of the attributes, I'm just not sure why the query syntax is wrong using that parameter. Any help is greatly appreciated.
Try this below as there is a typo in your snippet. Read more
{orgname}.crm.dynamics.com/api/data/v9.1/accounts(accountGuid)?$select=_primarycontactid_value
To avoid such errors, you can always use CRM REST builder to compose and test queries.
Note: I noticed it is not your mistake, I even corrected the snippet in original forum thread from Aric. :)

Cant figure out, why i get a 403

i try to setup the youtube api but i get a 403.
I tried to setup several times- without success.
https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails&id=-DIJvggBrg8&key=xyz
Maybe someone is able to help me or even login to the console for a setup?
The 403 error by itself is not of immediate use. Its attached error code (as I already pointed out above) sheds light on the things that happened.
The API responds to any query you make with a text (that is structured in JSON format). That response text contains the needed error code.
I suggest you to proceed with the following steps:
delete the old API key (right now it is still accessible!);
create a new API key and
run your API query using the new key and then post here the API response text.
Note that I checked the video -DIJvggBrg8 to which your query refers to with my own API key and got no error but a JSON text describing the video.

SonarQube REST APIs : Read Metrics

I am using SonarQube version 6.7.1
I am trying to get JSON Response for our projects sonarQube statistics
Just want simple details like
Bug count, vulnerability count , % code duplication , code coverage
Tried URL http://sonar-server:9000/api/metrics&json=true but got error Unknown url, can someone point out correct URL
End Aim is to store Above counts for each run in time series DB .. any suggestions how to do it ?
May be i am not reading / understanding documentation clearly , possibly a pointer to tutorial or example or some other pointers will help me,
Try to use sonarqube.server.com:9000/api/metrics/domains, I am able to get json response from this.
APIs that you can use are listed at:
sonarqube.server.com:9000/web_api/api/metrics/domains/search
but just remove "web_api" while calling, to get json response.

Google picker does not work without filter being applied for some users

we have an integrated with google picker(read-only scope,Docs view) it use to work fine but recently some users are getting blank screens as soon as the pop up shows but when they select some filter everything starts working fine after that no problems.
using developer tools i see all apis returning 200 for that first request
but there were no docs in response(i believe this is the api responsible for bringing docs in picker 'https://docs.google.com/picker/pvr')
when there are no docs returned in above api google is calling another api i assume it is to log error's probably(//docs.google.com/picker/ohnoes)
this api has following error params in it
&error=Cached and requested query mismatch
&line=Not available
&viewToken=["all",null,{"query":null}]
&ms=97
&transferDocs=false
&numErrors=1
has anybody else faced the similar problem
what do error "Cached and requested query mismatch" means in context of drive docs
Fyi - most accounts facing this problem seems like are of company domain for ex "jondoe#company.org"(this is a google account with company domain)
Filters Image
Thanks for your help.
not sure but looks like issue was may be related to google bug
https://issuetracker.google.com/issues/64825685
for me the code that was not working was:
addView(google.picker.ViewId.DOCS)
replaced this code with below code which works as expected
var view = new google.picker.DocsView();
view.setIncludeFolders(true).setOwnedByMe(true).setParent('root');
addView(view).

Error: Found a string attribute with unrecognized format

im currently using MSCRM Toolkit for Dynamics 365 and wanted to export Audit reports.
When using the Audit Export Manager
On a CRM Online 2016 Update instance
While executing the "(Re) Load Source Structure" command
the following error message is received:
Error: Found a string attribute with unrecognized format.
How can i resolve the issue stated above so that i can load the entities, etc. to make audit export possible?
Here is the screenshot of the error, though we put the needed credentials still same error we still get.
Please help, we have presentation to come hope that professionals in Dynamics365 or those that have answers to my question can help
I came across this with MetadatDiagramConsole.exe as well when trying to pull from Dynamics365 online environment. I found changing RetrieveAsIfPublished to true worked.
Also the wonderful toolbox team has posted an updated version recently that worked for others trying the audit process you mention.
https://mscrmtoolkit.codeplex.com/releases/view/630624

Resources