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
pavan.elthepu1.392651269495206E12pavan.elthepu1.392651269495206E12 

Call WebService Using JavaScript from external System

I just created chrome extension, and adding a button onto EmailAithor page whenever user opens EmailAithor page. On clicking this button I want to call my apex web service. How can I achieve this? Please help me. And I want to authenticate using username, and password.
Note: I want to call this webservice from my chrome extension.
RD@SFRD@SF
Hi Pavan,

I hope you have exposed it as a WSDL file, you can use a SOAP call to call the web service.

Hope it helps
RD
 
pavan.elthepu1.392651269495206E12pavan.elthepu1.392651269495206E12
Can you please share sample code on how to call web service from JavaScript? I'm getting cross origin error
NagendraNagendra (Salesforce Developers) 
Hi Pavan,

May I suggest you please check with below link from the stack overflow community which might help you to accelerate further with the above requirement. Please let us know if this helps.

Thanks,
Nagendra