xtk.session.write in schema | Community
Skip to main content
Level 4
March 6, 2024
Solved

xtk.session.write in schema

  • March 6, 2024
  • 1 reply
  • 1349 views

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

 

 

 

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 AkshayAnand

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

1 reply

AkshayAnand
Community Advisor
AkshayAnandCommunity AdvisorAccepted solution
Community Advisor
March 7, 2024

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