Finding the number of fields in a datashape
Hi all
In relation to this article: https://community.ptc.com/t5/IoT-Tips/DataShape-Nuances-Tips-Tricks/ta-p/817583?search-action-id=107104588871&search-result-uid=817583,
How can one find the number of fields in a datashape?
I have tried this:
let result = infotableData.DataShapeName.fields.length;
However this is the error I keep getting: TypeError: Cannot read property "fields" from undefined.
Thank you.


