Monday, April 29, 2019

SharePoint : Create a button or link in a list that can Check Workflow Status or Start an MS Flow

1. Create link on List to check Workflow Status (OnPrem SP2010/2013 & SPO ModernUI)

Example of link column on list to view Workflow Status: View Example of link to Workflow Status:

SPO Modern UI:

SharePoint Column Formatting ModernUI : column formatting to customize SharePoint

0. Get GUID of list :

e.g: 8B418B49-95E8-4851-9CBB-F04542182AB5

1. Add Column,

e.g: See Here

2. Set Column Customization: e.g:

SPO: COLUMN Customizations Cool!

{

"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",

"elmType": "a",

"txtContent": "@currentField",

"attributes": {

"target": "_blank",

"href": "='[YourSite]/_layouts/15/Workflow.aspx?List={8B418B49-95E8-4851-9CBB-F04542182AB5}&ID=' + [$ID]"

}

}

3. View List

OnPrem

0. Get GUID of list :

e.g: 8B418B49-95E8-4851-9CBB-F04542182AB5

1. Calculated Column:

e.g: See here

2. Apply Formula:

="https://smhi365.sharepoint.com/sites/MigrationTest/_layouts/15/Workflow.aspx?List={8B418B49-95E8-4851-9CBB-F04542182AB5}&ID="&ID

2. Create a buttin to start an MS Flow:

Example showing button and link:

More Details Here:

https://wonderlaura.com/2018/07/18/button-in-sharepoint-list-to-trigger-microsoft-flow/

No comments:

Post a Comment