Expand my Community achievements bar.

Looking for JS to append new fields into existing custom schema?

Avatar

Level 1

hi Guys,

Is it possible for JS to append more dynamic fields/childNode into existing custom schema?
The project scope is to IMPORT data from feed, there is some data value that need automatically created new field upgrade in existing schema.

Am not able to find any JS Api > SchemaNode method,
its all only about return an object/string, not creat append child node for new attribute.

Let me kow is there any solution.

Thanks
Stephanos Sam

2 Replies

Avatar

Level 5

Hi,

You can try the following.

https://final-docs.campaign.adobe.com/doc/AC/en/jsapi/s-xtk-sqlSchema.html

eg building a schema. But I haven't tried it:

xtk.sqlSchema.BuildAndInstallSchemas ( String dataSource, String namespace, XML tableList )

Avatar

Level 1

hi dude,

I am wonder where can we find target dataSource id in given 1st parameter, the last parameter 'XML tableList',
we dont need all new tables, would prefer existing schema table that only work append new field in attribute element in the XML code.

Can you give sample xml for tablelist, will it update existing schema?

Thanks