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
somasundaram ssomasundaram s 

best code using layers

Hi
I am using a service layer and having a method in the service layer , and calling this method from a button in a custom object, if multiple user call this method at a time , will it affect the performance , how to overcome this performance issue , please advise.

Instead of writing before trigger in each object, want to write a generic code using service layer or some other method i just pass the field names and object name to validate.is it possible .

could you please help me to get good architecture diagram
thanks
salesforce mesalesforce me
Hi check it once...
<apex:page sidebar="false" showHeader="false" controller="PullFromTaleo">
    <apex:form >
        <apex:actionFunction name="Method1" action="{!Method1}" oncomplete="Method2();" />
        <apex:actionFunction name="Method2" action="{!Method2}" oncomplete="Method3();" />
        <apex:actionFunction name="Method3" action="{!Method3}" oncomplete="Method5();" />
        <apex:actionFunction name="Method5" action="{!Mehtod2}" oncomplete="Method4();"/>
        <apex:actionFunction name="Method4" action="{!Mehtod4}" oncomplete="alert('All done with the chain of events');" />
    </apex:form>

    <script>
        // kick it off
        Method1();
    </script>

</apex:page>