Forum Discussion

MeShare685's avatar
MeShare685
Copper Contributor
Jun 10, 2022
Solved

Button to trigger Flow in link to SharePoint item

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!

  • 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: 


    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.

  • 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.

    • MeShare685's avatar
      MeShare685
      Copper Contributor

      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:

      This is the display form of the list item:

       

       

      • ganeshsanap's avatar
        ganeshsanap
        MVP

        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: 


        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.

Resources