Expand my Community achievements bar.

Adobe Campaign User Groups are live now. Join our Adobe Campaign User Groups and connect with your local leaders!
SOLVED

xtk.session.write in schema

Avatar

Level 4

HI All,

@Parvesh_Parmar ,@AkshayAnand 

,@isahore ,@AndreaBriceno,@ParthaSarathy

,@ParthaS ,@Craig_Thonis ,@Manoj_Kumar_ ,@Amine_Abedour ,@Marcel_Szimonisz,@DavidKangni 

,@Amit_Kumar,@ShashankNigam02,@Ganesh5067, @Jonathon_wodnicki

@Amine_Abedour 

I need to update and insert the data in schema using xtk.session.write in schema

 

Can you please help me with 

1) xtk.session.write -code to insert the data

2) xtk.session.write-code to update the data

 

I went to documnation and use the code mentioned here but throwing werror

can any of you please provide code below :

1) xtk.session.write -code to insert the data in Order schema

2) xtk.session.write-code to update the data Order schema

 

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Shrutii 

 

You could use something like the below code (Please modify according to your requirements) :-

var rcp = <recipient
    _operation="insertOrUpdate"
    _key="@email"
    xtkschema="namespace:OrderSchema"
    firstName="firstName"
    lastName="lastName3"
    email="vanilla@JStest.com" >
    </recipient>;
    xtk.session.Write(rcp);

 

Thanks

Akshay

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @Shrutii 

 

You could use something like the below code (Please modify according to your requirements) :-

var rcp = <recipient
    _operation="insertOrUpdate"
    _key="@email"
    xtkschema="namespace:OrderSchema"
    firstName="firstName"
    lastName="lastName3"
    email="vanilla@JStest.com" >
    </recipient>;
    xtk.session.Write(rcp);

 

Thanks

Akshay