I tried this:
var fieldValues = currentItem.get_fieldValues();
But it returns [object object]. How can I see through this without know the column name?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityYou can use below script.
var fieldValues = currentItem.get_fieldValues();
console.log(JSON.stringify(fieldValues));
Once script is executed second statement will print the data in console in readable format.