How to save data in a list (made with a file, not a list of recipient) in a web Application | Community
Skip to main content
Level 2
June 8, 2022
Solved

How to save data in a list (made with a file, not a list of recipient) in a web Application

  • June 8, 2022
  • 3 replies
  • 820 views

Hello,

 

I'd like to know how to save data generated from a webApp in a temporary table, such as a list of type "File".

 

I already tried :

 

xtk.session.Write(<tempLST111 xtkschema={temp:LST111} _operation="insert" element1={ctx.vars.element1} element2={ctx.vars.element2} element3={ctx.vars.element3} />);

 

But this gives an error while executing the webApp

 

Thank you.

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 Parvesh_Parmar

Hello, 

 

If you just want to store in temporary table. Then you can also do like below: 

1. First create  a schema like cus:tempWebAppName

2.  Define the fields as per your need. You can also add creation date. Define the link with other table if required.

3.  Insert the data in this table with xtk.session.Write in this table. 

4. You can use this data, where you need to use.

5. You can create a workflow to purge the old data which is not required from this table.

 

 

List also create a table. If you want to see the name of this SQL table then go the list and open the XML via option in the top Edit->Edit XML. Then you can see it.

 

 

 

 

 

Thanks. 

Parvesh.

 

 

 

 

3 replies

Manoj_Kumar
Community Advisor
Community Advisor
June 8, 2022

Hello @sifr 
I have not tried creating a list directly from WebApp.

But you can create a workflow with an external signal and then trigger the workflow from the Webapp and pass the variables. Then use the variables in WF to create a list.

Manoj     Find me on LinkedIn
Parvesh_Parmar
Community Advisor
Parvesh_ParmarCommunity AdvisorAccepted solution
Community Advisor
June 9, 2022

Hello, 

 

If you just want to store in temporary table. Then you can also do like below: 

1. First create  a schema like cus:tempWebAppName

2.  Define the fields as per your need. You can also add creation date. Define the link with other table if required.

3.  Insert the data in this table with xtk.session.Write in this table. 

4. You can use this data, where you need to use.

5. You can create a workflow to purge the old data which is not required from this table.

 

 

List also create a table. If you want to see the name of this SQL table then go the list and open the XML via option in the top Edit->Edit XML. Then you can see it.

 

 

 

 

 

Thanks. 

Parvesh.

 

 

 

 

Parvesh Parmar – Adobe Community Advisor https://www.linkedin.com/in/parvesh-parmar/
Sukrity_Wadhwa
Community Manager
Community Manager
June 23, 2022

Hi @sifr,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.


Thanks!

Sukrity Wadhwa