After exhausting my google searching, I am now asking the community. Can I populate a list page with values via google apps script?
I would have thought you could, but I'm not sure.
So assuming my site is called portal, and assuming my list page is called cpu-invoice, and finally assuming my two columns for the list pages a: Invoice Number and Link.
Now, let's say I wanted to add Invoice Number: 88888 and the link as: www.google.com
I thought I could simply modify the code provided on the Developer's Reference site: See example below:
var page = SitesApp.getSite("portal").getChildByName("cpu-invoice");
var listItem = page.getListItems();
When I try this code however, I get a message about the listItem as a null value.
First: Can you populate the list via code?
Second: Where am I going wrong?