Select to view content in your preferred language

Python Script to Create Report

229
3
10-10-2024 03:19 PM
ModernElectric
Frequent Contributor

Is there an example to help me on how to use Python scripting to create a printed report from a report template?

I have the process complete via the Survey123 Application and Power Automate to create a PDF report from a Microsoft Word Report Template.

However, due to the need to do edits/modifications on specific entries that couldn't be done thru formula(s) or coding in the XLX forms, I had to export the data into ArcGIS Pro to run processes via Python and Visual Studios. The challenge NOW is to get the modified field entries back into the overall hosted feature layer in AGOL to print the report. 

The work-around I am thinking of is to export the entire entry for the form and run the create report process thru a Python script. I just do not know how to start.

Any help or advice?

Thank You

0 Kudos
3 Replies
ChristopherCounsell
MVP Regular Contributor

Can you just make a backup copy of your hosted feature layer and the append (upsert) the modified records?

Or create a new layer, then create the survey/report again targeting an existing layer (the new one)?

Both options sound more tangible and no code required 

0 Kudos