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

Avatar

Avatar
Boost 1
Level 1
stephanoss86718
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
stephanoss86718
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
stephanoss86718
Level 1

25-11-2019

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 4
somasundaramhal
Level 4

Likes

73 likes

Total Posts

71 posts

Correct reply

12 solutions
Top badges earned
Validate 1
Shape 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 4
somasundaramhal
Level 4

Likes

73 likes

Total Posts

71 posts

Correct reply

12 solutions
Top badges earned
Validate 1
Shape 1
Boost 50
Boost 5
Boost 3
View profile
somasundaramhal
Level 4

26-11-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 )

Avatar

Avatar
Boost 1
Level 1
stephanoss86718
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
stephanoss86718
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
stephanoss86718
Level 1

26-11-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