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
AmayAmay 

How to integrate a product with salesforce?

Questions

I’m trying to create an integration between salesforce and the other product. As there are no webhooks functionality in salesforce, we tried integrating it through Apex trigger with future callouts which sends the payload of any assets(Account, Case, Opportunity, Lead) at the time of (create/update) to the respective REST endpoints.
The endpoint is made configurable with the help of Custom Metadata. The customer will have to create a record in the metadata which will be used to track the respective endpoint with other authentication parameters which will again be mentioned in fields of Metadata and is configurable.

The first question
Are there any better ways to achieve this functionality rather than packaging Custom Metadata ?

The other part is packaging the components(triggers, classes, metadata). We tried with the approach of creating an unmanaged package, but we are not able to avoid Test Suites for the same.

Are there any ways to avoid running test cases or making the test cases more generic so that while deploying, it can adjust with the customer’s org without any maintenance of the Test Suites written for our usecase?

We are trying to integrate Custom Objects too with our product in a similar fashion, the trigger code seems to be same as the Standard trigger and there is no difference except ObjectName
but how to write or configure test cases for custom objects without maintenance in the client’s org?

PriyaPriya (Salesforce Developers) 
The developer community recommends providing any attempts/code you've started, any errors you're getting, or where exactly you're struggling in achieving this while posting a question.
AmayAmay

Hi Priya,

Would you please tell me how can we avoid running test cases in unmanaged package, so that customers can install our app without running tests of our unmanaged components?