Cannot find function recursiveFetch in object type

#1

I was looking into the DataExport.exportSampleData:

DataExport.exportSampleData('MyPersistableType')
wrapped org.mozilla.javascript.EcmaError: TypeError: Cannot find function recursiveFetch in object type MyPersistableType. (DataExport_exportSampleData.js#83)

The function recursiveFetch should come from Persistable but It seems the documentation is not correct/updated because it says it uses Persistable.recursiveFetch while this functions does not exists:

MyPersistableType.recursiveFetch()
VM3696:1 Uncaught TypeError: MyPersistableType.recursiveFetch is not a function
at <anonymous>:1:10
MyPersistableType.isA(Persistable)
true

How I can use the DataExport.exportSampleData function?

0 Likes