Handling feature layer outfield changes

2493
1
05-12-2015 12:24 PM
RyanSmith1
New Contributor III

Hi guys,

I would like to know how i can efficiently handle changes to feature layer outfield names. Currently when i'm querying any feature layer i'm hard coding the outfield parameters for any given query. eg query.outfields = ["Code,RName"]. I've dealt with two particular REST services already for a current application and i've noticed that certain outfield name changes when it gets republished which obviously causes the querying to stop working properly. Do i have to manage this process via an external db or can i make a case with the data management guys to make sure the fields stay constant or have a constant alias of some sort of which i can then compare and extract the required fields.

Regards,

Ryan

Reply
0 Kudos
1 Reply
TimWitt2
MVP Regular Contributor

Ryan,

I am surprised that the field names change so frequently, that doesn't look like a good business procedure.

Is there a way you could use ["*"] as your outfield?

Tim