Salesforce Integration
Sync your Salesforce CRM contacts and accounts with Propstreet automatically.
Overview
| Feature | Support |
|---|---|
| Market | Global |
| Sync Direction | Bidirectional |
| Real-time Updates | Yes (customer-managed sync) |
| Contacts | ✅ Full support |
| Companies | ✅ Full support |
| Projects | ✅ Full support (v1.2.0) |
| Prospects | ✅ Full support (v1.2.0) |
| Properties | ⚠️ API available (v1.3.0) |
Data Mapping
Contact Fields
| Salesforce | Propstreet | Notes |
|---|---|---|
| FirstName | First Name | |
| LastName | Last Name | |
| Primary email synced | ||
| MobilePhone / Phone | Phone | Mobile preferred |
| Title | Job Title | jobTitle on the company link |
| AccountId | Connection | Primary company (connections) |
| Propstreet_Contact_Id__c | ID | External ID field (create this) |
| Custom: Investor Strategy | Strategy | Investment focus (custom field) |
Note: Salesforce supports multiple phone fields. We recommend syncing MobilePhone to Propstreet's phone field; if mobile is empty, use the main Phone.
Account Fields (Company)
| Salesforce | Propstreet | Notes |
|---|---|---|
| Name | Name | |
| Website | Homepage URL | Full URL synced |
| — | Domain | Set directly or auto-extracted from URL |
| BillingCountry | Country Code | Map to ISO 2-letter code |
| Propstreet_Company_Id__c | ID | External ID field (create this) |
| Custom: Organization Number | External Reference | For Nordic deduplication |
How Sync Works
Salesforce → Propstreet
You control the sync through your own integration layer:
- Configure Salesforce Change Data Capture (CDC) or Platform Events to send changes to your middleware
- Your middleware transforms and pushes data to Propstreet via our API
- Records are matched by external reference and created or updated in Propstreet: look a record up with
GET /api/v1/network/contacts/external/salesforce/{id}(or.../companies/external/salesforce/{id}), or send contacts throughPOST /api/v1/network/contacts:batchUpsertwith"namespace": "salesforce"and"match": "email"to fall back to the email address. An address three or more of your contacts hold (a switchboard, aninfo@) identifies none of them: the contact is created and they are listed asweakinpossibleDuplicates. When one or two contacts hold the address, the oldest is updated and the other is listed
Salesforce CDC provides near real-time change notifications for create, update, delete, and undelete events.
Propstreet → Salesforce
When you update a contact in Propstreet, you have two options:
Option A: Webhooks (Recommended)
- Register a Propstreet webhook for
contact.created,contact.updated,contact.deleted,company.created,company.updatedandcompany.deleted(andlink.created,link.updated,link.deletedif you sync company affiliations); each event is listed by name - Propstreet pushes a notification to your endpoint in real time. The payload names the event,
resource_idandchanged_fields, not the record itself - Your middleware reads the record (e.g.
GET /api/v1/network/contacts/{id}), transforms it and pushes it to Salesforce using External ID upsert
Option B: Polling
- Your integration layer polls the Propstreet API for changes (using
updated_since, withinclude_deleted=trueto see deletions) - Changes are transformed and pushed to Salesforce via their REST API
- Your Salesforce records stay in sync
Propstreet recommends polling every 5–15 minutes for delta sync.
Duplicate Handling
Salesforce's External ID upsert is the most reliable way to prevent duplicates:
-
Create External ID fields in Salesforce:
Propstreet_Contact_Id__c(Text, External ID, Unique)Propstreet_Company_Id__c(Text, External ID, Unique)
-
Store Salesforce IDs in Propstreet's
externalRefs:{ "externalRefs": [{ "namespace": "salesforce", "id": "003xx000001234ABC" }] } -
Use Salesforce upsert by External ID:
PATCH /services/data/v62.0/sobjects/Contact/Propstreet_Contact_Id__c/{propstreetId}
This approach ensures deterministic matching without relying on name or email alone.
Propstreet never refuses a contact or company for looking like an existing one: it is written, and the answer lists look-alikes in possibleDuplicates, strongest first (tier: identity, strong or weak; reasons[] with what matched). The list comes back on POST .../contacts, POST .../companies, the contact upsert and each contacts:batchUpsert result, and is absent when nothing looks alike. Nothing is merged, so route identity and strong matches to review. allowDuplicate has no effect here.
Field Considerations
External ID Strategy
Store cross-system IDs to enable reliable bidirectional sync:
In Salesforce:
- Create
Propstreet_Contact_Id__cas External ID (unique) on Contact - Create
Propstreet_Company_Id__cas External ID (unique) on Account
In Propstreet:
- Use
externalRefswith namespace"salesforce"containing the Salesforce record ID
Multi-Company Relationships
Commercial real estate investors often have multiple company affiliations (fund manager, board member, personal investments). Propstreet models this as Links with their own API endpoints.
For Salesforce, you have two options:
Option A: Primary Company Only (Simpler)
- Use the standard
Contact.AccountIdfor the primary company - Accept that secondary affiliations won't sync
Option B: Full Relationship Fidelity (Recommended)
- Create a custom junction object like
Investor_Affiliation__c:Contact__c(Lookup to Contact)Account__c(Lookup to Account)Job_Title__c(Text)Is_Primary__c(Checkbox)Propstreet_Link_Id__c(External ID)
- Sync Propstreet Links (
/api/v1/network/links:contactId,companyId,jobTitle) to this object - A link carries no primary flag: the primary affiliation is the contact's
primaryCompanyId(set withprimary: truein the contact'sconnections)
Notes vs Strategy
Propstreet has two different fields for text information:
- Strategy — Investment focus (e.g., "Office properties, €10–50M, Nordics")
- Notes — Activity log entries (call notes, meeting summaries)
Create a custom Salesforce field for Investor_Strategy__c to separate investment criteria from general notes and activity history.
Phone Numbers
Salesforce has separate fields for Phone, MobilePhone, HomePhone, etc. We recommend:
- Sync MobilePhone to Propstreet's phone field
- A number that is not valid is still stored as sent by an upsert or
contacts:batchUpsert, which list it inwarnings({ "code": "invalid_phone", "value": "..." }). Log these for cleanup.POST /api/v1/network/contactsrefuses such a number with400 - If MobilePhone is empty, fall back to Phone
- Other phone fields remain in Salesforce only, or send them as typed entries in
phones(mobile,work,home,other) through the contact upsert (PATCH .../contacts/external/{namespace}/{id}orcontacts:batchUpsert)
Organization Number (Nordic)
Salesforce doesn't have a built-in organization number field. For Nordic markets, create a custom field on Account to store:
- Norway: Organisasjonsnummer
- Sweden: Organisationsnummer
- Denmark: CVR-nummer
- Finland: Y-tunnus
Use this with Propstreet's externalRefs for accurate company matching.
Conflict Resolution
For bidirectional sync, design your integration to handle conflicts. Recommended approaches:
Field Ownership Matrix:
- Identity fields (name, email, phone): Salesforce wins
- Network enrichment (tags, strategy): Propstreet wins
- Relationship data (primary company): Propstreet wins
- Compliance/consent flags: Salesforce wins
Loop Prevention:
- Check the
change_initiatorfield in Propstreet webhooks to skip events your integration triggered - Filter Salesforce CDC events made by your integration user
Propstreet supports ETags for optimistic concurrency—use If-Match headers to prevent lost updates.
Setup Requirements
To build a Salesforce integration, you'll need:
- Salesforce Account — Professional or higher recommended; Enterprise+ for Change Data Capture
- Connected App — Configure OAuth 2.0 for server-to-server authentication (JWT bearer flow recommended)
- Propstreet API Credentials — Bot User + Client Credentials for production
- Integration Layer — Middleware to handle events and API calls (MuleSoft, Azure Logic Apps, n8n, or custom)
- Custom Fields — Create External ID fields and any additional fields (organization number, investor strategy)
Change Data Capture Note
Salesforce CDC requires Enterprise Edition or higher. Without CDC, you can integrate using:
- Scheduled polling of Salesforce REST API
- Apex triggers with outbound messages
- Platform Events (with custom implementation)
Getting Started
- Generate Propstreet API credentials in your account settings (requires login)
- Create a Connected App in Salesforce Setup and configure OAuth
- Create External ID custom fields on Contact and Account
- Review the Propstreet API documentation for endpoints and data models
- Set up your integration layer to sync data between Salesforce and Propstreet
- If using real-time sync, configure Salesforce CDC and/or Propstreet webhooks
- Test with a small dataset before full rollout
You're responsible for building and maintaining the integration.
Frequently Asked Questions
Which Salesforce editions support the integration?
The integration works with all Salesforce editions. However:
- Change Data Capture requires Enterprise Edition or higher
- API limits vary by edition—higher tiers have more generous limits
How does Salesforce rate limiting work?
Salesforce uses concurrent and daily API call limits based on your edition and number of user licenses. For high-volume sync:
- Use Composite API to batch up to 25 operations per call
- Use sObject Collections to upsert up to 200 records per call
- Use Bulk API 2.0 for initial loads (async, handles millions of records)
How often does data sync?
Sync frequency depends on how you configure your integration layer:
- Real-time: Use Salesforce CDC + Propstreet webhooks for immediate syncs
- Scheduled: Poll Propstreet API every 5–15 minutes (using
updated_since) - Manual: Trigger syncs on-demand
What happens to data if I stop syncing?
Your data remains in both systems. No data is deleted. Use External ID fields and externalRefs to maintain record linkage if you resume syncing later.
Can I choose which contacts to sync?
Yes. Your integration layer controls which records to sync. Common filtering approaches:
- Salesforce record types or custom fields
- Reports or SOQL queries (e.g., only sync contacts with certain tags)
- Account-based filtering (sync contacts linked to specific accounts)
How should I handle merge conflicts?
Design your integration layer to handle conflicts:
- Last write wins: Compare
updatedUtc(Propstreet) andLastModifiedDate(Salesforce) - Source of truth: Designate one system as authoritative for specific fields
- Manual review: Flag conflicts for human review
Propstreet supports ETags for optimistic concurrency—use If-Match headers to prevent lost updates.
How do I handle Salesforce Person Accounts?
If your org uses Person Accounts:
- Person Accounts map to Propstreet Contacts
- Business Accounts map to Propstreet Companies
- The mapping is conceptually similar, but field names differ slightly (e.g.,
PersonEmailvsEmail)
Projects & Prospects (v1.2.0)
Sync real estate deals between Salesforce Opportunities and Propstreet Projects. Track the buyers on each deal through your pipeline, with their people, your interest judgement and how far each buyer has come.
Opportunity to Project Mapping
| Salesforce Opportunity | Propstreet Project | Notes |
|---|---|---|
| Id | externalRefs | namespace: "salesforce" |
| Name | name | Direct mapping |
| StageName | — | See stage mapping below |
| (custom) Is_Portfolio__c | asset.type | portfolio when checked, else single |
| (custom) Property_Count__c | asset.propertyCount | Only with asset.type: "portfolio" |
| CreatedDate | createdUtc | Read-only in Propstreet |
| LastModifiedDate | updatedUtc | For delta sync |
Note: Project
status(open,closed,deleted) is the project's lifecycle and is never written directly: it becomesclosedwhen you close the project (POST /api/v1/projects/{id}/close) anddeletedwhen you delete it. Marketing progress is reported byteaser.stage. Use the mapping below when syncing FROM Propstreet TO Salesforce.
Buyers: OpportunityContactRole to Prospect Mapping
A Propstreet prospect is one buyer on a project — a company, or a person with no company — and carries the buyer's people in contacts ({ contactId, isMain, addedUtc }); contactId is the main contact and companyId the buyer company. An OpportunityContactRole (OCR) is one person on a deal, so the OCRs of one Opportunity whose contacts share an Account are the people of one prospect:
| Salesforce | Propstreet Prospect | Notes |
|---|---|---|
| OpportunityId | the project (path {projectId}) |
Via the Opportunity's Propstreet_Project_Id__c |
The OCR contact's AccountId |
companyId, externalRefs | One prospect per Account per project; store the Account Id as the prospect's salesforce ref (the Contact Id for a contact with no Account) |
| ContactId (each OCR) | contacts[].contactId | Via the Contact's external ref lookup; add with POST .../prospects/{id}/contacts |
| IsPrimary | main contact (contactId, isMain) |
Salesforce allows one primary OCR per Opportunity: make that person the main contact of their prospect with POST .../prospects/{id}/contact-person |
| (custom) Buyer status picklist | interest, stage | See buyer status mapping below |
| — | buyerGroupId | Read-only: prospects sharing it are one buyer on the project, so count buyers by distinct values |
| — | status | active, declined, closed, removed, deleted (see the Projects & Prospects guide) |
A prospect holds one external ref per namespace, and a prospect ref must be unique within a project but can be reused on other projects, so the Account Id is a natural ref: it never changes when people are added or removed, and GET /api/v1/projects/{projectId}/prospects/external/salesforce/{accountId} finds the buyer's prospect.
Adding a person whose company already has a prospect on the project does not create a second prospect. POST /api/v1/projects/{projectId}/prospects answers 201 with outcome: "created" for a new buyer, and 200 with outcome: "added_to_existing_prospect" when the person joined the buyer's existing prospect; both return the prospect, so store its id on the OCR either way. A 201 can carry possibleDuplicates: buyers on the project, or removed from it, that this one looks like. Each entry names its prospectId, with prospectRemoved: true when you removed that prospect. A 200 lists instead the people of the joined prospect the contact looks like. The add is made either way: on a 201, merge or group the buyers in Propstreet, remove the new prospect, or restore the removed one. A batch add (POST .../prospects:batch with { "items": [...] }, at most 100) lists such items under attached. created and attached items carry possibleDuplicates the same way, with inRequest: true for an earlier item of the batch. An item naming the same contact or company as an earlier item fails as duplicate. When matching Salesforce records to prospects, compare against every contacts[].contactId and the companyId, not only contactId.
To take a person off a deal, DELETE .../prospects/{id}/contacts/{contactId}. A prospect keeps at least one person (409 last_contact); when the last OCR of an Account goes, remove the buyer with POST .../prospects/{id}/remove (history kept, status: "removed") instead. Adding a removed buyer again answers 409 prospect_removed unless the add sends "restoreRemoved": true.
Stage Mapping
Propstreet uses three separate fields for project state. All three are read-only over the API, so map them to Salesforce opportunity stages when syncing FROM Propstreet; the one state change you drive from Salesforce is closing the project:
| Salesforce Stage (suggested) | status |
classification |
teaser.stage |
Notes |
|---|---|---|---|---|
| Prospecting / Qualification | open | draft | — | Project setup |
| Needs Analysis | open | active | published | Teaser submitted to Propstreet for review |
| Proposal/Quote / Negotiation | open | active | communicated | Teaser sent to investors |
| Closed Won | closed | — | — | Closed as a sale (POST .../close with the buyer) |
| Closed Lost | closed | — | — | Closed without a sale (POST .../close with "buyerType": "none") |
status: Lifecycle state (open,closed,deleted) — read-only; set by closing or deleting the projectclassification: Work stage (draft,active,inactive) — read-only over the API, set in Propstreet. A new project startsactiveteaser.stage: Teaser progress (property_added,drafting,published,verified,communicated) — read-only, set by system
A deleted project (status: "deleted") can also be read as Closed Lost; it can be restored within 30 days.
Buyer Status to Interest and Stage Mapping
OCR Role (Decision Maker, Evaluator, Influencer…) describes a person's part in the decision, not how far the buyer has come, so do not map it. Track the buyer's engagement in a custom picklist (for example Propstreet_Buyer_Status__c on OpportunityContactRole, kept the same on every OCR of the Account) and map it to the prospect's two axes:
interest— your judgement:interested,maybe,not_interested, ornull(none). Set it withPATCH; sendnullto clear it.stage— how far the buyer has come:not_contacted→teaser→im→data_room→bid. Propstreet derives it from what has happened and never lowers it; when reality differs from the log, correct it withPATCHstageand an optionalstageReason.
| Buyer status (custom) | Propstreet | Notes |
|---|---|---|
| Not contacted | stage not_contacted |
Default; nothing to write |
| Contacted | stage teaser |
Usually derived once the teaser is sent or outreach is logged |
| Interested | interest interested |
|
| Maybe | interest maybe |
|
| Declined | interest not_interested |
|
| Bidder | stage bid + interest interested |
Stage correction, e.g. "stageReason": "Bid received by email" |
curl -X PATCH "https://app.propstreet.com/api/v1/projects/123/prospects/456" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "If-Match: \"AAAAAAAAK0Q=\"" \
-d '{"interest": "interested", "stage": "bid", "stageReason": "Bid received by email"}'
Note: The prospect's
classificationfield is deprecated. Read and writeinterestandstageinstead. (The projectclassificationabove is a different field and is not deprecated.)
A buyer that declines after you established contact reads status: "closed" with investorDeclinedUtc set; map it to Declined. A buyer that declines before contact is not listed, and the prospect.created it sent is followed by a prospect.deleted.
External ID Fields
Create these custom fields in Salesforce for reliable bidirectional sync:
On Opportunity:
Propstreet_Project_Id__c(Text, External ID, Unique)
On OpportunityContactRole:
Propstreet_Prospect_Id__c(Text, External ID, not unique — every person of one buyer carries the same prospect id)
Sync Architecture
Salesforce → Propstreet (using CDC):
- Enable Change Data Capture for Opportunity and OpportunityContactRole
- Subscribe to
/data/OpportunityChangeEvent(and/data/OpportunityContactRoleChangeEvent) in your middleware - Transform and push to the Propstreet Projects and Prospects APIs
- Store Propstreet IDs in custom External ID fields
// Handle Salesforce CDC event
async function handleOpportunityChange(event) {
const { changeType, recordIds } = event.ChangeEventHeader;
const sfOppId = recordIds[0];
if (changeType === "CREATE") {
const project = await propstreet.post(
"/api/v1/projects",
{
name: event.Name,
externalRefs: [{ namespace: "salesforce", id: sfOppId }],
},
// Derived from the Opportunity, so a redelivered CDC event replays the first answer
{
headers: {
"Idempotency-Key": `create-project-salesforce-opportunity-${sfOppId}`,
},
}
);
// Update Salesforce with Propstreet ID
await salesforce.update("Opportunity", sfOppId, {
Propstreet_Project_Id__c: project.id,
});
}
}
// A person was added to a deal: add them to their buyer's prospect
async function handleContactRoleCreated(ocr) {
const projectId = ocr.Opportunity.Propstreet_Project_Id__c;
const contact = await propstreet.get(
`/api/v1/network/contacts/external/salesforce/${ocr.ContactId}`
);
const buyerRef = ocr.Contact.AccountId ?? ocr.ContactId;
// 201 "created" for a new buyer, 200 "added_to_existing_prospect"
// when the person's company already has a prospect on the project
const prospect = await propstreet.post(
`/api/v1/projects/${projectId}/prospects`,
{
contactId: contact.id,
externalRefs: [{ namespace: "salesforce", id: buyerRef }],
},
{ headers: { "Idempotency-Key": `add-prospect-salesforce-ocr-${ocr.Id}` } }
);
if (ocr.IsPrimary) {
await propstreet.post(
`/api/v1/projects/${projectId}/prospects/${prospect.id}/contact-person`,
{ contactId: contact.id }
);
}
await salesforce.update("OpportunityContactRole", ocr.Id, {
Propstreet_Prospect_Id__c: prospect.id,
});
}
Propstreet → Salesforce (using Webhooks):
- Register webhooks for the project and prospect events you need, each by name (
project.created,project.updated,project.deleted,project.restored,prospect.created,prospect.updated,prospect.deleted) - Skip events your own integration caused (
change_initiator.client_id) - Read the record by
resource_id(a prospect atGET /api/v1/projects/{project_id}/prospects/{resource_id}; prospect events carryproject_id) — the payload names what changed, not the record — and find the Salesforce ID in itsexternalRefs(on delete events, in the payload'sexternal_refs) - Upsert to Salesforce by External ID
// Handle Propstreet webhook
async function handlePropstreetWebhook(payload) {
// Loop prevention: ignore changes made by this integration
if (
payload.change_initiator?.client_id === process.env.PROPSTREET_CLIENT_ID
) {
return;
}
if (payload.resource_type !== "prospect") return;
const prospectId = String(payload.resource_id);
if (payload.event === "prospect.deleted") {
if (payload.merged_into) {
// Merged into another prospect: re-point the OCRs to the survivor
await salesforce.updateWhere(
"OpportunityContactRole",
{ Propstreet_Prospect_Id__c: prospectId },
{ Propstreet_Prospect_Id__c: String(payload.merged_into) }
);
} else {
await salesforce.deleteWhere("OpportunityContactRole", {
Propstreet_Prospect_Id__c: prospectId,
});
}
return;
}
// Thin payload: read the prospect (prospect events carry project_id)
const projectId = String(payload.project_id);
const prospect = await propstreet.get(
`/api/v1/projects/${projectId}/prospects/${prospectId}`
);
// People: one OCR per entry in prospect.contacts. Leave IsPrimary alone:
// it is one per Opportunity, while every buyer has its own main contact (isMain)
await syncContactRoles(projectId, prospect.contacts);
// Engagement: interest and stage are not named in changed_fields,
// so always map them from the prospect you just read
await salesforce.updateWhere(
"OpportunityContactRole",
{ Propstreet_Prospect_Id__c: prospectId },
{
Propstreet_Buyer_Status__c: mapToBuyerStatus(prospect), // interest, stage, status
}
);
}
Prospect changed_fields names contacts, contact_id, company_id, status, external_refs, project_tags, owner, created_at and deleted_at. Interest and stage changes are not named there: pick them up by reading the prospect, and run a delta sync (GET /api/v1/projects/{id}/prospects?updated_since=...) as a safety net.
Webhook Events
Subscribe to these Propstreet events for deal sync:
| Event | Description | Salesforce Action |
|---|---|---|
| project.created | New project created | Create Opportunity |
| project.updated | Project fields modified, or the project was closed (there is no separate close event) | Read the project; update Opportunity (status: "closed" → Closed Won / Lost) |
| project.deleted | Project deleted (payload carries external_refs) |
Close as Lost |
| project.restored | Deleted project restored | Reopen the Opportunity |
| prospect.created | Buyer added to the project, or an investor accepted your teaser | Create an OCR per person in contacts |
| prospect.updated | People, main contact, status (removed, restored, closed) or refs changed; interest or stage changed | Read the prospect; sync OCRs and buyer status |
| prospect.deleted | Prospect deleted, merged into another (merged_into), or withdrawn by the investor before contact |
Delete the OCRs, or re-point them to merged_into |
See the Webhooks guide for every payload field.
Example: Create Project with Salesforce Reference
curl -X POST "https://app.propstreet.com/api/v1/projects" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "Stockholm Office Portfolio",
"asset": { "type": "portfolio", "propertyCount": 5 },
"externalRefs": [{ "namespace": "salesforce", "id": "0064V00000abc123" }]
}'
Example: Lookup Project by Salesforce ID
curl "https://app.propstreet.com/api/v1/projects/external/salesforce/0064V00000abc123" \
-H "Authorization: Bearer $TOKEN"
Example: Lookup a Buyer's Prospect by Salesforce Account ID
curl "https://app.propstreet.com/api/v1/projects/123/prospects/external/salesforce/0014V00000xyz789" \
-H "Authorization: Bearer $TOKEN"
API References
- Propstreet Contacts API
- Propstreet Companies API
- Propstreet Projects & Prospects Guide
- Propstreet Webhooks Guide
- Salesforce REST API
- Salesforce Contact sObject
- Salesforce Account sObject
- Salesforce Opportunity sObject
- Salesforce OpportunityContactRole sObject
- Salesforce Change Data Capture
- Salesforce External ID Upsert