Can I retrieve a list of tags used in ArcGIS Portal, and search after PortalItems based on tags?

416
2
Jump to solution
03-24-2022 10:19 AM
TomGeo
by
Occasional Contributor III

I am wondering if it is possible with the ArcGIS Pro SDK to retrieve a collection of tags used in an ArcGIS Enterprise Portal. Using the web interface of a portal I can do this basically at every corner.

However, I could not find a way to get tags used on portal content, and I missed the way to query the portal for content by way of tags.

It seems as there is the possibility to retrieve the collection of tags when using Python (https://support.esri.com/en/technical-article/000020473), but in C#...

- We are living in the 21st century.
GIS moved on and nobody needs a format consisting out of at least three files! No, nobody needs shapefiles, not even for the sake of an exchange format. Folks, use GeoPackage to exchange data with other GIS!
0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri Regular Contributor

Hi,

There are sharing snippets for ArcGIS Pro SDK: https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-sharing.

I think "Portal: Execute a portal search" could be useful for your task,

View solution in original post

2 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

There are sharing snippets for ArcGIS Pro SDK: https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-sharing.

I think "Portal: Execute a portal search" could be useful for your task,

TomGeo
by
Occasional Contributor III

I even have this page bookmarked... 😉

Well, kudos to you, it works fine. I was just not expecting that there is no dedicated PortalQueryParameters method to aim at tags.

- We are living in the 21st century.
GIS moved on and nobody needs a format consisting out of at least three files! No, nobody needs shapefiles, not even for the sake of an exchange format. Folks, use GeoPackage to exchange data with other GIS!
0 Kudos