get all Application portal

269
2
Jump to solution
03-14-2024 07:11 AM
Labels (2)
bledos_cergypontoise
New Contributor

Hi,

I develop a python script to manage my Web Map Applications and it's hard for me to tell them apart

I want to get all Application on my Portal server.

I call it with :

apps = gis.content.search(query='owner:me',item_type='Web Mapping Application', max_items=5000)
When scanning the results, I can't find any information except by checking the app's URL.
 
    # -- Parcours de la liste des résultats et des items
    for item in apps:
        if item is not None :
    ...
 
But I can't distinguish between different types of apps (Dashboard, EXB, AppBuilder Extension...)
 
 
Have you got an idea ?
0 Kudos
1 Solution

Accepted Solutions
Clubdebambos
Occasional Contributor III

Hi @bledos_cergypontoise 

You can get more information on the item type with the following.

for item in apps:
    if item is not None:
        print(item.title)
        print(item.type)
        print(item.typeKeywords)
~ learn.finaldraftmapping.com

View solution in original post

2 Replies
Clubdebambos
Occasional Contributor III

Hi @bledos_cergypontoise 

You can get more information on the item type with the following.

for item in apps:
    if item is not None:
        print(item.title)
        print(item.type)
        print(item.typeKeywords)
~ learn.finaldraftmapping.com
bledos_cergypontoise
New Contributor

I had identified these variables correctly but I was hoping for a simpler method. 😅
I will have to make conditions IF to extract the values that interest me in the typeKeywords.

Thank you for your answer.