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
Nick KeehanNick Keehan 

Apex Code to trigger assignment rules without updating W2C of XML etc

Hi Guys.

New to apex (slowly learning). We have outsourced a project to a salesforce partner to create a Referral program through a XML and Case setup. The XML has been handed off to our referral partner and am finding it tricky to get my hands on it for any editing. The xml doesnt trigger any case assignment rules.

Is it possible to have a piece of apex code which will trigger assignment rules in every instance of a case being created?

I have had a look online and found some code to add to the xml which unfortunatly i cannot get my hands on.

Any help would be greatly apreciated.
Best Answer chosen by Nick Keehan
NagaNaga (Salesforce Developers) 
Hi Nick,

User-added imagePlease let me know if this helps

Best Regards
Naga Kiran

All Answers

NagaNaga (Salesforce Developers) 
Hi Nick,

User-added imagePlease let me know if this helps

Best Regards
Naga Kiran
This was selected as the best answer
Nick KeehanNick Keehan
Hi Naga, i have tried using the salesforce instruction above.

I am getting an error - Error: Compile Error: unexpected token: 'AssignmentRule' at line 2 column 0

Any idea how i overcome this?

Nick