{% for objects in objects.results %}
<div class=“custom-module-content”>
<p>Deal Name: {{ objects.dealname }}</p>
</div>
{% endfor %}
I have added above code in custom module which is working fine on system page or membership page and even module preview link but won’t be able to see result for above code on website/landing page becuase of using crm_objects.
Can anyone help that how to display deals record with the given hubl code on website or landing page.
The documentation states that for security reasons, the crm_objects function can only be used to retrieve product and marketing_event objects on publicly accessible pages. Other standard objects, like deals, can only be accessed on password-protected or CMS membership login pages. Custom objects do not have the same restriction.
You might need to consider using a server-side language like Python or Node.js to handle the API calls and then display that data on your public-facing pages, ensuring you are following all relevant privacy laws.