in the query, there was a hardcoded date and it is...
# suiteql
v
in the query, there was a hardcoded date and it is asked to change it into some variables so did i. Now i got this below feedback from my senior, i dont get it what should i do? Please anyone help me "you cannot just add the variable in the query as it is being processed as a kind of text. Go thru the below suiteanswer https://suiteanswers.custhelp.com/app/answers/detail/a_id/91313/loc/en_US"
j
Please post your entire query, the screenshot cuts off on the right
v
its on the suiteanswer link that i provided
var results = query.runSuiteQL({ query: 'SELECT customer.entityid, customer.email FROM customer WHERE customer.isperson = ?', params: [true] });
j
Please post YOUR entire query. I don’t see any dates in your example.
This one works:
Copy code
var results = query.runSuiteQL({
    query: 'SELECT customer.entityid, customer.email FROM customer WHERE customer.isperson = ?',
    params: [true]
});