cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WillYac
Regular Visitor

Using flow to set view setting

I have created a flow to create a new list and add some columns to the list.  How do I set the variable for the new columns? Each column added does not appear on the view.  What I need to do it add a column and set it appear in the "All Items" View and give is a order to appear.

 

Script to add column:

{
"__metadata": {
"type": "SP.FieldText"
},
'FieldTypeKind': 2,
'Title': 'COLUMN NAME',
'MaxLength': '25'
}

 

Can't find the solution in reviewing the help areas.

 

Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @WillYac,

 

There is an example that how to create a column in SharePoint by sending HTTP requests:

Annotation 2020-02-24 134753.png

However, after creating it, the column is invariable in SharePoint list, there is no way to make the column variable in MS Flow directly, so if you want to make it variable, you should set in the view of the list manually: 

show-or-hide-columns-in-a-list-or-library

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
ChristianAbata
Super User II
Super User II

hi @WillYac  please could you show us an screanshot?



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
v-litu-msft
Community Support
Community Support

Hi @WillYac,

 

There is an example that how to create a column in SharePoint by sending HTTP requests:

Annotation 2020-02-24 134753.png

However, after creating it, the column is invariable in SharePoint list, there is no way to make the column variable in MS Flow directly, so if you want to make it variable, you should set in the view of the list manually: 

show-or-hide-columns-in-a-list-or-library

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Is there consideration to add this feature?  It seems silly that flow can create a column but that column doesn't follow default settings of "add to default view".

 

Thanks for your help! Love these forums!

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,017)