Skip to main content
Abhimanyu Singh a posé une question dans #API

When exporting form submissions from Salesforce Account Engagement (Pardot), we can see standard and custom prospect fields, but not the visitor activity data we need.

We’d also like to retrieve the first page visited, exit page, and page visit history before form submission.

Is this possible through the Account Engagement API? If so, which endpoints should we use? Are there any alternative approaches to achieve this without building a custom API solution?

Any guidance or suggestions would be appreciated. Thanks!  

 

#API  #Pardot B2b Marketing Automation

1 réponse
  1. Aujourd’hui, à 20:36

    @Abhimanyu Singh the form export is only the prospect fields. The page path lives on other objects.

    In Account Engagement API v5, a form submission is a visitor activity, not a column on the prospect export. Query GET /api/v5/objects/visitor-activities and filter by that prospect. A completed form is type 4 with typeName Form. Looking at the form without submitting is type 2. You need the Prospect, Visitors, View ability for that call.

    The pages themselves are visitor page views. GET /api/v5/objects/visitor-page-views with the visitId, and read url, title, and createdAt. The visit record has firstVisitorPageViewAt and lastVisitorPageViewAt, so the earliest page view on that visit is your first page and the latest one is the exit page. GET /api/v5/objects/visits tied to the same prospect gives you the visitId that matches the form activity.

    If you need this in bulk, the Export API can pull Visitor Activity and include relationship fields like prospect.email in one file. Visitor page views are their own export, so you still join them on visitId. I haven't seen a form-submission file that already has the page history on it. You'll only get the path as far back as Account Engagement still stores those visits.

0/9000