Skip to main content

Getting Started

To enable the custom mapping component for specific connectors, you can call the enableCustomMapping function.
 <script src="./dist/widget.js" ></script>
    <script>
      const hotglue = new Hotglue({
        tenantId: <your-tenant-id>,
        environmentId: <your-environment-id>,
        apiKey: <your-api-key>,
        jwt: <tenant-jwt>
      });

      // Pass an array of connector IDs that should have custom mapping enabled
      hotglue.enableCustomMapping(['shopify', 'stripe', 'hubspot']);
    </script>
</script>

Sample Mapping Output

After saving their mapping, the following field will be added to the tenant’s tenant-config.

  "hotglue_mapping": {
    "mapping": {
  "dynamics-bc": [
      {
        "source": "Supporters",
        "target": "Account",
        "fields": {
          "first_name": "FirstName",
          "last_name": "LastName",
          "email": "PersonEmail"
        }
      },
      {
        "source": "Contributions",
        "target": "GiftTransaction",
        "fields": {
          "givecloud_hgexid": "GiveCloud_Gift_Transaction_ID__c",
          "contribution_number": "Name"
        }
      }
    ] 
    } 
}