How to copy all records of Static Entity to a Local Entity in run-time

How to copy all records of Static Entity to a Local Entity in run-time

  

Hi,

I have created a static entity & I want to copy all the records of static entity to Local Entity in run-time.

Thanks,

Assif

Iterate the Static entity's records and create new ones in the Local entity.

What's your use case?

I tried but getting issues with for-loop.



You have to be more specific otherwise it's hard to help...

Solution

I resolved,

I just want to copy all the records from a Static Entity to Local Entity in Runtime.

1- Created a local List Variable of Static Entity Type

2- Added an aggregate of static-entity to the Screen

3- Created a client action of "ListAppendAll" 

4- Provided the Local List to CreateALL Entity action



Thanks,

Assif

Solution

Hi Assif,

I assume in step 1 above you created a local variable of type List of YourLocalEntity where YourLocalEntity is a local storage entity based on YourStaticEntity static entity?

Jorge Martins wrote:

Hi Assif,

I assume in step 1 above you created a local variable of type List of YourLocalEntity where YourLocalEntity is a local storage entity based on YourStaticEntity static entity?

Yup, You are right I created a List type local variable.

Thanks :)