Select to view content in your preferred language

Field Descriptions from Metadata

1321
5
Jump to solution
06-21-2023 10:35 AM
CynthiaWanschura
Occasional Contributor

Anyone know how to populate field descriptions from existing metadata?

This question has been asked before, but no one has responded with a solution: Populating field descriptions.

I spent some time trying to do it using ArcGIS API for Python without success.  It appears that the field descriptions are attributes of the layer but are a nested dictionary with Description and Field Value Type under the fields.

I can view the description and field type by printing the fields information, but I can't figure out how to update it.

Any ideas?  Am I missing something obvious?

2 Solutions

Accepted Solutions
LisaBerry
Esri Contributor

Hi Cynthia,

Here is a python3 script that can add alias names, field descriptions, and field value type to the REST service, and also updates the popup decimals and thousands separators in bulk. https://github.com/lisaberrygis/AliasUpdater

View solution in original post

CynthiaWanschura
Occasional Contributor

THANK YOU!!!!! This script worked beautifully!!!!

View solution in original post

0 Kudos
5 Replies
LisaBerry
Esri Contributor

Hi Cynthia,

Here is a python3 script that can add alias names, field descriptions, and field value type to the REST service, and also updates the popup decimals and thousands separators in bulk. https://github.com/lisaberrygis/AliasUpdater

CynthiaWanschura
Occasional Contributor

THANK YOU!!!!! This script worked beautifully!!!!

0 Kudos
CynthiaWanschura
Occasional Contributor

@LisaBerry - Is it OK if I make a couple of changes to prompt for inputs and share with my colleagues?  You will definitely be getting the credit for it. 🙂

0 Kudos
LisaBerry
Esri Contributor

Of course! Use however is most helpful to you and your team. Glad it was helpful! 

0 Kudos
ShareUser
Esri Community Manager

I am hoping to export full groups and have all of the layers within them for update. Is there a way to do this?

0 Kudos