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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (3,158)