Skip to main content
Nintex Community Menu Bar
Question

Adding and updating views through workflow

  • November 12, 2024
  • 2 replies
  • 26 views
  • Translate

This is for Sharepoint 2019 on-prem.

I’m working on a project with Sharepoint lists with lots of views (hundreds of views). If I want to add a new list column and make it visible to all views, is that possible through Nintex workflow so I don’t need to edit each view manually? I’ve been looking at webservice queries but the documentation is very difficult to find and digest. I have seen that I can make newFields through an UpdateList method, but I’m not sure how it works or how the syntax is.

A second question I have is if it is possible to add a new view to a list automatically through workflow. For instance if I would supply the list-id (or list name), criteria on which to sort and filter the view, and the view name, all through WF variables. If it is possible, how would it be done?

Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+9
  • Nintex Employee
  • 69 replies
  • November 19, 2024

Hi ​@BobR 

You’re right about there not being a ton of great documentation on this.  I think you’d be looking at using a web request POST call to: /_api/web/lists/getbytitle('ListName')/views

Probably the best info I found on this was: http://blog.techperspect.com/2015/07/create-list-view-using-sharepoint-rest.html  That’s for creating a new view but the call for updating should be similar and your second question of creating a view would be the same.  Hopefully that helps.

Translate

  • Author
  • 73 replies
  • November 20, 2024

Thanks. That does sound like what I’m looking for. I’m still a bit lost though, I’ve never used a Web Request before. Do I just paste that entire function in the body of the Web Request action or how do I use it? It also wants to have a Content type, what do I fill in there?

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings