Yes, you could, we are writing samples, here is the sample:
// code snippet
var expression = {
name: "account",
from: "accountid",
to: "parentcustomerid",
linkType:"inner",
alias:"anyuniquealaisname ",
};
context.parameters.dataSetGrid.linking.addLinkedEntity(expression);
context.parameters.dataSetGrid.addColumn("new_additional_attributename", "anyuniquealaisname "); // anyuniquealaisname same as above
context.parameters.dataSetGrid.refresh();
If u need to get value of those linked entity columns, u could check the column name from
context.parameters.datasetGrid.columns,
then use
context.parameters.datasetGrid.records[recordId].getValue(<colum_name_u_want>)
Feel free to let us know your concern