Looking for JS to append new fields into existing custom schema? | Community
Skip to main content
stephanoss86718
November 26, 2019
Question

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

  • November 26, 2019
  • 2 replies
  • 3119 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

somasundaram_h
Community Advisor
Community Advisor
November 26, 2019

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
November 26, 2019

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