• Conrad Jooste
  • NEWBIE
  • 5 Points
  • Member since 2014
  • Head of Internal Operations
  • Excel4apps

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies
Any dev resources out there that know how to do real-time user provision on the Cornerstone for Salesforce (CfS) LMS package?
I'm trying to put in place a basic trigger for the auto 'assignment of cases' via communities to ensure that they use the default rule & so that I can remove this checkbox "Assign using active assignment rules" from the page layout.

Here's the trigger code, but it doesn't seem to be working. Any ideas?

**********************************************************************
trigger CommunityCaseAssignment on Case (before insert) {
for (Case c: Trigger.new) {
        if (c.Origin == 'Community') {
           Database.DMLOptions dmlOpts = new Database.DMLOptions();
           dmlOpts.assignmentRuleHeader.useDefaultRule = true;
           c.setOptions(dmlOpts);
        }
        }
}

***********************************************************************
Or are there any other creative solutions around this?
Any dev resources out there that know how to do real-time user provision on the Cornerstone for Salesforce (CfS) LMS package?
I'm trying to put in place a basic trigger for the auto 'assignment of cases' via communities to ensure that they use the default rule & so that I can remove this checkbox "Assign using active assignment rules" from the page layout.

Here's the trigger code, but it doesn't seem to be working. Any ideas?

**********************************************************************
trigger CommunityCaseAssignment on Case (before insert) {
for (Case c: Trigger.new) {
        if (c.Origin == 'Community') {
           Database.DMLOptions dmlOpts = new Database.DMLOptions();
           dmlOpts.assignmentRuleHeader.useDefaultRule = true;
           c.setOptions(dmlOpts);
        }
        }
}

***********************************************************************
Or are there any other creative solutions around this?