0

Can we use the listview command set extension to change the format of the view or column in SharePoint online? If yes, how?

And is there any other way to create a template like feature for this? Probably a REST API to call in which we send the JSON object and list name ant it gets applied to the list?

Actually I want to create a type of template or something, clicking on which, the predefined JSON object would be used to change the view or column.

4
  • Do you want to create Field customizer with list view command set?? Jun 19, 2019 at 10:38
  • @GaneshSanap No, I want to create a command button (which can be done using the microsoft command set customizer docs), on clicking which should implement my already created JSON object for column/ view formatter to the specified list.
    – Bimalendu
    Jun 19, 2019 at 11:49
  • I am new to SharePoint so I am not sure if this is even possible. Thanks in advance for your help.
    – Bimalendu
    Jun 19, 2019 at 11:50
  • @GaneshSanap Is it possible to do what you said in the comment? If it can be done, can you point out any example or resource?
    – Bimalendu
    Jun 26, 2019 at 5:09

1 Answer 1

0

I did this few days back, I created a command set customizer extension to create two buttons.One to customize the fields and another to customize the view. I stored some JSONs in different files. and displayed dropdown to select between the JSONs. Then After that I was needed to replace the fields name to the available fields. To do that, I kept variable names in JSON and during the sending of the JSON to API, I replaced the filed names with the original selected field name.

I sent the JSON in the attribute "CustomFormatter" and used the merge REST API. And it worked.

On right side the panel opens up on clicking the customize field button

On clicking any field, the JSON selection dropdown is shown.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.