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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add columns to SharePo...
Power Automate
Unanswered

Add columns to SharePoint list

(0) ShareShare
ReportReport
Posted on by

Hi

 

I have seen a few posts on this but none seem to work for me.

 

Here is my flow

 

It creates a list on a site, calls it by the display name of an email address in a form, then it's supposed to start adding columns to the list. No matter how much I try to start adding the columns using the other examples on this and some other forums, it just won't do it.

 

Can anyone see what I'm doing wrong?

 

LukeSykes_0-1689165375085.png

 

 

UPDATE:

 

I may have found the problem, I noticed that the site name in the HTTP request 2 was not the site name of the newly created list. I use a custome address to include the display name but on the site its 'Firstname%20Surname.AllItems.aspx'

 

How do I include the %20?

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Can you show us any errors from a recent run?  You may need to add a short delay between the list creation and adding the additional columns.

  • LukeSykes Profile Picture
    on at

    Hi 

     

    Not sure if you saw my update from my original post.

     

    It wasn't actually showing up an error, the flow succeeded it just wasn't adding the columns. noticed afterwards that the site address was wrong for the second HTTP request.

     

    UPDATE:

     

    I may have found the problem, I noticed that the site name in the HTTP request 2 was not the site name of the newly created list. I use a custom address to include the display name but on the site its 'Firstname%20Surname.AllItems.aspx'

     

    How do I include the %20?

     

    I have since added /Allitems.aspx to the custom name and the flow is just sitting there doing nothing

     

    LukeSykes_1-1689166443209.png

     

     

    LukeSykes_0-1689166140666.png

     

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    YOu can use the EncodeURIComponent() function to translate spaces into %20

  • LukeSykes Profile Picture
    on at

    So if I was using display name from dynamic content, how would I split that to include that function please?

     

    It finally timed out

     

    LukeSykes_0-1689172336628.png

     

    UPDATE:

     

    I have tried this but it is currently just running

     

    LukeSykes_1-1689172924768.png

     

     

  • LukeSykes Profile Picture
    on at

    I have used the following to include the %20

     

    Site Address/GivenName%20Surname/AllItems.aspx

     

    The output looks right, and the flow runs successfully, but again it still does not add the column! 😞

     

    Does the json look right?

     

    LukeSykes_0-1689177605275.png

     

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Where you are inserting Display name now just use the Expressions tab to insert the function EncondeURIComponent() with DisplayName as the parameter for the function.

  • LukeSykes Profile Picture
    on at

    Hi

     

    That doesn't seem to be working for me at all

     

    LukeSykes_0-1689234452593.png

     

    The list is named after the display name of the staff member so I expected it would find it no issue. The first one creates the list and the second one finds the list based on its name (the display name) and adds the columns. What else am I missing?

     

    LukeSykes_1-1689234608065.png

     

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    The function is 

    encodeUriComponent()
    Yours has a capital E and Uppercase URI, it is case sensitive.
  • LukeSykes Profile Picture
    on at

    I don't get an error now, but it still isn't adding the column

     

    Is the field type number incorrect maybe?

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    I don't think the AllItems.ASPX should be on the end of the Site URL.  If you just pick the site out of the dropdown does it add the column?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard