Skip to main content
Is there any way or validation rule for "Attach a file" section mandatory according to Stage in Opportunity
2 respuestas
  1. 26 jun 2017, 8:46
    Hi Pradeep,

     

    Nothing OOTB without using APEX.

     

    If you are looking for something declataively, you can try the below

     

    Create a Number field on Opportunity Object and using one of the below approaches rollup the count of attachments to the Number field

     

    Rollup Helper

     

    Declarative Lookup Summaries Tool

     

    Flow with Process Builder

     

    Now create a validation rule on Opportunity Object as below

    AND(

    TEXT(StageName) = 'Closed Won',

    Count_Field__c < 1

    )

    If you want to have the attachments for multiple Stagenames, the formula will be as below

    AND(

    CASE(StageName,

    'Stage1',1,

    'Stage2',1,

    'Stage3',1,

    0) = 1,

    Count_Field__c < 1

    )

    Update the Case function to inlude additional Stage values if needed and replace stage1 to 3 with the actual stage values.

     

     
0/9000