You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering if it would be relatively simple for me to modify this code somehow to not use the ObjectID in the naming of the file, but instead use a column I have in my feature layers called ASSET_ID?
Basically can I reference this other column when the code re-names the photos?
Cheers
The text was updated successfully, but these errors were encountered:
I think what I am trying to do is not possible, as the Asset_ID is not kept in the same table as the attachment info... this is the info the object holds:
{'id': 19, 'globalId': '73d1d45a-cf17-46fd-91e9-9ca1def7cb39', 'parentGlobalId': 'a151e9bc-7042-49d6-9d19-2a3e7fefd2af', 'name': 'Photo1.jpg', 'contentType': 'image/jpeg', 'size': 553514, 'keywords': ''}
I would have to do some fancy join back on the global ID, then find the asset_id, which I think is above my skill level!
#Query to get list of object ids in layer
featureObjectIds = featureLayer.query(where='1=1', return_ids_only=True)
Well, to give you some guidance, this is where you will need to start your quest. Note how "return_ids_only" is set to true. You should be able to get your feature's field data by changing that.
I know this isn't a full answer, but it should be a nudge in the right direction. I don't know everywhere that would need to be changed/added as I have only skimmed the code.
Hey,
I am wondering if it would be relatively simple for me to modify this code somehow to not use the ObjectID in the naming of the file, but instead use a column I have in my feature layers called ASSET_ID?
Basically can I reference this other column when the code re-names the photos?
Cheers
The text was updated successfully, but these errors were encountered: