Questions tagged [listviewcommandset]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
4answers
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 ...
3
votes
1answer
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="...
2
votes
2answers
131 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 ...
2
votes
0answers
339 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 ...
1
vote
3answers
1k 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 ...
1
vote
1answer
181 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 ...
1
vote
1answer
877 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: ...
1
vote
1answer
307 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 ...
1
vote
0answers
48 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 ...
1
vote
0answers
63 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", }, "...
1
vote
0answers
618 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/sharepoint/"> <...
1
vote
1answer
216 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 ...
0
votes
1answer
530 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....
0
votes
1answer
510 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) { ...
0
votes
1answer
594 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.
0
votes
0answers
123 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, ...
0
votes
0answers
27 views

Command extension visibility after promise resolve

I have command extension on all list and i need to show custom NEW button if list contains certain content type identified by NAME, not ID If I do this ctPromise: Promise<any>; public ...
0
votes
1answer
180 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? ...
0
votes
1answer
616 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....
0
votes
1answer
204 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 ...
0
votes
1answer
266 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 ...