Data table creation through service scripting
How can i create data table(s) with its data shape through service scripting?
How can i create data table(s) with its data shape through service scripting?
The DataShape which you are passing in the above shared code can also be created through script having primary key
var result1 = { dataShape: { fieldDefinitions : {abc: {name: "abc", aspects: {isPrimaryKey: true}, description: "", baseType: "STRING", ordinal: 1}} }, rows: [] };
var params = {
name: "DSwithPK" /* STRING */,
description: undefined /* STRING */,
fields: result1 /* INFOTABLE */,
tags: undefined /* TAGS */
};
// no return
Resources["EntityServices"].CreateDataShape(params);
Hope it helps
Thanks ,
Mukul Narang
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.