question

MaxErmakov-9878 avatar image
0 Votes"
MaxErmakov-9878 asked JulieWang-MSFT commented

SharePoint 2019: Column with JSON formating does not run workflow

Hello!
I am using SharePoint 2019 list and trying to run workflow (created via SharePoint Designer) from button in column formated by JSON. The samples of code copied (with workflow ID replacement) from Microsoft Docs (article "Use column formatting to customize SharePoint") and other simple samples for this buttons. But when I am trying to use this button - simply nothing happens. Solutions with formulas connected to JavaScript webparts stopped working with our company migration from SharePoint 2013 to SharePoint 2019. Workflow I am trying to run is simple for testing, just changes numbers in different column of list.
Workflow ID source - right clicking on WF, getting link and cut ID from it.
Screenshot of column formating and12820-wfnotstarting-column-view.jpg is attached.


Is there a way to fix this or some other ways to add buttons in columns?

Thank you in advance!


office-sharepoint-server-customization
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JulieWang-MSFT avatar image
0 Votes"
JulieWang-MSFT answered JulieWang-MSFT commented

Quote from Microsoft, we can use column formatting to create buttons that, when selected, run Flows on the corresponding list item.

However it doesn’t apply to SharePoint designer workflow.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for clarifying!

Is there any other ways to run workflows from list view directly without third-party software? Previously I was using Content Editor Web Parts with Javascripts in them, while having formulas for button creation in column, but these options are not available anymore, since we stopped using SharePoint 2013 due to SharePoint 2019 migration

0 Votes 0 ·

Currently there is no OOB solution for your requirement, I suggest you deploy custom solution using SPFx.

https://docs.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-2019-development-platform

0 Votes 0 ·