cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dlprentice
Responsive Resident
Responsive Resident

Intersection expression is returning no values?

Hello,

 

I am trying to copy data from an Excel table into a SharePoint list that has existing data. I am trying to use the intersection expression to see what is the same and what is not the same so to delete or update items. However my intersection seems to return nothing. It should be noted that both of the select steps I have mapped to be identical keys.

 

Here is my intersection expression: 

intersection(body('Select_ExcelKeys'),body('Select_SharePointKeys'))

 

Screenshot 2021-02-12 090716.png

 

Screenshot 2021-02-12 090802.png

2 REPLIES 2
Serbay
Resolver I
Resolver I

Hi,
Could you please share details about "Select Excel Keys" and "SharePoint Keys"? What kind of object do they have?

dlprentice
Responsive Resident
Responsive Resident

Sure no problem,

 

e1.png

 

Using Parse JSON this is the Schema from the Excel select:

{
    "type": "object",
    "properties": {
        "body": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "City": {
                        "type": "string"
                    },
                    "State": {
                        "type": "string"
                    },
                    "Location Name": {
                        "type": "string"
                    },
                    "Verizon IP Address": {
                        "type": "string"
                    },
                    "FWS IP Address": {
                        "type": "string"
                    },
                    "DNS Entity Name": {
                        "type": "string"
                    },
                    "Entity Hostname": {
                        "type": "string"
                    },
                    "Local Contact Name": {
                        "type": "string"
                    },
                    "Local Contact Email": {
                        "type": "string"
                    },
                    "Local Contact Cell Phone": {
                        "type": "string"
                    },
                    "Local Contact Office Phone": {
                        "type": "string"
                    },
                    "Location Streeet": {
                        "type": "string"
                    },
                    "Location Zip Code": {
                        "type": "string"
                    },
                    "Data Access Type": {
                        "type": "string"
                    },
                    "Circuit Speed": {
                        "type": "string"
                    }
                },
                "required": [
                    "City",
                    "State",
                    "Location Name",
                    "Verizon IP Address",
                    "FWS IP Address",
                    "DNS Entity Name",
                    "Entity Hostname",
                    "Local Contact Name",
                    "Local Contact Email",
                    "Local Contact Cell Phone",
                    "Local Contact Office Phone",
                    "Location Streeet",
                    "Location Zip Code",
                    "Data Access Type",
                    "Circuit Speed"
                ]
            }
        }
    }
}

 s1.png

Using Parse JSON this is the Schema from the SharePoint select:

{
    "type": "object",
    "properties": {
        "body": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "City": {
                        "type": "string"
                    },
                    "State": {
                        "type": "string"
                    },
                    "Location Name": {
                        "type": "string"
                    },
                    "Verizon IP Address": {
                        "type": "string"
                    },
                    "FWS IP Address": {},
                    "DNS Entity Name": {
                        "type": "string"
                    },
                    "Entity Hostname": {
                        "type": "string"
                    },
                    "Local Contact Name": {
                        "type": "string"
                    },
                    "Local Contact Email": {
                        "type": "string"
                    },
                    "Local Contact Cell Phone": {},
                    "Local Contact Office Phone": {},
                    "Location Streeet": {
                        "type": "string"
                    },
                    "Location Zip Code": {},
                    "Data Access Type": {
                        "type": "string"
                    },
                    "Circuit Speed": {}
                },
                "required": [
                    "City",
                    "State",
                    "Location Name",
                    "Verizon IP Address",
                    "FWS IP Address",
                    "DNS Entity Name",
                    "Entity Hostname",
                    "Local Contact Name",
                    "Local Contact Email",
                    "Local Contact Cell Phone",
                    "Local Contact Office Phone",
                    "Location Streeet",
                    "Location Zip Code",
                    "Data Access Type",
                    "Circuit Speed"
                ]
            }
        }
    }
}

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (5,586)