Forum Discussion
Parshant
Boss
StanGromer, karthikeyan@ can u share this function as wellexecuteLiQLQuery(msg)?
karthikeyan
7 years agoGuide
<#function getFieldValue field="" defaultValue="" > <#if field?? && field?has_content> <#return field!defaultValue /> <#else> <#return defaultValue /> ---------------------- <#assign apiVersion = "2.0" /> <#function executeLiQLQuery qry isCount=false charSet="UTF-8"> <#if isCount> <#return (rest(apiVersion, "/search?q=" + qry?url(charSet) + "&restapi.response_style=view").data.size)!0 /> <#else> <#return (rest(apiVersion, "/search?q=" + qry?url(charSet) + "&restapi.response_style=view").data.items)![] />
Related Content
- 10 months ago
- 6 years ago