You need to sign in to do that
Don't have an account?
pierrefrazny.ax358
javascript in apex class?
Hello,
I have a button which executes some javascript. I need to expose this function via the api.
Could I call the javascript in a apex? and then could I call the apex function via the api?
Thanks
1. You can't call javascript functions from Apex.
Javascript rusn on the user browser while Apex runs on SFDC servers.
2. You can call apex functions via the if you define them as web services.