function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VJ_SFDCVJ_SFDC 

Lead Assignment Rules is not triggering for Community users created leads

Lead Assignment is not working if portal user is creating.


Added dml layout options and also setup layout properties. any guess.
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi,

May I suggest you please check two things.
1. Is the Assignment Rule active?
2. Is the following checked? and also refer the below link for reference. hope it helps.

Please mark it as best answer if the information is informative.

Thanks
Rahul Kumar

 
VJ_SFDCVJ_SFDC
Thanks Rahul.

I did three steps, I believe it is limitations that's why I wanted to check, I am creating leads from Community portal  and I am using Partner central community which is lightning based.

1) I have added dmloptions in the trigger 

trigger TriggerAssignmentRule on Lead (before insert,before update) {
    for(Lead objL:trigger.new){
        Database.DMLOptions dmo = new Database.DMLOptions();
        dmo.assignmentRuleHeader.useDefaultRule = true;
        objL.setOptions(dmo);
    }
}

2) My assignment rule is also active

3) For all the layouts I setup - Assign using active assignment rule = true


For the community user layout also i setup that but it is not visible in the edit layout but default value i made true