Home

Discard Checkout functionality for Sharepoint List Item

%3CLINGO-SUB%20id%3D%22lingo-sub-1331548%22%20slang%3D%22en-US%22%3EDiscard%20Checkout%20functionality%20for%20Sharepoint%20List%20Item%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1331548%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Gurus%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3BI%20am%20new%20to%20Sharepoint.%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fsmile_40x40.gif%22%20alt%3D%22%3Asmile%3A%22%20title%3D%22%3Asmile%3A%22%20%2F%3E%26nbsp%3B%20I%20am%20working%20in%20the%3CSTRONG%3E%26nbsp%3BSharepoint%20List%3C%2FSTRONG%3E.%20I%20Want%20Discard%20Check-Out%20functionality.%20I%20tried%20with%20the%20Custom%20Action%20in%20SPD.%20I%20added%20a%20Custom%20Action%20'Discard'%20and%20triggered%20a%20workflow%20and%20wrote%20my%20functionality%20.The%20issue%20is%2C%20For%20some%20users%20Workflow%20is%20not%20being%20triggerred.%20For%20some%20users%20it%20gets%20triggered%20(I%20checked%20with%20Logs).%3C%2FP%3E%3CP%3EWhat%20could%20be%20the%20issue%3F%20Is%20there%20any%20default%20behavior%20for%20Discarding%20List%20Item%20Edit%20by%20other%20user%3F.%3C%2FP%3E%3CP%3EIf%20workflow%20triggered%20for%20all%20users%20my%20problem%20gets%20solved.%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fsad_40x40_1.gif%22%20alt%3D%22%3Asad%3A%22%20title%3D%22%3Asad%3A%22%20%2F%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EPlease%20help!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EAnnamsoft%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1331548%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPermissions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESites%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1332022%22%20slang%3D%22en-US%22%3ERe%3A%20Discard%20Checkout%20functionality%20for%20Sharepoint%20List%20Item%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1332022%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F486152%22%20target%3D%22_blank%22%3E%40Annamsoft%3C%2FA%3E%26nbsp%3BHi%20Anna%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20it%20would%20be%20helpful%20to%20have%20a%20bit%20more%20detail%20to%20understand%20what%20exactly%20is%20failing.%20Is%20the%20workflow%20failing%20to%20run%2C%20or%20is%20the%20workflow%20running%20and%20producing%20an%20error%3F%20In%20either%20case%20this%20is%20most%20likely%20a%20permissions%20issue.%20Either%20your%20users%20do%20not%20have%20the%20required%20permissions%20to%20run%20the%20workflow%2C%20or%20the%20action%20in%20the%20workflow%20is%20failing%20because%20of%20the%20user%20not%20having%20the%20required%20permissions.%20Discard%20checkout%20requires%20a%20high%20level%20of%20permission%20on%20the%20document%20library%20so%20this%20very%20well%20could%20be%20the%20issue.%20If%20you%20users%20have%20the%20appropriate%20permissions%20to%20discard%20check-out%2C%20then%20there%20is%20no%20need%20to%20run%20a%20workflow%20for%20this%20they%20can%20just%20do%20this%20already%20in%20the%20UI.%20If%20they%20do%20not%20have%20the%20required%20permissions%2C%20then%20I%20would%20first%20advise%20evaluating%20whether%20you%20can%20fix%20this%20issue%20with%20configuration%20before%20looking%20to%20customise.%20If%20you%20need%20to%20carry%20out%20an%20action%20in%20a%20workflow%20that%20the%20user%20does%20not%20have%20permissions%20to%20do%20themselves%2C%20then%20you%20need%20to%20run%20your%20workflows%20with%20%22App%22%20permissions%2C%20because%20a%20SharePoint%20workflow%20runs%20in%20the%20context%20of%20the%20user%20who%20initiated%20it%20and%20therefore%20you%20cannot%20elevate%20permissions%20(except%20in%20legacy%202010%20workflow%20which%20I%20don't%20advise%20using).%20This%20article%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fgeneral-development%2Fcreate-a-workflow-with-elevated-permissions-by-using-the-sharepoint-workflo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E%20describes%20the%20concept%20of%20how%20to%20elevate%20permissions%20of%20a%20workflow%2C%20if%20this%20indeed%20is%20the%20issue%20you%20are%20facing.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETal%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi Gurus,

   I am new to Sharepoint.:smile:  I am working in the Sharepoint List. I Want Discard Check-Out functionality. I tried with the Custom Action in SPD. I added a Custom Action 'Discard' and triggered a workflow and wrote my functionality .The issue is, For some users Workflow is not being triggerred. For some users it gets triggered (I checked with Logs).

What could be the issue? Is there any default behavior for Discarding List Item Edit by other user?.

If workflow triggered for all users my problem gets solved.:sad: 

Please help!

 

Thanks

Annamsoft

 

1 Reply
Highlighted

@Annamsoft Hi Anna,

 

I think it would be helpful to have a bit more detail to understand what exactly is failing. Is the workflow failing to run, or is the workflow running and producing an error? In either case this is most likely a permissions issue. Either your users do not have the required permissions to run the workflow, or the action in the workflow is failing because of the user not having the required permissions. Discard checkout requires a high level of permission on the document library so this very well could be the issue. If you users have the appropriate permissions to discard check-out, then there is no need to run a workflow for this they can just do this already in the UI. If they do not have the required permissions, then I would first advise evaluating whether you can fix this issue with configuration before looking to customise. If you need to carry out an action in a workflow that the user does not have permissions to do themselves, then you need to run your workflows with "App" permissions, because a SharePoint workflow runs in the context of the user who initiated it and therefore you cannot elevate permissions (except in legacy 2010 workflow which I don't advise using). This article here describes the concept of how to elevate permissions of a workflow, if this indeed is the issue you are facing. 

 

Thanks,

 

Tal