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
tocktock 

How do you make an S-Control only run on the 'Save' trigger

Hello,
 
  I have an S-Control, which posts records to an external server. This is embedded in the opportunity page and works fine, however it runs every time the page is loaded. How do i get it to run, only on the 'save' trigger?
 
Cheers.
DevAngelDevAngel
You can't put javascript on an edit page.  You should take a look at outbound messaging and workflow to implement this.  Using workflow you can configure a rule to create a simple outbound message when an opportunity is updated or created.  The outbound message can contain whatever fields on the oppty you deem necessary.  You set up a web server to run a simple web services that salesforce will send the message to.  On that web server, which should be within your firewall but externally addressable, would take the info in the outbound message and update the other system.


cheers