generateIdForRecord gets type & object properties passed to it