cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pcakhilnadh
Helper IV
Helper IV

How to create flow to create a new lookup column with all multiple value property enabled in a given share point list?

I have a SP List named "MyList" I wanted to create a new lookup column to it from Power automate? 

How to  write the flow for this task?

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @pcakhilnadh ,

 

I did a test for you.

vxiaochenmsft_0-1638154413047.png

vxiaochenmsft_1-1638154433243.png

vxiaochenmsft_2-1638154512445.png

_api/lists/getbytitle('your list name')/fields/addfield

accept application/json;odata=verbose

content-Type application/json;odata=verbose

{
'parameters': {
'__metadata': {
'type': 'SP.FieldCreationInformation'},
'FieldTypeKind': 7,
'Title': 'BB',
'LookupListId': 'your related list Id',
'LookupFieldName': 'Title'
}
}

//GUID of the list you want to look up - remove the %7B and %7D

 

_api/web/lists(guid'your list id')/fields('@{body('Send_an_HTTP_request_to_SharePoint')['d/Id']}')

X-HTTP-Method MERGE

{'AllowMultipleValues': true }

 

Best Regards,

Wearsky

 

 

 

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @pcakhilnadh ,

 

I did a test for you.

vxiaochenmsft_0-1638154413047.png

vxiaochenmsft_1-1638154433243.png

vxiaochenmsft_2-1638154512445.png

_api/lists/getbytitle('your list name')/fields/addfield

accept application/json;odata=verbose

content-Type application/json;odata=verbose

{
'parameters': {
'__metadata': {
'type': 'SP.FieldCreationInformation'},
'FieldTypeKind': 7,
'Title': 'BB',
'LookupListId': 'your related list Id',
'LookupFieldName': 'Title'
}
}

//GUID of the list you want to look up - remove the %7B and %7D

 

_api/web/lists(guid'your list id')/fields('@{body('Send_an_HTTP_request_to_SharePoint')['d/Id']}')

X-HTTP-Method MERGE

{'AllowMultipleValues': true }

 

Best Regards,

Wearsky

 

 

 

Helpful resources

Announcements
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,188)