Select to view content in your preferred language

Create a new record in a feature layer - Geometry Parameter

560
3
Jump to solution
03-01-2025 07:43 AM
PaulLefaive2
Emerging Contributor

Hi Everyone,

I've been struggling with finding a solution and hoping the community can help.

I'm simply using the following:

  • Trigger: When a survey response is submitted (from Survey123)
  • Action: Create a new record in a feature layer

I'm simply trying to add the newly created survey123 point feature to an existing hosted point feature layer on ArcGIS Online with a subset of the survey's attributes.

I'm able to successfully field map the attribute values from the survey to the corresponding fields in the hosted feature layer but the resulting records has no geometry.

I believe the issue is with what I'm using for the 'Geometry' parameter in the Create a new record in a feature layer action. I've used the survey's item()?['geometry'] and item()?['geometry/geometryType'] trying to set the geometry based on the survey geometry with no luck. The Power Automate messages show null for geometry output.

Unfortunately Microsoft's documentation is brutal for looking up details on parameters for ArcGIS connectors, in fact for the Geometry parameter for this action is not even reflected in the documentation yet. 

I feel like this should be more straight forward and simple - anyone out there figure this out?

Thanks

Paul

0 Kudos
1 Solution

Accepted Solutions
DavidPike
MVP Notable Contributor

Can you share what you've tried so far?  Possibly with screenshots.

https://community.esri.com/t5/arcgis-online-questions/power-automate-to-create-a-record-in-agol/td-p...

{
  "x": 1.0,
  "y": 1.0,
  "spatialReference": {
    "wkid": 4326,
    "latestWkid": 4326
  }
}

View solution in original post

0 Kudos
3 Replies
DavidPike
MVP Notable Contributor

Can you share what you've tried so far?  Possibly with screenshots.

https://community.esri.com/t5/arcgis-online-questions/power-automate-to-create-a-record-in-agol/td-p...

{
  "x": 1.0,
  "y": 1.0,
  "spatialReference": {
    "wkid": 4326,
    "latestWkid": 4326
  }
}
0 Kudos
PaulLefaive2
Emerging Contributor

Hi @DavidPike ,

I ended up figuring this out through another ArcGIS Online community post that I stumbled across. The solution that @alex_mapintel and @DanielArsenault presented is exactly what you posted.

I was not expecting to have to enter in JSON for that parameter so I likely would not have figured this one without you all.

The community post I'm referring to is here: Power Automate to create a record in AGOL FeatureLayer with example attached to this post.

Thank you all for your help!

Paul

0 Kudos
AlagiriVenkatachal
Esri Contributor

Hi @PaulLefaive2,

We also have the "Create a point geometry" action in our connectors to make it easy creating a point geometry JSON using X & Y to use in downstream Power Automate actions. 

0 Kudos