Tools
Sign in
Login
Forum
Creating custom lists
Forum
>
Scripting
>
Creating custom lists
n/A
posted
on September 17, 2015
at 8:25 AM
Version
5.3.5
n/A
posted
on September 17, 2015
at 8:25 AM
Version
5.3.5
Hi there,
Is anyone aware of a way to create new custom lists (or even remove existing ones) via script? It seems fairly simple to modify existing ones but not all that intuitive to add new ones.
Thanks,
Al
n/A
replied
on November 4, 2015
at 3:14 AM
n/A
replied
on November 4, 2015
at 3:14 AM
Anyone? :(
n/A
replied
on November 4, 2015
at 8:39 AM
n/A
replied
on November 4, 2015
at 8:39 AM
OK I found it.
1
2
3
String $customListFilter := 'CustomListName';
4
com.nm.sdk.data.customlists.CustomList $customList;
5
$customList := new com.nm.sdk.data.customlists.CustomList;
6
$customList.setName($customListFilter);
7
$customList.setUuid(UUID());
8
$customList.setId(UID());
9
CONTEXT().getBusinessObjectRepository().insert($customList);
10
CONTEXT().getBusinessObjectRepository().update($customList);
11
CommitBusinessObject($customList.getId(), 'CustomList');
12
Please
sign in
to add a reply
About this site
|
Terms of use
|
Privacy statement
|
Contact us
© 2025 Appway AG. All Rights Reserved.
Is anyone aware of a way to create new custom lists (or even remove existing ones) via script? It seems fairly simple to modify existing ones but not all that intuitive to add new ones.
Thanks,
Al