SOLVED

Button to trigger Flow in link to SharePoint item

New Contributor

Hello!

 

I have a button in a SharePoint list column that triggers an approval flow for a selected item.  It's a regular single line of text column.

 

When you open the item in the SharePoint list, or open a link to the item, the button isn't there.  It's just a blank text field.  I want to be able to email the link to the item, and let the receipt click the button to run the flow when editing the item, instead of giving them access to the entire list.  Is there currently a way to accomplish this?

 

Thanks in advance!

4 Replies

@MeShare685 Create a flow button in list using JSON column formatting. Flow button will be shown in list view as well as "display" form of list item (<siteUrl>/lists/listName/dispform.aspx?ID=1.

 

Follow this Microsoft official documentation for more information: Create a button to launch a Flow  


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

@ganeshsanap  Hi, thanks for answering my question.  I might be missing something, but the button is not showing in the display form of the list item.  I've attached pictures.

This is the list view:

MeShare685_0-1655127641085.png

This is the display form of the list item:

MeShare685_1-1655127693726.png

 

 

best response confirmed by MeShare685 (New Contributor)
Solution

@MeShare685 Ah, seems there is some problem with this JSON when text field is empty. Try adding some default value for your single line of text column from column settings like: 

ganeshsanap_0-1655130223743.png


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

That worked! Thank you!