Questions tagged [listviewcommandset]

The tag has no usage guidance.

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

if we have to use ListView Command Extension button not only one library or list but all the over the site from that one button so how can we do

I have created a Command Button in Ribbon below rename. I have to use this single button or functionality in every library are there in my site. so how can do this in the list view command extension
Kajal's user avatar
  • 11
0 votes
1 answer
111 views

custom ListView command set extension

I am very new to SPFX and would like to know if you can help me. I have added a new option to the context menu; please see the photo below. What I need is for when the users click on either of the new ...
Harris's user avatar
  • 559
0 votes
1 answer
124 views

Build your first ListView Command Set extension

I created my first ListView extension by watching a Microsoft video. The issue I have is I can see the new menu on the top navigation bar: However they wont show on the menu bar on the actions (three ...
Harris's user avatar
  • 559
0 votes
0 answers
138 views

Target two different ListTemplateId:s with List view command set

I'm trying to add an listview command set with tenant-wide provisioning, and I can't seem to find any solution for how to target two different list types while doing that. Since it says on the ...
Tarzzi's user avatar
  • 1
0 votes
1 answer
99 views

Restrict Sharepoint extension to be used on one specific list

There is an extension (custom ribbon) button on top of the list, that is connected to third-party apps, updating the list where you run it. It's needed to restrict the extension to be used only in the ...
Giorgi Gvimradze's user avatar
0 votes
2 answers
426 views

Feature is not added to site when I install an SPFx app with a list view command set a second time

I have an SPFx extension deployed to my tenant app catalog. The app implements a list view command set and in package-solution I set skipFeatureDeployment to false so that site owners can add the app ...
RussGove's user avatar
  • 1,254
0 votes
1 answer
679 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....
Michael's user avatar
  • 179
0 votes
1 answer
394 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": { &...
Dadudki's user avatar
  • 33
2 votes
1 answer
405 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=&...
Abdelmoumene BENAIDA's user avatar
0 votes
0 answers
762 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, ...
Omi in a hellcat's user avatar
0 votes
1 answer
2k 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) { ...
kumar's user avatar
  • 139
1 vote
0 answers
108 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 ...
maxE's user avatar
  • 121
2 votes
2 answers
291 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 ...
olivier3232's user avatar
1 vote
0 answers
172 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", }, "...
Y. Jagtap's user avatar
  • 323
1 vote
1 answer
2k 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: ...
23W's user avatar
  • 185
1 vote
0 answers
956 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/...
23W's user avatar
  • 185
3 votes
1 answer
2k 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="...
23W's user avatar
  • 185
1 vote
1 answer
322 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 ...
Mahesh kumar Chiliveri's user avatar
0 votes
1 answer
267 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? ...
Bimalendu's user avatar
1 vote
1 answer
625 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 ...
Zach Roberts's user avatar
2 votes
0 answers
399 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 ...
Dan Sto Domingo's user avatar
0 votes
1 answer
1k 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....
Dan Sto Domingo's user avatar
0 votes
1 answer
927 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.
Dan Sto Domingo's 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 ...
DevDen 's user avatar
0 votes
1 answer
224 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 ...
DevDen 's user avatar
0 votes
1 answer
704 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....
Arun Vinoth-Precog Tech - MVP's user avatar
0 votes
1 answer
331 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 ...
DvG's user avatar
  • 2,332
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 ...
Frank H's user avatar
  • 330
1 vote
1 answer
214 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 ...
Rajesh Sitaraman's user avatar