Sharepoint list custom button in each rows

%3CLINGO-SUB%20id%3D%22lingo-sub-1844481%22%20slang%3D%22en-US%22%3ESharepoint%20list%20custom%20button%20in%20each%20rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1844481%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20new%20to%20sharepoint%20but%20I%20want%20to%20do%20something%20that%20seems%20quite%20hard%20to%20do.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20add%20a%20button%20to%20each%20rows%20of%20a%20list%20that%20would%20display%20%22to%20be%20approved%22%20and%20when%20I%20click%20on%20it%2C%20it%20would%20send%20an%20email%20to%20the%20customer%20concerned%20by%20the%20file%20to%20be%20approved%20and%20send%20him%20the%20file's%20url.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20the%20customer%20goes%20on%20that%20page%20it%20would%20show%20him%20a%20button%20named%20%22actions%22%20that%20would%20open%20a%20pop%20up%20with%20two%20button%20(%22approve%22%20and%20%22reject%22)%20with%20a%20textarea.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECustomer%20actions%20would%20be%20logged%20in%20another%20list%20(what%20he%20choose%20and%20the%20message%20if%20there%20is%20one)%20and%20the%20button%20on%20my%20list%20that%20showed%20%22to%20be%20approved%22%20would%20then%20display%20%22approved%22%20and%20would%20not%20be%20clickable.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20could%20do%20that%20in%20a%20matter%20of%20minutes%20with%20pure%20code%20but%20I'm%20quite%20lost%20with%20sharepoint%20modern%20online.%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20seen%20that%20this%20could%20quite%20be%20done%20with%20Flows%20but%20I%20don't%20know%20how%20to%20update%20the%20value%20of%20the%20button%20(how%20could%20I%20know%20that%20the%20button%20as%20been%20clicked%20%3D%26gt%3B%20maybe%20with%20the%20file's%20ID%20as%20a%20reference).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20someone%20could%20help%20me%20that%20would%20be%20very%20nice.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1844481%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1844498%22%20slang%3D%22en-US%22%3ERE%3A%20Sharepoint%20list%20custom%20button%20in%20each%20rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1844498%22%20slang%3D%22en-US%22%3Ecool%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1844500%22%20slang%3D%22en-US%22%3ERE%3A%20Sharepoint%20list%20custom%20button%20in%20each%20rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1844500%22%20slang%3D%22en-US%22%3Ei%20love%20your%20point%20in%20your%20share%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1845119%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%20list%20custom%20button%20in%20each%20rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1845119%22%20slang%3D%22en-US%22%3ETake%20a%20look%20at%20this%20post%20from%20Laura%20Rogers%3A%20%3CA%20href%3D%22https%3A%2F%2Fwonderlaura.com%2F2018%2F07%2F18%2Fbutton-in-sharepoint-list-to-trigger-microsoft-flow%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwonderlaura.com%2F2018%2F07%2F18%2Fbutton-in-sharepoint-list-to-trigger-microsoft-flow%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1849141%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%20list%20custom%20button%20in%20each%20rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1849141%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F60%22%20target%3D%22_blank%22%3E%40Juan%20Carlos%20Gonz%C3%A1lez%20Mart%C3%ADn%3C%2FA%3E%26nbsp%3BI%20edited%20my%20post%20to%20mention%20that%20I%20cannot%20use%20flows%20but%20thanks%20I%20already%20read%20her%20post%20which%20is%20fantastic%2C%20I%20used%20it%20and%20worked%20pretty%20well%20but%20not%20applicable%20for%20my%20client's%20requirements%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello,

 

I'm new to sharepoint but I want to do something that seems quite hard to do.

 

I would like to add a button to each rows of a list that would display "to be approved" and when I click on it, it would send an email to the customer concerned by the file to be approved and send him the file's url. 

 

When the customer goes on that page it would show him a button named "actions" that would open a pop up with two button ("approve" and "reject") with a textarea. 

 

Customer actions would be logged in another list (what he choose and the message if there is one) and the button on my list that showed "to be approved" would then display "approved" and would not be clickable. 

 

I could do that in a matter of minutes with pure code but I'm quite lost with sharepoint modern online. 

I've seen that this could quite be done with Flows but I don't know how to update the value of the button (how could I know that the button as been clicked => maybe with the file's ID as a reference).

 

If someone could help me that would be very nice. 

 

Thank you :) 

 

EDIT : In no matter I can use Flow to do that. My client doesn't want to pay the licensing so.... I've made a button webpart with spfx but how can I add it in the Document Library ? 

 

2 Replies

@Juan Carlos González Martín I edited my post to mention that I cannot use flows but thanks I already read her post which is fantastic, I used it and worked pretty well but not applicable for my client's requirements :)