Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
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.

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

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