Select to view content in your preferred language

Connecting a SharePoint List to a hosted feature service (AGOL)

4740
5
Jump to solution
07-07-2022 11:40 AM
ACrateau
Occasional Contributor

Is it possible with ArcGIS for SharePoint to connect an SP List with a hosted feature service in AGOL, so that when the list is updated the feature service is also updated?   

Alternatively, is this a workflow that can be done using Power Automate?

0 Kudos
1 Solution

Accepted Solutions
ACrateau
Occasional Contributor

Thanks Tim, I did indeed get this working using the ArcGIS connector. 

My flow in Power Automate uses the Sharepoint [When an item is modified] trigger to pass the updated row to the hosted feature service using the ArcGIS [Update a record in a feature layer] action. 

I found that I needed to be the owner all of the resources, including the SP List, hosted feature layer and flow to make it all work.

View solution in original post

5 Replies
TimLohnes1
Frequent Contributor

Hi,

Hopefully you got this squared away. I was using survey123 trigger to create a new list, but just glancing and it looks like there are 3 feature layer triggers in power automate related to agol.

  1. When record is created in feature layer
  2. When record is deleted in feature layer
  3. When record is updated in feature layer.

So looks like this will keep your list updated. Doesn't seem like a connection per se, but at least your 'copy' list will reflect the data in your agol layer.

-Tim

 

ACrateau
Occasional Contributor

Thanks Tim, I did indeed get this working using the ArcGIS connector. 

My flow in Power Automate uses the Sharepoint [When an item is modified] trigger to pass the updated row to the hosted feature service using the ArcGIS [Update a record in a feature layer] action. 

I found that I needed to be the owner all of the resources, including the SP List, hosted feature layer and flow to make it all work.

JeremyMiller
New Contributor

Can you share an example of your Power Automate workflow? Is there an intermediary step between the [When an item is modified] step and the [Update a record in a feature layer]?  I want to JOIN the Sharepoint list and feature layer based on a certain field and update other fields in the feature layer with the changes from the Sharepoint list.

 

Thanks

jcokin1
Regular Contributor

Yes, would be interesting to see the Power Automate workflow @ACrateau

0 Kudos
TimLohnes1
Frequent Contributor

Yes, there is an intermediary step between knowing there is a change and updating the hosted layer. See attached.

1. When an item or a file is modified

2. Get changes for an item or a file

3 Update a record in a feature layer

That will do all changes. I'm only usually looking for certain changes, so after step 2, I put a condition in to check if the Status column has changed and then if the status column = a certain value. If those things are valid, I make changes to the layer. That may or may not be useful depending on what you are doing. In this case the flow fires a lot more (whenever there are list changes) than updates to hosted feature layer take place. Because if the status isn't what I want the flow just does nothing. So it can be confusing when reading the logs as it runs often.