Skip to main content
stephanoss86718
11月 26, 2019 1:03 午前 UTC
質問

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

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 の返信

somasundaram_h
Community Advisor
Community Advisor
11月 26, 2019 2:19 午後 UTC

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 )

翻訳
stephanoss86718
11月 26, 2019 9:16 午後 UTC

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

翻訳