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
Shamsi 110Shamsi 110 

can an appechange product includes call outs to external system?

Hello All,

I want to create an appexhange manage package for my customers and i want to get some suggestions from you guys.

I was wondering can i call outs in some of my triggers of this package to some external system.

What are the security concerns that i would need to look after.

Thanks
Ajay K DubediAjay K Dubedi

Hi Shamsi,

Yes, we can call out trigger from Future Method. A future method runs in the background, asynchronously. You can call a future method for executing long-running operations, such as callouts to external Web services or any operation you’d like to run in its own thread, on its own time.

A future method can have native calls, as well as, they can make a call out to an external web service and hence, in order to enable the future method to allow callouts, an extra parameter “Callout=true” needs to be passed.

Here is the link which helps more about the future methods

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_invoking_future_methods.htm

Thanks.
Ajay Dubedi