web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Expand Lookup field in another SharePoint list using Send Http request to SharePoint

(0) ShareShare
ReportReport
Posted on by

I have a list with 3 columns: Title, Status, Project

ro006_1-1653663354936.png

 

I have another list in which I am able to create a lookup column for "Title" from the other list called "Dependencies"; I want to be able to expand and show the other two columns (Status & Project) into this other list using the Send Http Request to SharePoint action in Power Automate

 

ro006_0-1653663202206.png

 

Thanks in advance for any help and let me know if there is any other information I can provide to help!

 

I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    32,910 Most Valuable Professional on at
    Re: Expand Lookup field in another SharePoint list using Send Http request to SharePoint

    Hi @Anonymous,

     

    You can use the CreateFieldAsXml method for this. That one supports/has a FieldRef property in the xml.


    Below is an example of that approach.

    In the first HTTP request the reference field gets created. In the second and third request the related fields get linked (in this example the Created and Modified columns from the lookup). This example only adds these fields to the settings. You still have to add them to your view to see them in your view.

     

    For the FieldRef value I used this expression:

    body('Send_an_HTTP_request_to_SharePoint')['d']['Id']

     

    createlookupfieldsandrelated.png

  • Community Power Platform Member Profile Picture
    on at
    Re: Expand Lookup field in another SharePoint list using Send Http request to SharePoint

    This is what I have as the body for the first action screenshot that you had (other than the GUID). I have looked at it several times and it looks like it is exactly the same, but I am receiving the error: 

    "Not well formatted JSON stream.
    clientRequestId: b85f2fba-9c2f-43fd-ac2c-3ae249008169
    serviceRequestId: 73cc42a0-2080-1000-faa5-c08b7e062767"

     

    ro006_0-1654009451446.png

     

  • Expiscornovus Profile Picture
    32,910 Most Valuable Professional on at
    Re: Expand Lookup field in another SharePoint list using Send Http request to SharePoint

    Hi @Anonymous,


    Your json looks slightly different, I see you have some space characters in the xml part of the body value. Maybe it does not like that xml type of formatting.

     

    Can you try the json below, this is the json I used in my test. (replace the list guid with your guid btw).

    {"parameters":{"__metadata":{"type":"SP.XmlSchemaFieldCreationInformation"},"SchemaXml":"<Field DisplayName='Dependencies' Format='Dropdown' Indexed='FALSE' IsModern='TRUE' IsRelationship='FALSE' List='1beb7c31-1417-4715-b719-0288bc04329c' Name='Dependencies' ShowField='Title' Title='Dependencies' Type='Lookup'></Field>","Options":12}}

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Expand Lookup field in another SharePoint list using Send Http request to SharePoint

    Okay great. That seemed to work!

     

    I also found a way to show the column through the flow by adding the following action below in case you wanted to know for yourself also:

     

    ro006_0-1654089998428.png

     

    Thanks!

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 614 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 401 Moderator

#3
chiaraalina Profile Picture

chiaraalina 282

Last 30 days Overall leaderboard