How do I create a Schema from Javascript | Community
Skip to main content
New Participant
Sep 29, 2021 8:29 AM UTC
Solved

How do I create a Schema from Javascript

I am trying to create a schema from Javacript by xtk.session.Write(schema definition). 

This is from external data source and will be a mapping schema in Adobe Campaign.

The schema is getting created but I get error like below.

unable to load document of identifier 'test:Tapan' and type xtk:schema + adobe campaign.

 

Can Anybody help me on this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
LaurentLam
LaurentLamAccepted solution
Level 5
Sep 29, 2021 11:43 AM UTC

I've never tried to it in the past:
you should perhaps use:
BuildOutputSchema (adobe.com)

And don't forget that you need your schema to be mapped to an existing table on your ACC db side...
If not, check:
UpdateDb (adobe.com)

2 replies

Sukrity_Wadhwa
Employee
Oct 13, 2021 6:37 AM UTC

Hi @tapank25383277,

Was the given solution helpful to resolve your query or do you still need more help here? Do let us know.

Thanks!

Translate
Sukrity Wadhwa
LaurentLam
LaurentLamAccepted solution
Level 5
Sep 29, 2021 11:43 AM UTC

I've never tried to it in the past:
you should perhaps use:
BuildOutputSchema (adobe.com)

And don't forget that you need your schema to be mapped to an existing table on your ACC db side...
If not, check:
UpdateDb (adobe.com)

Translate