SOLVED

Sharepoint List Button

%3CLINGO-SUB%20id%3D%22lingo-sub-849067%22%20slang%3D%22en-US%22%3ESharepoint%20List%20Button%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-849067%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20custom%20list%20for%20a%20ticketing%20system.%20Using%20custom%20formatting%2C%20I've%20got%20a%20button%20that%20displays%20the%20EditItem%20form%20and%20the%20ViewItem%20form.%20My%20next%20challenge%20is%20to%20create%20button%20that%20can%20set%20a%20field%20for%20the%20item%20to%20the%20currently%20logged%20in%20user.%20(Accept%20ticket).%20Is%20this%20something%20I%20need%20to%20do%20with%20Flow%3F%20How%20do%20I%20pass%20the%20current%20item%20and%20logged%20in%20user%20to%20the%20flow%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-849067%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-849380%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%20List%20Button%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-849380%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F407329%22%20target%3D%22_blank%22%3E%40MjnMixael%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20use%20Flow%20to%20perform%20an%20update%20item%20action%20in%20the%20list.%20Use%20the%20SharePoint%20%22For%20a%20selected%20item%22%20trigger.%20Add%20a%20%22button%22%20using%20JSON%20column%20formatting%20to%20start%20the%20Flow%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-list-formatting%2Ftree%2Fmaster%2Fcolumn-samples%2Fgeneric-start-flow%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-list-formatting%2Ftree%2Fmaster%2Fcolumn-samples%2Fgeneric-start-flow%3C%2FA%3E%3CSPAN%3E.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20hope%20this%20helps.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ENorm%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-849435%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%20List%20Button%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-849435%22%20slang%3D%22en-US%22%3E%3CP%3EOh%20I%20see.%20So%20that%20just%20leaves%20me%20with%20how%20to%20get%20the%20ID%20of%20the%20user%20who%20clicked%20the%20button%20or%20did%20I%20miss%20something%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAha.%20It's%20included%20in%20the%20For%20Selected%20Item%20Trigger.%20Excellent.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-849439%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%20List%20Button%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-849439%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F407329%22%20target%3D%22_blank%22%3E%40MjnMixael%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20will%20be%20provided%20by%20the%26nbsp%3B%3CSPAN%3ESharePoint%20%22For%20a%20selected%20item%22%20trigger.%20If%20you%20need%20help%20let%20me%20know.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ENorm%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have a custom list for a ticketing system. Using custom formatting, I've got a button that displays the EditItem form and the ViewItem form. My next challenge is to create button that can set a field for the item to the currently logged in user. (Accept ticket). Is this something I need to do with Flow? How do I pass the current item and logged in user to the flow?

3 Replies
Best Response confirmed by MjnMixael (New Contributor)
Solution

Hi @MjnMixael,

 

You can use Flow to perform an update item action in the list. Use the SharePoint "For a selected item" trigger. Add a "button" using JSON column formatting to start the Flow - https://github.com/SharePoint/sp-dev-list-formatting/tree/master/column-samples/generic-start-flow

 

I hope this helps.

 

Norm

Oh I see. So that just leaves me with how to get the ID of the user who clicked the button or did I miss something?

 

Aha. It's included in the For Selected Item Trigger. Excellent.

Hi @MjnMixael,

 

That will be provided by the SharePoint "For a selected item" trigger. If you need help let me know.

 

Norm