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

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

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,560)