How do I create a Schema from Javascript | Community
Skip to main content
New Participant
September 29, 2021
Solved

How do I create a Schema from Javascript

  • September 29, 2021
  • 2 replies
  • 1427 views

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.
Best answer by LaurentLam

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
October 13, 2021

Hi @tapank25383277,

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

Thanks!

Sukrity Wadhwa
LaurentLam
LaurentLamAccepted solution
New Participant
September 29, 2021

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)