Questions tagged [listviewcommandset]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
31 views

SPFX Custom Action not showing in context menu

I am trying to create a custom action in SharePoint, and get it appear in the context menu (the 3 dots next to the item in the list). I have tried all different combinations of location in elements....
user avatar
  • 167
0 votes
1 answer
41 views

Placing SPFX ListViewExtension custom action into More expandable menu

I've created custom action as ListViewExtension and it works well, but i cannot figure out how to place it under expandable "More" menu. My manifest.json is: "unlock": { &...
user avatar
  • 33
1 vote
1 answer
64 views

How to deploy Command Set Extension for Site Pages Library

I would like to know how to specify location of ListViewCommandSet Extension in "Site Pages Library" I have set ListTemplateId="100"to show in custom List View and ListTemplateId=&...
user avatar
0 votes
0 answers
275 views

SPFX Listview Command Set getValues for a selected file

I have created a custom SPFX ListView Command Set button which triggers a flow (using http request) when a file is selected in SharePoint. Currently it sends information about the file ID, file name, ...
user avatar
0 votes
1 answer
894 views

Spfx extension to update selected item

I am trying to update selected row using below code but its not working @override public onExecute(event: IListViewCommandSetExecuteEventParameters): void { switch (event.itemId) { ...
user avatar
  • 87
1 vote
0 answers
73 views

Can the onListViewUpdated() method run async?

I need to implement a button that is only visible if the user has edit permissions for an item in a list. Therefore I have to make an async api call in the onListViewUpdated() method, but I does not ...
user avatar
  • 121
2 votes
2 answers
182 views

SPFx Extension BaseListViewCommandSet

I created a SPFx BaseListViewCommandSet extension. My component puts the status of all selected rows. The update works well. However, when I want to refresh the page (location.reload ();) at the end ...
user avatar
1 vote
0 answers
99 views

How to add Multilevel ListView Command Set buttons using SPFX Extensiton?

In manifest.json file I have structure like: "items": { "COMMAND_1": { "title": { "default": "Command One" }, "iconImageUrl": "_layouts/15/images/itslidelibrary.png", "type": "command", }, "...
user avatar
  • 323
1 vote
1 answer
1k views

How to get all items in list view from SPFX ListView Command set onExecute()?

Is it possible to get all (not only selected) rows\items in ListView when ListView Command Set onExecute() method is called? E.g.: @override public onExecute(event: ...
user avatar
  • 185
1 vote
0 answers
726 views

Invalid selected rows in onExecute() of SPFX ListView Command set

Simple code just built from yo @microsoft/sharepoint wizard: Elements.xml: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/...
user avatar
  • 185
3 votes
1 answer
1k views

How to add sub commands in my SPFX List View Command Set command

My SPFX contains extension that adds two commands in Document List: Elements.xml: <CustomAction Title="My Commands" RegistrationId="101" RegistrationType="List" Location="...
user avatar
  • 185
1 vote
1 answer
248 views

How to install List view command set extension in a site collection after deploying it to app catalog using CSOM?

I have created a ListView command set extension using SPFx and upload it in the app catalog. Now I want to install this extension for only particular sites. I tried adding it as a custom action but ...
user avatar
0 votes
1 answer
207 views

Can we use column formatter with command set customizer?

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? ...
user avatar
1 vote
1 answer
414 views

List View Command Set custom commands not loading

My SharePoint list is not loading the custom commands when the command set has been added as an app to SharePoint Online. The commands will load correctly if I try them in my 'Developer' site ...
user avatar
2 votes
0 answers
368 views

Sharepoint Extension ListView CommandSet - not showing

I created a site page and then inside that I added a List webpart, and then choose the list I wanted. Then I put the link of that page in my extension on pageUrl in serve.json. But the extension is ...
user avatar
0 votes
1 answer
775 views

Prevent Dialog from closing after pressing OK - SPFX Extension Listview Command

I created a spfx extension that shows a dialog using Dialog.alert(`Are you sure you want to open Quarter ${selectedItem.Quarter} for Period ${selectedItem.Period}?`).then(() => { this....
user avatar
0 votes
1 answer
716 views

How to trigger Microsoft Flow using SPFx Extension's ListView Command set

As the title says, How to trigger Microsoft Flow using SPFx Extension's ListView Command set? Has anyone tried this and get it to work? Please guide me to achieve this.
user avatar
1 vote
3 answers
2k views

SPFx Deployment - Failing Gulp package-solution -- ship

Update: I was aiming for extenal CDN and I uploaded the artifacts successfully after setting "includeClientSideAssets": false. Still even after adding my app in app Catalog with no error, adding the ...
user avatar
0 votes
1 answer
212 views

SharePoint Framework Extension Deployment Challenges

I am quite new to SharePoint and want to know if I can create a custom variable(property) in SharePoint Online (may be at site level and Tenant level) and use it in SPFx. I had a requirement to ...
user avatar
0 votes
1 answer
571 views

How to get Share URL from command set?

I am developing a command set & looking for a way to get the Share URL of selected documents. I have tried these to get other urls. event.selectedRows.getValueByName('.spItemUrl'); event....
user avatar
0 votes
1 answer
286 views

Mismatch in SPFX ListviewCommandSet buttons visibility in modern Document Library

When I set the visibility of the the custom button, It should be applicable at both places (ContextMenu + CommandBar). I am having 2 buttons (Add Fav + Remove Fav). Based on few conditions, i am ...
user avatar
  • 2,317
5 votes
4 answers
4k views

SPFX - Listview command - Get current folder

I have created a SPFX Listview command and I need to get the current URL of the folder that I am in. Does anyone know if this is possible? I can't find any documentation regarding this on sp-pnp-js ...
user avatar
  • 320
1 vote
1 answer
195 views

SPFx: ctx.ListSchema equivalent in modern list view

Classic list view provides information on the list schema through ctx.ListSchema, is there any for SPFx. I tried almost all objects in SPFx ListViewCommandSet and they are null or empty. Is there way ...
user avatar