How to include ObjectID in MS Word Report Template?

218
5
Jump to solution
07-26-2019 04:11 AM
Highlighted
New Contributor III

Is there a way to include the feature's ObjectID in the MS Word tempate used for generating a report?

${ObjectID} does not seem to work. Thanks!

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Esteemed Contributor

Hi Keith,

You may need to check the precise name of the Object ID field.  For example, the field name or a survey published by Survey123 is objectid (all lower case), though the alias is 'ObjectID'.  Therefore, ${objectid} should work in a template.

View solution in original post

5 Replies
Highlighted
Frequent Contributor II

Create a new attribute and populate it with ObjectID before generating the report

Reply
0 Kudos
Highlighted
New Contributor III

Yes, of course I could do that, but that's not ideal. There's lot's of other hidden fields in there as well that I'd like to know how to access if there's a way to do that without duplicating all those with new fields just so I can print them.

My question remains - Is there a way to access these hidden field types like ObjectID using the correct syntax in the Word template? 

Reply
0 Kudos
Highlighted
Frequent Contributor II

Access the Database via MS Access.  However does not work with File Geodatabase

Reply
0 Kudos
Highlighted
Esri Esteemed Contributor

Hi Keith,

You may need to check the precise name of the Object ID field.  For example, the field name or a survey published by Survey123 is objectid (all lower case), though the alias is 'ObjectID'.  Therefore, ${objectid} should work in a template.

View solution in original post

Highlighted
New Contributor III

Thanks very much James, that worked!

Reply
0 Kudos