I have gone through the PDF for creating Dynamic Content in Zoho Sites that Zoho has provided, and I'm trying to set up a very simple Dynamic Content function on my Zoho Sites website to get records from our Zoho Creator app.
In Settings-->Connections from my Zoho Sites website, I added a connection to Zoho Creator called "zohocreator" with all scopes enabled. Then I went to Settings-->Dynamic Content in Zoho Sites and added a Dynamic Content app. In the main view for that app, I call a function called "fetchCoaches" so I can display a list of coaches. In the Functions section of my Dynamic Content app, I created a simple function called "fetchCoaches" with the following code:
records = zoho.creator.getRecords("productivitycoach", "bkbpc", "Coaches_Report", "" , 1, 10, "zohocreator");
return records;
I confirmed all of the parameters are correct and it should return several records. However, no matter what report link I use (and I've tried this with several different report links), it always returns a list with two null elements (where records.size() = 2, records.get(0) = null, and records.get(1) = null).
Why does this not work?