Executive Summary
Gagstek implemented MuleSoft as middleware between a source Salesforce system (holding advertisement and media data) and a target Salesforce system — automating listing creation, updates, image uploads, and deletions in real time.
The solution listens to Salesforce Platform Events, enriches data via SOQL queries, transforms records into target payloads using DataWeave 2.0, and calls target REST APIs with full OAuth2 token management. The result: a reusable, secure, API-led architecture that eliminated manual errors, reduced time-to-market for listings, and laid the groundwork for rapid onboarding of future marketplace channels.
Business Problem
Solution Overview
Gagstek designed and built two System APIs following MuleSoft's API-led connectivity model — isolating concerns between the source and target systems for maximum maintainability and reuse.
Advertisement_Sync_Event__e) via Replay Listener. Executes SOQL queries on Advertisement, Vehicle, and ModelVariant objects, then triggers the Target System API.Architecture
The integration follows a clean event → enrich → transform → act pattern across two decoupled System APIs:
Each layer is independently deployable and testable, following MuleSoft's System → Process → Experience API pattern — making the architecture easy to extend to additional marketplaces or data sources without rebuilding core logic.
Key Components & Technical Highlights
salesforce:replay-channel-listener, salesforce:query-all, and salesforce:update to interact natively with Salesforce at every stage.ContentVersion.VersionData, converts it using dw::core::Binaries, and posts as multipart/form-data to the target image endpoint.Results & Business Benefits
Client Testimonial
"GAGSTEK built a resilient, event-driven integration that automatically syncs Salesforce advertisements and images to our target platform. It manages OAuth tokens securely, handles retries for transient failures, converts and uploads image binaries, and writes back identifiers to Salesforce — giving us a fully auditable, low-touch publishing pipeline that's reusable for any future marketplace we add."