Payal i got this error and below is my snippet for the coding. Is there missing something?
FreeMarker template error (HTML_DEBUG mode; use RETHROW in production!)
The following has evaluated to null or missing:
==> page.context.user [in template "preview" at line 7, column 220]
<div class="profile-likes">
<div class="profile-flex"><img src="/html/assets/icon-posts.png" /> <#assign getMetricsPost = rest("2.0", "search?q=" + "SELECT id,value FROM metrics WHERE id IN('net_overall_posts') and page.context.user.id='${page.context.user.id}'"?url).data.items/> <#list getMetricsPost as userMetricsPost>
<span>${userMetricsPost.value}</span> </#list> Posts </div>
Regards,
Nad