cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HerbAuster
Advocate II
Advocate II

HTTP Request and People Field

Hi all,

I am creating a flow to create a new SharePoint list via http request.

This works also so far quite well. Only at one point I do not get further.

I create a column for people and groups and want to prevent the selection of groups.

Despite a long search I have not found anything, how I can deactivate the checkbox via HTTP request.

(here in the picture in German).

Flow.JPG

Does anyone have an idea ?

 

Regards

Herb

 

1 ACCEPTED SOLUTION

Accepted Solutions
annajhaveri
Super User
Super User

@HerbAuster  i understand that you could be using REST API to create people and group field using Send HTTP Request to SharePoint action. In json you need to set value for "SelectionMode" to 0, to allow only users in the field value, see below screenshot

 

annajhaveri_0-1623239463357.png

Below is the json payload:

{
		'__metadata': { 'type': 'SP.FieldUser' },
		'Title': 'TestPersonField',
		'FieldTypeKind': 20,
                'SelectionMode':0
}

 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
annajhaveri
Super User
Super User

@HerbAuster  i understand that you could be using REST API to create people and group field using Send HTTP Request to SharePoint action. In json you need to set value for "SelectionMode" to 0, to allow only users in the field value, see below screenshot

 

annajhaveri_0-1623239463357.png

Below is the json payload:

{
		'__metadata': { 'type': 'SP.FieldUser' },
		'Title': 'TestPersonField',
		'FieldTypeKind': 20,
                'SelectionMode':0
}

 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

View solution in original post

Hi Anna,

great, thank you, that's how it works.

 

Best Regards

Herb

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,093)