Field Descriptions from Metadata

643
4
Jump to solution
06-21-2023 10:35 AM
CynthiaWanschura
New Contributor III

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
New Contributor III

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

View solution in original post

0 Kudos
4 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
New Contributor III

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

0 Kudos
CynthiaWanschura
New Contributor III

@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