About the Client

BAC Partners is an Australian digital transformation and customer experience consultancy that helps organizations improve sales, marketing, customer service, and business operations through strategy, process optimization, CRM platforms, and automation solutions. The company specializes in designing and implementing customer-centric technology solutions that enable businesses to scale, enhance customer engagement, and drive operational efficiency across multiple industries. Their expertise spans customer experience transformation, go-to-market strategy, CRM implementation, marketing automation, and managed services.
https://www.bac.co/

Project Background

BAC Partners required a CRM visibility layer for a dental practice group client whose operational data resided in SAP Business One. The sales and marketing teams needed that data surfaced in HubSpot in a structured, clean format that was automatically kept up to date without manual exports or re-keying.

The challenge was architectural, as SAP and HubSpot use different data models. The solution required an intermediate MySQL staging database (DB-2) to normalize SAP data, apply custom business rules including RFM scoring, and push the processed information into HubSpot’s three core CRM objects. BAC Partners also required the application to be Python-based and configuration-driven, enabling it to be replicated across future client engagements by simply updating a configuration file.

Scope & Requirements

In Scope
Out of Scope

Project Timelines

Phase

Key Deliverables

Status

Phase A

Requirement gathering, SSH & DB access, data mapping analysis, HubSpot field configuration, scope sign-off

Done

Phase B

DB1→DB2 Python pipeline, CRON batch jobs, RFM calculation logic, unit testing

Done

Phase C

HubSpot API integration (companies, contacts, deals), relationship linking, bug fixes, 1k-record test push

Done

Phase D

Change-pointer sync, full dataset migration (5,754 companies · 5,346 contacts · 147k+ deals), daily RFM update, hypercare

Done

Results & Impact

Observability & Visibility

Assessment Report

Phase A delivered a comprehensive assessment before any code was written, including:

Cloud Formation

Integration Architecture

Below is the high-level architecture diagram.

Outcome Metrics

✔  Full Visibility

Assessment & data-mapping report with risk/gap analysis signed off before a line of code was written.

☁  Cloud-Native Pipeline

Python-based sync on Ubuntu cloud — config-driven for multi-instance reuse across BAC Partners clients.

⚡  6-Week Delivery

All four phases from requirement gathering to full dataset go-live completed in under six weeks.

Data Mapping

Deal Field Mapping (SAP → HubSpot)

HubSpot Field

SAP Column

Business Rule

Deal Name

DocNum

Prefix “DocNum: ” prepended to value

Deal Stage

—

“Customer Invoiced” (fixed value)

Close Date

DocDate

Direct mapping

Company

CardCode

Linked to initialised company record

Amount

—

Sum of (Price × Qty) across all line items per DocNum

Product Brand

U_Brand

All unique U_Brand values per DocNum

Product Category 1

U_Group5

All unique U_Group5 values per DocNum

Product Category 2

U_Group2

All unique U_Group2 values per DocNum

Product Category 3

U_Group3

All unique U_Group3 values per DocNum

Contact Field Mapping (SAP → HubSpot)

HubSpot Field

SAP Column

Business Rule

First Name

—

“Proxy” — fixed value for all integration-generated contacts

Last Name

CardName

Direct mapping

Email

E_Mail

From OCRD table; omitted if missing or malformed

Company

CardName

Link to existing HubSpot company — all companies initialised first

Company Field Mapping (SAP → HubSpot)

HubSpot Field

SAP Column

Business Rule

Card Code

CardCode

First unique CardCode used as primary key

Company Name

CardName

Direct mapping; falls back to CardCode if blank

City / State / Country

City/State/Country

Direct mapping

Phone

Phone1

Direct mapping

Website URL

IntrntSite

Direct mapping

Parent Company

FatherCard

Child-to-parent association — all companies initialised first

Days Since Last Order

—

Calculated: days between most recent invoice date and run date

Lifetime Order Count

—

Total non-cancelled invoice count per company

Lifetime Revenue

—

Sum of (Price × Qty) across all non-cancelled invoices

RFM Score

—

(1/R) × F × √M where R=days since last order, F=order count, M=lifetime revenue

Implementation

Phase A — Assessment & Data Mapping

Established SSH and SQL Server access to the SAP environment. Mapped all HubSpot fields against SAP CMS columns, configured custom HubSpot properties (Card Code, RFM Score, Days Since Last Order, and Lifetime Revenue), confirmed API key access, and validated sample RFM calculations against client-provided reference values.

Phase B — DB-1 → DB-2 Pipeline

Built Python extraction scripts to pull company and deal data from SAP SQL Server into MySQL DB-2. Implemented RFM calculations with corrected Price × Quantity multiplication (9-decimal precision). Configured CRON jobs for automated synchronization and validated data counts of 6,086 company records and 485,820 total deal records.

Phase C — HubSpot API Integration

Developed createCompany.py and createDeals.py to push staged data from DB-2 into HubSpot through REST APIs. Key implementation details included:

A 1,000-record subset was migrated initially, resulting in 762 deals, 307 companies, and 263 contacts being created. All field mappings were verified in the HubSpot interface before proceeding with the full migration.

Phase D — Change Sync & Full Migration

Implemented change-pointer logic using last-modified columns from DB-1. Added a daily RFM refresh script (updateCompanyRFMvalues.py) scheduled to run at 5:00 AM to keep Days Since Last Order and RFM scores current. The full dataset migration was executed on 21 October 2019, successfully migrating 5,754 companies, 5,346 contacts, and 147,398 deals, with all relationship links and parent-child hierarchies verified in HubSpot.

Technology & Architecture

Source (DB-1)

SAP Business One (SAP CMS) | SQL Server | OINV · INV1 · OCRD · OITM tables

Staging (DB-2)

MySQL on Ubuntu 18.04 cloud server | 3 tables: Company · Deal · Calculated Columns

Language

Python 3 | Config-driven via config.ini | replicable across multiple client instances

CRM Target

HubSpot CRM | Companies · Contacts · Deals | HubSpot REST API v1

Scripts

getDataFromSAP.py | getDataForDealsMapping.py | pushCompaniesInMySQLCron.py | pushDealsMappingInMySQLCron.py | updateCompanyRFMvalues.py

CRON Schedule

Companies: 1 AM daily | Deals: 3 AM daily | RFM update: 5 AM daily

Source Control

GitHub — BACPARTNERS/CDT-SAP-HS-INTEGRATION

Testing

Postman (HubSpot API validation) | SQL queries | Manual HubSpot UI verification

Challenges

HubSpot Item Code Property Limit

HubSpot multi-select properties support a maximum of 5,000 options. The SAP dataset contained 5,577 item codes, causing API failures. Resolved by removing item code field mapping from scope by agreement — no impact on core integration value.

Data Quality — Emails, Blank Names, Domain Validation

39 contacts had missing or malformed email addresses; several companies had no CardName; SAP’s IntrntSite field contained email addresses that HubSpot rejected as invalid domains. Resolved with three targeted code rules: skip email field if invalid, fall back to CardCode for blank names, and exclude Company Domain Name from mapping by client agreement.

Duplicate Contact Handling

Multiple companies shared the same email address (e.g. two dental practices using the same reception inbox). HubSpot’s API returns an error on duplicate email creation. Resolved by catching the error in code and proceeding — the contact is associated with the first-created record, and the duplicate is not re-created.

RFM Calculation Accuracy

Initial RFM values were incorrect due to missing Price × Qty multiplication in the SQL query. Resolved by correcting the query and increasing decimal precision to 9 places, aligning output exactly with BAC Partners’ validation figures.

Compressed Six-Week Timeline

All four phases were delivered within six weeks with 2–3 day feedback cycles, iterative code commits to GitHub, and proactive scope-change estimates before any out-of-scope work began.

Key Benefits


Post-Go-Live Support

Hypercare Period

A dedicated one-week hypercare period was provided following the full-dataset go-live. All Phase D test scenarios (15 test cases) were completed successfully with a pass status. The CRON schedule was fine-tuned, all identified issues were resolved, and complete installation and configuration documentation was handed over to BAC Partners.

About Client

DEEPIQ simplifies industrial analytics and offers the only self-service application for end-to-end (Data + AI) OPs for the industrial world. With this app, your SMEs can digitize their expertise, and your data teams can build and deploy robust analytic pipelines.

Project Background

DeepIQ required a proof-of-concept integration layer to extract Vendor master data and Work Order information from their SAP system and expose it to external applications. The goal was to evaluate viable integration patterns — SOAP, REST, BAPI/RFC — and deliver a working, reusable service layer that could be extended to production. 

The project was executed by Peritos Solutions under a phased delivery model, beginning with an assessment and requirement-gathering sprint before moving into build and testing phases. 

Scope & Requirements

In Scope

Out of Scope

Project Timelines

Phase  Duration  Key Deliverables  Status 
Assessment  < 2 wks  Requirement gathering, SAP system access, Risk & Gap Analysis, Customised Assessment Report  Done 
Phase B  2–3 wks  Custom BAPI design, ABAP OOP coding, WSDL web service exposure, SOAP UI unit testing  Done 
Phase C  2–3 wks  REST-based SICF service (z_ven_wrk_ords), JSON output, Postman testing, 1-week support  Done 
Hypercare  1 wk  Post-go-live support, bug fixing, documentation handover  Done 

Results & Impact

Observability & Visibility

Assessment Report

A comprehensive assessment was completed in under two weeks. This included: 

Cloud Formation

Integration — Delivered in < 2 Weeks per Phase

Each integration phase was scoped, built, and tested in a rapid sprint cadence: 

Key Outcome Metrics

✔  Observability & Visibility 

Full assessment report delivered with risk & gap analysis within 2 weeks. 

☁  Cloud-Ready Integration 

REST & SOAP web services exposed from SAP — ready for cloud consumption. 

⚡  Rapid Time-to-Value 

Custom BAPI developed & tested end-to-end in under 8 weeks. 

Implementation

Architecture Overview

Below is a high level Architecture Diagram overview


Technology & Architecture

SAP Core  SAP R/3 · S/4HANA  |  ABAP OOP  |  BAPI / RFC 
Integration  SOAP Web Services (WSDL)  |  REST / HTTP (SICF)  |  JSON 
Tooling  SOAP UI  |  Postman  |  Informatica ETL 
Data Scope  Vendor Master  |  Customer Master  |  Work Orders 
Auth  HTTP Basic Auth  |  Service User credentials 
Output Format  JSON (serialised via /ui2/cl_json)  |  XML / WSDL 


Challenges

Authentication Configuration

SAP’s web service authentication settings required careful tuning. Multiple configurations were tested before identifying the correct combination of HTTP handler and service user credentials that allowed external SOAP calls to succeed. 

Date Filter Logic

Initial work-order retrieval returned data outside the requested date range. The ABAP selection logic was corrected to enforce strict date boundary matching (GSTRP GE i_start AND GSTRP LE i_end), and output dates were reformatted to DD/MM/YYYY. 

Vendor Number Formatting

Vendor numbers required CONVERSION_EXIT_ALPHA_OUTPUT normalisation to strip leading zeros and match expected formats in the consuming application. 

Compressed Timeline

All three phases were delivered in parallel with the client’s internal scheduling constraints, requiring iterative development with 2–3 day feedback cycles and daily stand-ups. 

Key Benefits

Post-Go-Live Support

Hypercare Period

A dedicated one-week hypercare period was included post-delivery. During this period DeepIQ resolved all outstanding defects, provided guidance on SAP navigation, and completed final documentation. All six functional test scenarios and both raised bugs were closed with a Pass status before handover. 

Application screenshots are included below as placeholders — replace with actual Postman / SOAP UI test captures. 

SAP integaration with Hubspot 2

SAP integaration with Hubspot 2

This case study explores the features & challenges of migrating from Azure Dataverse to Azure blob Storage under Microsoft Dynamics Support.

Implementation

About Client

Since 2015 BAC has been instrumental in evolving and simplifying the customer experiences of forward-thinking organizations across Asia Pacific, Europe, North America, the UK, and Ireland. BAC helps organizations unify their people, processes, and technologies to deliver industry-leading customer and employee experiences. BAC enables you to leverage technology to align your sales, marketing, and success teams, so you can make the most of every interaction, even as you grow. We supported the client with SAP Integration with Hubspot.

Project Background

This case study has details about how we designed and developed the integration of SAP with
HubSpot system. In this case study, we list the APIs we used and how we enabled initial and
delta load, including the configuration we did in HubSpot. Overall, a new DB instance needs to be created (DB-2) that will take data from DB-1 (based on some pre-defined business rules) and feed selective data into the HubSpot CRM instance.

This new database must be created from the client’s existing SAP Central Management System (CMS) instance. The new database needs to comply with the existing pre-defined entity-relationship model. The initial data dump will happen from the CMS to the new database (as shown below). 

Also required is syncing batch routines to sync to the said database with SAP post-dump. Finally, this new database needs to be integrated into HubSpot. To list down the objectives:

  • Ability to send initial and delta load in the Hubspot system
  • Send Contacts, Organizations, and deals data to Hubspot

Scope & Requirement

  • SAP Integration with Hubspot APIS
  • Integrate solution design to match the requirement 
  • Make it configurable to run for multiple clients on Hubspot
  • Integrate it via a scheduler to run as a Batch Job can be done via Logic Apps, Cron Jobs etc.
  • Get the data synced to Hubspot daily for contacts, Companies and Deals

Implementation

Technology and Architecture

Technology

Security & Compliance:

Backup and Recovery

Network Architecture

  • Site to Site VPN Architecture using Transit Gateway
  • Distributed Azure Network Firewall
  • Monitoring with Cloud Watch and VPC flow logs. 

Cost Optimization

  • Alerts and notifications are configured in the Azure cost 

Code Management, Deployment

  • Cloudformation scripts for creating stacksets and scripts for generating Azure services was handed over to the client

Challenges

Project Completion

Duration

Deliverables

Support

  • We helped Customer to get the systems integrated using which they could do better lead management based on analytics in HubSpot 
  • The integration ran without any issues after Go live and we provided support of 2 weeks
  • Same code based was used by the client to integrate multiple other similar customers they had

Testimonial

Feedback image
building Manager Bacpartners

Next Phase

If You Are Looking For Similar Services? Please Get In Touch

Testimonial

Edward Yarashev
Product Manager | Tonkin + Taylor

Peritos is a team of highly skilled developers, technical experts, and delivery managers. We’ve been very impressed with their commitment. Their developers and delivery managers have conducted themselves with professionalism and diligence at all times, and the quality of the work they have performed has been excellent. Many times, they proposed better solutions, which resulted in better and faster products. Peritos is a reliable AWS Partner. You can trust and be satisfied.


(For services and support)
Richard Canny
Ultimation industries | President

“We are very happy with the results of this major IT project with Peritos Solutions. Their staff gained a good knowledge of our business and processes. They were able to work with many of our diverse team members and launch Business Central ERP on time and on budget according to our requirements. We will be using them again for future projects and additional development actions. Thank you!”


(For services and support)
Grant Peterson
Software Development Manager | Insight Software

The project was completed on time and as per the agreed budget. The communication was excellent, as was the dedication to quickly turning around the required report development. The overall experience was good, and I would definitely work with the Peritos Team again.


(For services and support)

Proud projects that
make us stand
out

Azure Cloud Consulting Services Recent Home

Azure Cloud Consulting Services

Automate mundane HR tasks from pre-boarding to post-retirement with our award-winning HRMS suite, driven by…

Cloud Consulting Services Recent Home

Cloud Consulting Services

Unlock agility, scalability, and innovation by modernizing your legacy systems through our tailored cloud solutions.…

Download our Checklist on Selecting Azure/ AWS vs Other Hosting providers Recent Home

Downloads

Download our Checklist on Selecting Azure/ AWS vs Other Hosting providers

Cloud Hosting The checklist contains the below details on how you could decide between whether…

Border detection and Image processing Recent Home

Open CV - Image processing

Border detection and Image processing

Home Category Open CV – Image processing ID card Border detection and image processing using…

Thinking about a project? Get in touch with us.

Connect with Us Today through the Details Below or Fill
Out the Form for a Prompt Response

Book Free Consultation

Guaranteed response within 8 business hours.





    Trusted by Startups and Fortune 500 companies

    07+ years of experience

    We can handle projects of all complexities.

    100+ satisfied customers

    Startups to Fortune 500, we have worked with all.

    20+ in-house team

    Top 1% industry talent to ensure your digital success.