Forum Discussion
Button to trigger Flow in link to SharePoint item
- Jun 13, 2022
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.
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:
- ganeshsanapJun 13, 2022MVP
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.
- nathanisaacsonMay 12, 2023Copper Contributor
ganeshsanap I'm attempting to do the same thing and have gotten to this step, but even when there is text in the field (and the button is subsequently displayed) it does not let me select the button. It just resorts back to editing the existing test in the field.
- ganeshsanapMay 14, 2023MVP
nathanisaacson Can you share the JSON code you are using? Is it working fine in list view and not working on list forms?
Maybe some limitation with JSON formatting while using customRowAction on list formsPlease consider giving Like if my post helped you in any way.
- MeShare685Jun 13, 2022Copper ContributorThat worked! Thank you!