You need to sign in to do that
Don't have an account?

To Call Custom Button URL in Apex code
Hi,
I have created Custom Detail Page Button with a HTTP URL. When user clicks on that button on a record, the URL link gets executed( Contacts third party server) and a field value is updated with the result on the record.
I have a requirement to not use this custom button and make the process automatic i.e. to execute URL Execution when a record is created ( Instead of user clickling on the button everytime).
Do anyone have idea how to call this HTTP URL in the apex class when a record is created?
Thanks in advance
I have created Custom Detail Page Button with a HTTP URL. When user clicks on that button on a record, the URL link gets executed( Contacts third party server) and a field value is updated with the result on the record.
I have a requirement to not use this custom button and make the process automatic i.e. to execute URL Execution when a record is created ( Instead of user clickling on the button everytime).
Do anyone have idea how to call this HTTP URL in the apex class when a record is created?
Thanks in advance
I guess u can write trigger on the object !! In Trigger you can perform http callouts (Only limit is you have to make http callout as future method) !!
You please refer following links,
http://sfdcintegration.blogspot.in/2013/05/cheenath.html
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_future.htm
Were u able to do the same??
please reply...
Thanks