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?
Solved! Go to Solution.
Hi @pcakhilnadh ,
I did a test for you.
_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
Hi @pcakhilnadh ,
I did a test for you.
_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
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
25 | |
24 | |
23 | |
23 | |
19 |
User | Count |
---|---|
58 | |
40 | |
40 | |
29 | |
25 |