--- title: "Attribution Reporting Data - Salesforce Writeback" slug: "revsure-attribution-reporting-data-salesforce-writeback" updated: 2026-09-29T07:48:26Z published: 2026-09-29T07:50:09Z canonical: "documents.revsure.ai/revsure-attribution-reporting-data-salesforce-writeback" --- > ## Documentation Index > Fetch the complete documentation index at: https://documents.revsure.ai/llms.txt > Use this file to discover all available pages before exploring further. # Attribution Reporting Data - Salesforce Writeback ## Overview RevSure’s Data Platform consolidates all the Activities and Campaign Touch points along with Funnel Stage movements for all the Leads, Opportunities and Accounts in its engagements dataset. Based on all the Campaign Touch points captured in engagements dataset, RevSure also creates an attribution_reporting dataset, which contains the attribution weights for different Attribution Models supported in the Demand Generation Effectiveness module. RevSure supports writing these two datasets to Salesforce as custom objects to enable creation of attribution reports within Salesforce as well as to provide visibility into all the engagements associated with other key standard objects. This document outlines the details of this Salesforce integration. --- # Salesforce Objects As part of the RevSure - Salesforce Write Back workflow, RevSure will create the following two custom objects in Salesforce. ## Attribution Reporting - **Object Name:** RevSure Attribution Reporting - **Object API Name:** rs_attribution_reporting__c - **Description:** Object stores the attribution weights for different attribution models calculated by RevSure for each Lead, Opportunity and Account. - **Granularity:** (lead_id,opportunity_id,account_id, campaign_id, revsure_funnel_stage_name, campaign_member_association_type) - **Object Schema:** [RevSure Attribution Data Salesforce Object Schema](https://docs.google.com/spreadsheets/d/1hXYrM0NO6yLhebIe8VvSKXMrGTkRpmDba6UwhAiqtJQ/edit?usp=sharing) ## Engagements - **Object Name:** RevSure Engagements - **Object API Name:** rs_engagements__c - **Description:** Object stores engagement touchpoints and interactions from various Salesforce associated with Leads, Contacts, and Accounts for attribution analysis. - **Granularity:** (source_object_id, engagement, engagement_type) - **Object Schema:** [RevSure Attribution Data Salesforce Object Schema](https://docs.google.com/spreadsheets/d/1hXYrM0NO6yLhebIe8VvSKXMrGTkRpmDba6UwhAiqtJQ/edit?usp=sharing) --- ## Sync Mechanism Both datasets will be refreshed in Salesforce **once a day** as soon as the data ingress completes in RevSure. The following Salesforce Bulk API endpoints are used to push the data into Salesforce. 1. **Create Job:** POST [https://{{instance_url}}/services/data/v59.0/jobs/ingest](https://{{instance_url}}/services/data/v59.0/jobs/ingest) ```plaintext Content: {    "object": "",    "operation": "upsert",    "externalIdFieldName": "" } ``` 2. **Upload Data:** PUT [https://{{instance_url}}/services/data/v59.0/jobs/{jobId}/batches](https://{{instance_url}}/services/data/v59.0/jobs/{jobId}/batches) Content: CSV data with records 3. **Start Job:** PATCH [https://{{instance_url}}/services/data/v59.0/jobs/{jobId}](https://{{instance_url}}/services/data/v59.0/jobs/{jobId}) ```plaintext Content: {"state": "JobComplete"} ``` 4. **Get Results:** GET [https://{{instance_url}}/services/data/v59.0/jobs/{jobId}/batches/result](https://{{instance_url}}/services/data/v59.0/jobs/{jobId}/batches/result) # Object Relationship Diagram ## Attribution Reporting ![Dark-themed object relationship (ER) diagram showing multiple colored tables/boxes labeled revsure_attribution_reporting, lead, contact, opportunity, account, campaign with attribute rows (id, name, email, accountId, amount, stageName, etc.) and curved connector lines between them](https://cdn.document360.io/1ba0d15e-f1ca-43db-aba7-8e6b7d8766f9/Images/Documentation/revsure-attribution-reporting-data---salesforce-writeback_page_0004_img_01.png) --- ## Engagements ![Large dark-background diagram / ERD showing multiple colored database tables and relationships — visible table labels include revsure_engagements, leads, contacts, accounts, campaigns, and activities; connecting relationship lines between tables; overall schematic centered on page](https://cdn.document360.io/1ba0d15e-f1ca-43db-aba7-8e6b7d8766f9/Images/Documentation/revsure-attribution-reporting-data---salesforce-writeback_page_0005_img_01.png) --- # Creating an Attribution Report 1. Select “Attribution Reporting” type of report ![Screenshot of the Create Report dialog showing a left Category pane (All, Accounts & Contacts, Opportunities, etc.) and a right panel with a Select a Report Type search field with att entered and results including Attribution Reporting highlighted](https://cdn.document360.io/1ba0d15e-f1ca-43db-aba7-8e6b7d8766f9/Images/Documentation/revsure-attribution-reporting-data---salesforce-writeback_page_0006_img_01.png) 2. Select grouping column and summary column ![Screenshot of the report builder showing left sidebar Groups and Columns panels with items like campaign_channel and several summary columns; main preview area shaded grey with a table of aggregated metrics](https://cdn.document360.io/1ba0d15e-f1ca-43db-aba7-8e6b7d8766f9/Images/Documentation/revsure-attribution-reporting-data---salesforce-writeback_page_0006_img_02.png) 3. Save and Run the report ![Screenshot of a detailed report table showing campaign_channel, revsure_funnel_stage_name and columns with sums for first_touch, last_touch, linear_shaped, u_shaped, w_shaped, j_shaped and Record Count; multiple rows grouped by channel (Content Marketing, Direct, Email) with subtotals visible](https://cdn.document360.io/1ba0d15e-f1ca-43db-aba7-8e6b7d8766f9/Images/Documentation/revsure-attribution-reporting-data---salesforce-writeback_page_0007_img_01.png) # Adding Engagements to Standard Object Layout The following example is for adding “Engagements” in the Account object Layout. The same process can be followed for Lead, Contact and Opportunity objects. 1. In Setup → Object Manager → Account → **Page Layouts** --- ![Salesforce Setup Object Manager Account page screenshot showing left navigation (Details; Fields & Relationships; Page Layouts; Lightning Record Pages; Buttons, Links, and Actions; Compact Layouts; Field Sets; Object Limits; Record Types) and right panel Page Layouts with 1 Items, Sorted by Page Layout Name and table header PAGE LAYOUT NAME with one entry Account Layout.](https://cdn.document360.io/1ba0d15e-f1ca-43db-aba7-8e6b7d8766f9/Images/Documentation/revsure-attribution-reporting-data---salesforce-writeback_page_0008_img_01.png) 1. In the Related Lists section, the Engagements object will show up automatically. ![Salesforce page layout editor screenshot showing Related Lists area with multiple related list tiles and the Related List Name quick find — wide horizontal screenshot of layout editor toolbar and related lists configuration area.](https://cdn.document360.io/1ba0d15e-f1ca-43db-aba7-8e6b7d8766f9/Images/Documentation/revsure-attribution-reporting-data---salesforce-writeback_page_0008_img_02.png) 1. Scroll down and click on the tool icon of Engagements section to add/remove relevant fields, select relevant fields and save it. ![Engagements related list configuration screenshot showing columns such as Engagements, engagement, engagement_mode, engagement_name, person_name, account_name with sample text rows and the tool icon for configuration.](https://cdn.document360.io/1ba0d15e-f1ca-43db-aba7-8e6b7d8766f9/Images/Documentation/revsure-attribution-reporting-data---salesforce-writeback_page_0008_img_03.png) --- ![Popup dialog screenshot showing the Related List Properties - Engagements modal with Available Fields list on the left, Selected Fields list on the right, Add/Remove buttons between them, and Up/Down controls](https://cdn.document360.io/1ba0d15e-f1ca-43db-aba7-8e6b7d8766f9/Images/Documentation/revsure-attribution-reporting-data---salesforce-writeback_page_0009_img_01.png) 4. Now, you can open any Account record and you would be able to see the linked engagement details. ![Engagement details showing activity and email response for Boston event.](https://cdn.document360.io/1ba0d15e-f1ca-43db-aba7-8e6b7d8766f9/Images/Documentation/Screenshot 2026-08-20 at 10.23.37 AM.png)