|
POST
|
@DavidSolari @Robert_LeClair Thank you for both suggestions, big big help. I am in the process of doing some experimentation and will see what works. Will publish my results once I get it figured out.
... View more
04-17-2025
12:31 PM
|
2
|
0
|
954
|
|
POST
|
Appreciate the feedback. Yes, sounds like you understand exactly what I am trying to do. Want to be able to write a series of scripts/models to export key attachments and organize into different folders for achieves. If I can figure out how to select certain file types, will save tons of hours of manually organizing the different files. In the future, I can run a batch file that will run the scripts to run a monthly data download, organization, sorting and achieving of field pictures and Survey PDF reports. Just need this added step to progress with my design.
... View more
04-17-2025
11:47 AM
|
0
|
1
|
998
|
|
POST
|
Yes, the tool does allow for selection using the Select Layer by Attributes. I am using ArcGIS Pro, first building a model to select the records from a Hosted Feature Layer (ie, date range) and then using the Export Attachments tool. However, unsure how I select the specific attachment type by file type, .JPEG or .PDF that are attached to the selected feature. What I want to do is select all the .JPEG images and export those to a specific achieve folder on our network and do a separate export of .PDF attachments and export those to a different separate folder.
... View more
04-17-2025
11:21 AM
|
0
|
3
|
1005
|
|
POST
|
I found the answer I was looking for previously on mass downloading and organizing attachments from an AGOL Hosted Feature Layer. I am using the Export Attachment geoprocessing tool and it works great. However, there are a number of different types of attachments, PDFs, images, etc that I have on a variety of different hosted feature layers used in Workforce and Survey123. Is there a way within the tool, or another tool, to choose which file type I want selected and exported, IE .JPEG versus .PDF? This would help on the export and organization workflow I am building.
... View more
04-17-2025
10:25 AM
|
0
|
11
|
1228
|
|
POST
|
Good Afternoon: I am working on building a set of Microsoft Power Automate Flow(s) that send an E-Mail when a specific Hosted Feature Class is updated. In this case, when a particular Feature Layer within a Workforce Project is updated, the email is sent. I have selected certain fields to be displayed in the body of the Email and these fields have associated domains. The issue is the Domain Code is populated in the Email, but we need the Domain Description populated. Code: 1 Description: COMPLETE Advice?
... View more
04-08-2025
02:34 PM
|
0
|
0
|
209
|
|
IDEA
|
I completely agree. Working with a Microsoft Word document to format is not as efficient compared to using Excel.
... View more
03-05-2025
08:45 AM
|
0
|
0
|
511
|
|
IDEA
|
@KoryKramer Is there any literature on how to use this new feature and configure? Not much on the Help section. Thank You
... View more
03-04-2025
12:05 PM
|
0
|
0
|
842
|
|
POST
|
Good Afternoon: I have a large number of Hosted Feature Layers on ArcGIS Online that are apart of Field Maps, Survey123 and Workforce. I have them all added to a project in ArcGIS Pro for analysis and backup workflows. Curious, is there a way to do a mass download of attachments per Hosted Feature Class and save to a network folder? Trying to do it feature-by-feature is very inefficient and time consuming. Many different kinds of field images from our crews that I want to back-up and use for our master map (locate marks, tree trimming, new construction, etc). Appreciate the guidance.
... View more
03-04-2025
11:43 AM
|
0
|
2
|
307
|
|
POST
|
I am building a series of geoprocessing tools via ArcGIS Model Builder and many of them are using the Get Counts tools. After I run the tool, and pull up the messages, it shows Get Counts = (returned number). What I want to be able to do is replace the Get Counts with a custom message, lets say "Number of Services" or "Number of Transformers". The reason for this is I need it to be clear and not have to remember which of the individual 7 Get Counts tools in the model are pulling which data. Easy way to accomplish this?
... View more
03-03-2025
02:54 PM
|
0
|
1
|
389
|
|
POST
|
Greetings: This has been an ongoing issue and looks like there are similar issues/complaints from other Workforce Users/Admins. Want to provide new information and see if anyone has any insight Mobile Device for mobile worker has solid internet connection, either thru mobile network or office Wifi Connection. The app/project is set to auto-sync, but does not regularly do that. Forman has to hit the sync now (manual sync). However, it goes for a long period of time (almost 10 minutes) and does not finish. Only solution we have found is to Log-out of the Android Workforce App, re-log in and do a force sync. Most of the time, this works. However, this is very inconvenient for our field crew(s), since they cannot stop of (5) minutes to manually sync the project to get new assignments from the office. Would like to find a way to resolve this if anyone has any feedback (current workforce users/admins, ESRI programmers, etc). Our department supervisors and crew foreman are constantly complaining to me and I have no solutions or work-arounds. Thank You @LizArmstrong @CraigGillgrass @ShawnDerrington
... View more
12-02-2024
02:07 PM
|
0
|
16
|
1186
|
|
DOC
|
@JakeSkinner Good to go again. Appreciate this. Verified the Hosted Feature Layer had the Sync re-enabled after the script was ran. Also, shows the modified date was also updated in AGOL. Exactly what was needed.
... View more
12-02-2024
09:24 AM
|
0
|
0
|
7662
|
|
DOC
|
@JakeSkinner Here is one of the original scripts I have been using, for some reason when the script finishes, the sync enabled is unchecked and I have to recheck it via AGOL each time. # Variables
prjPath = r"C:\Users\cwafstet\Documents\MODERN GIS WORKING FILES\ELECTRIC\ArcGIS PRO PROJECTS\AGOL UPDATE - DATASET - ELECTRIC.aprx" # Path to Pro Project
map = 'MODERN ELECTRIC AGOL UPDATES' # Name of map in Pro Project
serviceDefID = 'a57db3b4e0db4cddafc7dacaf33cd317' # Item ID of Service Definition
featureServiceID = '0694901da5ce44bbba3d0cec88e1bb6c' # Item ID of Feature Service
portal = "https://www.arcgis.com" # AGOL
user = "xyzx" # AGOL username
password = "xyzx" # AGOL password
preserveEditorTracking = True # True/False to preserve editor tracking from feature class
unregisterReplicas = False # True/False to unregister existing replicas
# Set Environment Variables
arcpy.env.overwriteOutput = 1
# Disable warnings
requests.packages.urllib3.disable_warnings()
# Start Timer
startTime = time.time()
print(f"Connecting to AGOL")
gis = GIS(portal, user, password)
arcpy.SignInToPortal(portal, user, password)
# Local paths to create temporary content
sddraft = os.path.join(arcpy.env.scratchFolder, "WebUpdate.sddraft")
sd = os.path.join(arcpy.env.scratchFolder, "WebUpdate.sd")
sdItem = gis.content.get(serviceDefID)
# Create a new SDDraft and stage to SD
print("Creating SD file")
arcpy.env.overwriteOutput = True
prj = arcpy.mp.ArcGISProject(prjPath)
mp = prj.listMaps(map)[0]
serviceDefName = sdItem.title
arcpy.mp.CreateWebLayerSDDraft(mp, sddraft, serviceDefName, 'MY_HOSTED_SERVICES',
'FEATURE_ACCESS', '', True, True)
arcpy.StageService_server(sddraft, sd)
# Reference existing feature service to get properties
fsItem = gis.content.get(featureServiceID)
flyrCollection = FeatureLayerCollection.fromitem(fsItem)
properties = fsItem.get_data()
# Get thumbnail and metadata
thumbnail_file = fsItem.download_thumbnail(arcpy.env.scratchFolder)
metadata_file = fsItem.download_metadata(arcpy.env.scratchFolder)
# Unregister existing replicas
if unregisterReplicas:
if flyrCollection.properties.syncEnabled:
print("Unregister existing replicas")
for replica in flyrCollection.replicas.get_list():
replicaID = replica['replicaID']
flyrCollection.replicas.unregister(replicaID)
# Overwrite feature service
sdItem.update(data=sd)
print("Overwriting existing feature service")
if preserveEditorTracking:
pub_params = {"editorTrackingInfo" : {"preserveEditUsersAndTimestamps":'true'}}
fs = sdItem.publish(overwrite=True, publish_parameters=pub_params)
else:
fs = sdItem.publish(overwrite=True)
# Update service with previous properties
print("Updating service properties")
params = {'f': 'pjson', 'id': featureServiceID, 'text': json.dumps(properties), 'token': gis._con.token}
agolOrg = str(gis).split('@ ')[1].split(' ')[0]
postURL = f'{agolOrg}/sharing/rest/content/users/{fsItem.owner}/items/{featureServiceID}/update'
r = requests.post(postURL, data=params, verify=False)
response = json.loads(r.content)
# Update thumbnail and metadata
print("Updating thumbnail and metadata")
fs.update(thumbnail=thumbnail_file, metadata=metadata_file)
endTime = time.time()
elapsedTime = round((endTime - startTime) / 60, 2)
print(f"Script completed in {elapsedTime} minutes") The script that you updated, will not run saying it cannot run with a sync enabled hosted feature layer. I am getting this message when running the updated script with a Hosted Feature Layer that has sync enabled: fc = r"C:\Users\cwafstet\Documents\MODERN GIS WORKING FILES\ELECTRIC\GEODATABASES\MEWCo ELECTRIC SYSTEM.gdb\AGOL_ELECTRIC_DATASET\UG_PRIMARY_CONDUCTOR_FEEDER" # Path to Feature Class
fsItemId = "dbf687af06b649d3afafbc8469e8d448" # Feature Service Item ID to update
featureService = True # True if updating a Feature Service, False if updating a Hosted Table
hostedTable = False # True is updating a Hosted Table, False if updating a Feature Service
layerIndex = 0 # Layer Index
disableSync = True # True to disable sync, and then re-enable sync after append, False to not disable sync. Set to True if sync is not enabled
updateSchema = False # True will remove/add fields from feature service keeping schema in-sync, False will not remove/add fields
upsert = True # True will not truncate the feature service, requires a field with unique values
uniqueField = 'GlobalID' # Field that contains unique values
# Environment Variables
arcpy.env.overwriteOutput = True
arcpy.env.preserveGlobalIds = True Appreciate any feedback on either of the (2) scripts.
... View more
11-27-2024
12:37 PM
|
0
|
0
|
7731
|
|
DOC
|
@JakeSkinner I am using one of your previous scripts to update a single Hosted Feature Layer. Part of the script disables the sync feature on the FL in AGOL. How do I go about re-enabling the sync at the end of the script? Without the FL having Sync Enabled, it is giving our Workforce Project(s) real problems with the layers. Appreciate your help as always
... View more
11-27-2024
10:35 AM
|
0
|
0
|
7740
|
|
POST
|
@RobertKrisher Thank you for the response. I did verify all of the rule(s) I need - Medium/Low Voltage Pole to Cable/Fiber/Telecom (Joint Use) Relate Rules are infact Enabled. Still seeing the Red warning error in the attribute dialog box, but can "Drill-Down" to the Joint Use table and see the record. Is there a part I am missing or did not do?
... View more
11-20-2024
01:29 PM
|
0
|
1
|
685
|
|
POST
|
Good Morning: I am working on adding our Joint Use (Telecomm and fiber) to my Electric Utility Network. I have our poles added to the Structure Junction Feature Class - Medium Voltage & Low Voltage Pole Group(s). I've started appending the Joint Use Data from my existing GDB table into the Joint Use Utility Network GDB table. Figured out how to take the pole GlobalID and assign it to the table field to associate the record in the table to the pole in the feature class. However, I am getting this message in the Attributes box: Some poles may have multiple fiber/telecom joint use attachments and we need to be able to see them. In my previous GDB, I had a relationship class to do that. However, little confused how to do this same thing in the Utility Network. Reason why I am setting this up is because I've been asked to work with the ESRI Joint Use Solutions package to implement a new Joint Use Tracking/Review application. @RobertKrisher Appreciate any feedback.
... View more
11-20-2024
07:50 AM
|
0
|
3
|
702
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 10-30-2025 12:42 PM | |
| 1 | 10-16-2025 10:51 AM | |
| 1 | 08-27-2025 08:47 AM | |
| 1 | 06-17-2025 07:40 AM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|