Nov 28 2018 07:37 AM
Hi,
I need to add a button (as seperate column) in my Sharepoint Online list which will be visible when another column "Approval Status" has 'Pending' value and then when I click this button will change the status of Approval Status from Pending to Approved.
.Approval Status is choice column.
Can you please advise.
Thank you
Nov 28 2018 08:17 AM
Nov 28 2018 10:37 AM
Thank you Chris, Although this link is referred about the MS flows , while I need just to change the status of a specific field by clicking a button.
I tried also to follow the video(Laura) with trigger MS flow but it doesn't work, please see below the json code.
ere is the json :
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
“elmType”: “button”,
“txtContent”: “Get Approved”,
“customRowAction”: {
“action”: “executeFlow”,
“actionParams”: “{\”id\”: \”4f74601c-6756-43b1-bfed-914a1fc5b321\”}”
},
“style”: {
“background-color”: “purple“,
“color”: “white”
}}
Can you please advise..
Thank you
Nov 28 2018 10:41 AM
SolutionNov 28 2018 11:18 AM
Thank you Chris.
I have already done that , but unfortunately it doesn't work.. It works OK by using the Flow Drop down menu for "Selected Item" .
Can you please check the Json formatting, it says that there is error...
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
“elmType”: “button”,
“txtContent”: “Get Approved”,
“customRowAction”: {
“action”: “executeFlow”,
“actionParams”: “{\”id\”: \”4f74601c-6756-43b1-bfed-914a1fc5b321\”}”
},
“style”: {
“background-color”: “purple“,
“color”: “white”
}}
Thank you
Nov 28 2018 11:20 AM
Jan 26 2022 04:43 PM
Nov 28 2018 10:41 AM
Solution