You have 2 options to execute CustomJS functions from Salesforce.
You can easily integrate CustomJS into your Salesforce UI via button links.
This allows you to control actions such as creating PDFs, sending emails or triggering other APIs directly from Salesforce.
Learn more: CustomJS + Salesforce UI Integration
You can also trigger CustomJS functions via webhooks. So you can use automatic workflows to execute your written JavaScript whenever, for example, an opportunity changes.
Learn more: CustomJS + Salesforce Outbound Messages
For example, you can use it to enrich your data records in Salesforce via CustomJS Forms or simply create new records.
If you want to access the Salesforce API, you have to do this via a Connect app.
Learn more: CustomJS + Salesforce API Access
Enrich Salesforce CRM data using CustomJS and dynamic forms.
[Read more]Learn how to automate emails using CustomJS with Salesforce integration.
[Read more]Learn how to automate invoices using CustomJS with Salesforce integration.
[Read more]