Field IDs for Merging

Is there any easy way to get a list of Field IDs so that I can set-up a webmerge.

I have a lengthy questionnaire that I want to merge into a Word template.

How can I easily find all of the Field Ids? I have serached and searched but there does not seem to be any direct answer to the question. I found some cool script for returning the record ID as a field in the object (will be using) but I still need just the Field IDs.

Ideas?

 

Thanks!

Thank You!

Hello Tara,

 

Use below code to get each object Fields ids 

 

var ObjectId = "object_1";

$.ajax({
url: 'https://us-api.knack.com/v1/objects/' + ObjectId+'/records?page=1&rows_per_page=1',
type: 'GET',
headers: {
'X-Knack-Application-Id': APPId, // change to your app's API info
'X-Knack-REST-API-Key': APPKey
},

success: function (response) {
console.log(Object.keys(response.records[0]));
}
});

This only works if you have at-least one record in object.  

Regards,

Sunny Singla

ssingla1985@gmail.com

+919855089359