1786
Views
4
Comments
Solved
List Empty
Question

Hi there,

I have a procedure with an input parameter of type List.

How to assign empty list when i call it?

regards and thank you 

2025-08-22 10-19-44
Pramod Jain
 
MVP
Solution

HI IBox,

It seems very simple , if you have a variable of list type and before sending it to the procedure you did not assigned anything to it than the list will be empty by default. if the list has some data already assigned to it and than you can use ListClear action before you are passing it to your procedure.


Regards,

-PJ-

2024-05-03 14-03-28
Sudip Dey

You have to check the identifier of the entity is a null identifier or not. If the result is no data then it will result in empty data.

You need to assign the list as a list type of the  List data. Please check the link below  for better undersatnding,

https://www.outsystems.com/forums/discussion/41214/assigning-a-list-a-to-list-b/


I hope it will help you to get it.



2022-10-18 07-32-49
Randall Jodache Chetty

Thanks for sharing 

2021-08-12 11-00-27
Nordin Ahdi
 
MVP

I suppose you'd have to use the ListClear action on the specific ListVariable, before you are passing it to the action (procedure).

Regards,

Nordin

2025-08-22 10-19-44
Pramod Jain
 
MVP
Solution

HI IBox,

It seems very simple , if you have a variable of list type and before sending it to the procedure you did not assigned anything to it than the list will be empty by default. if the list has some data already assigned to it and than you can use ListClear action before you are passing it to your procedure.


Regards,

-PJ-

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.