cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AKB_2K
Level: Powered On

SharePoint Multi-Choice People field giving JSON error

Hello,

 

I have created a flow to send approval email on creation of new sharepoint item. In my SharePoint list there is "Person or Group" field with "Allow multiple selections:" marked as "Yes".  I have a created following JSON schema to read the value from the SharePoint item.

{
    "type": "object",
    "properties": {
        "Claims": {
            "type": "string"
        },
        "DisplayName": {
            "type": "string"
        },
        "Email": {
            "type": "string"
        },
        "Picture": {
            "type": "string"
        },
        "Department": {
            "type": "string"
        },
        "JobTitle": {
            "type": "string"
        },
		"@odata.type": {
			"type": "string"
		}
    }
}

My input field is as follows

111.png

 

But even if the JSON schema is valid, I am getting following error when saving the flow 

112.png

 

Can someone help correct this.

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
AKB_2K
Level: Powered On

Re: SharePoint Multi-Choice People field giving JSON error

I removed the extra fields and modified the JSON to just extract DisplayName and Email field. Code copied below. Now it is working fine. Guess it was because of some of the extra fields and values present or not present in them.

 

{
  "type": "object",
  "properties": {
    "DisplayName": {
      "type": "string"
    },
    "Email": {
      "type": "string"
    }
  }
}
3 REPLIES 3
abm
Level 10

Re: SharePoint Multi-Choice People field giving JSON error

Hi @AKB_2K ,

 

Please see the below link.

 

https://powerusers.microsoft.com/t5/Building-Flows/Validation-Fails-when-field-has-Symbol/td-p/20588

 

If you may have find this useful then please accept this as solution.

 

Thanks

Community Support Team
Community Support Team

Re: SharePoint Multi-Choice People field giving JSON error

Hi @AKB_2K ,

 

Could you share the details of the Flow configuration and tell us the properties you need to get?

What kind of requirements do you want to achieve through such a Flow?

 

I did a test here, created a Person type field named User and allowed multiple selections, please refer to the following Schema:

{
    "type": "object",
    "properties": {
        "@@odata.type": {
            "type": "string"
        },
        "Claims": {
            "type": "string"
        },
        "DisplayName": {
            "type": "string"
        },
        "Email": {
            "type": "string"
        },
        "Picture": {
            "type": "string"
        },
        "Department": {
            "type": "string"
        },
        "JobTitle": {
            "type": "string"
        }
    }
}

33.PNG

For more details on the use of Parse JSON, please refer to the following blog:

http://johnliu.net/blog/2018/6/a-thesis-on-the-parse-json-action-in-microsoft-flow

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
AKB_2K
Level: Powered On

Re: SharePoint Multi-Choice People field giving JSON error

I removed the extra fields and modified the JSON to just extract DisplayName and Email field. Code copied below. Now it is working fine. Guess it was because of some of the extra fields and values present or not present in them.

 

{
  "type": "object",
  "properties": {
    "DisplayName": {
      "type": "string"
    },
    "Email": {
      "type": "string"
    }
  }
}

Helpful resources

Announcements
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 40 members 4,445 guests
Please welcome our newest community members: