You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

ROQL result fetching as text instead of count(desired output)

Accepted answer
18
Views
6
Comments
edited Feb 9, 2021 6:37AM in UI Extensibility 6 comments

Summary

Hi All, Our ROQL query is working fine in postman (testing tool) but we want to use this ROQL in BUI using javascript, where we are getting response as a string text instead of the desired output.

Content

Also, in Postman 'Get' method, headers, authorization is provided manually.
For using 'Get' method in javascript, we have used Connect Rest API as follows -
 
 
function countROQL(restUrl, sessionID, fname, lname, contID, email, brand)
{
console.log(restUrl + ' |-| ' + sessionID + ' |-| ' + fname +' |-| ' + lname + ' |-| ' + contID +' |-| ' + email + ' |-| ' + brand);
var ajaxUrl = restUrl + 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!