Hello, I want to store the webform fields in a dataschema. The web url should be embedded in the email. New dataschema doesn't have any data present. How can I store the webfrom data in the new schema. | Community
Skip to main content
Level 3
February 3, 2017
Solved

Hello, I want to store the webform fields in a dataschema. The web url should be embedded in the email. New dataschema doesn't have any data present. How can I store the webfrom data in the new schema.

  • February 3, 2017
  • 1 reply
  • 1736 views

Hello, I want to store the webform fields in a dataschema.  Dataschema is linked with recipient data schema on the basis of recipient id. It has new fields whose values will be captured from webform and cusid field (linked with recipientID of nms:recipient)

The web url should be embedded in the email. New dataschema doesn't have any data present.  How can I store the webfrom data in the new schema.

I have tried changing the document type as my new data schema. If I do so, preloading url changes to primarykey of new dataschema.  In the storage activity, I am able to see only the new dataschema fields used in the page. Records are not getting inserted.

If I try using recipient as document type and store all values of the webform in variables , what is the javascript code which I can write to insert data into my new dataschema.

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 vraghav

Hi ckumari12 ,

Thank you for writing in.

All you need to do is leave the document type as recipient.

Then capture the relevant details on the web page and in the transition add a JS activity.

Inside JS activity prepare the relevant schema object XML and make use of xtk:session's Write method to insert a new record in your schema.

For more information please refer to official documentation Data oriented APIs

Hope this helps.

Regards,

Vipul

1 reply

vraghav
Adobe Employee
vraghavAdobe EmployeeAccepted solution
Adobe Employee
February 3, 2017

Hi ckumari12 ,

Thank you for writing in.

All you need to do is leave the document type as recipient.

Then capture the relevant details on the web page and in the transition add a JS activity.

Inside JS activity prepare the relevant schema object XML and make use of xtk:session's Write method to insert a new record in your schema.

For more information please refer to official documentation Data oriented APIs

Hope this helps.

Regards,

Vipul