SOLVED

Re: Power BI Connectivity with Smart Lists

Go to solution
MuhammadFaisal
Level 1

Power BI Connectivity with Smart Lists

Hi All,

I am trying to connect Power BI with Marketo using REST API. I have SMART Lists inside Marketo which needs to be pulled into Power BI. I was able to pull the Smart Lists using BULK Import API but that requires you to create a job, enqueue it and then wait for its completion to pull the data. This process is not working properly with Power BI. I am looking for Direct Querying with Power BI and want to refresh Power BI report with a schedule refresher.

I am now trying to import Marketo Activities and Leads data into Power BI using Power Query by calling REST API endpoints (not bulk import) and then trying to create Smart List filters using DAX measures. I was able to successfully import Activities data but not having any luck with Leads data. 
Please see the below screenshot of one of my smart list filters. I need to create the exact same filters inside Power BI but not sure how to get the 'email address' and 'date of activity'. 
I really appreciate any help in this regard.

smart list filters.png

1 ACCEPTED SOLUTION

Accepted Solutions
Katja_Keesom
Level 10 - Community Advisor + Adobe Champion

Re: Power BI Connectivity with Smart Lists

From the bulk activity API you can pull activities with type 2 which is Fill out Form. The primary attribute listed in that activity is Webform ID, which is a numerical value, corresponding with the form ID you will see in the url when you go to the form in the UI. It is recommended to always include the form id in the form name to improve visibility.

And indeed, as Jo says, things like this are pretty well documented on the Developer pages.

View solution in original post

7 REPLIES 7
Jo_Pitts1
Level 10 - Community Advisor

Re: Power BI Connectivity with Smart Lists

@MuhammadFaisal ,

your query is a bit confusing, so some commentary from me followed by some answers:

Commentary

  • Power BI is a reporting tool... not a data integration or warehousing tool.
  • I'd use something designed to do such integrations (it could be hand rolled, or one of the integration tools out there), get the data into a database, and use Power BI from there.
  • Remember, Smart Lists are point in time, so you need to be careful about how you are using them from a reporting standpoint.  

Some Answers

  • Email is held against the lead
  • Date of activity is (not surprisingly) held against the activities.  

you'll need to extract both leads and activities into your reporting database, and then build reports from there.

 

Cheers

Jo

 

SanfordWhiteman
Level 10 - Community Moderator

Re: Power BI Connectivity with Smart Lists


I was able to pull the Smart Lists using BULK Import API but that requires you to create a job, enqueue it and then wait for its completion to pull the data. This process is not working properly with Power BI. I am looking for Direct Querying with Power BI and want to refresh Power BI report with a schedule refresher.

You don’t want that. You only think you do. 🙂

 

Direct querying (using the paginated REST API endpoints) is not sustainable. Between hard API limits, real-world performance, and user expectations such setups always fail.

 

The Bulk Extract API endpoints are the only realistic way to get data out of Marketo into a data warehouse. Like Jo says, invest time in building the queue mechanism to handle the 4-part process (create, enqueue, poll status, download) and import into a db. Then query that db.

MuhammadFaisal1
Level 1

Re: Power BI Connectivity with Smart Lists

@Jo_Pitts1 & @SanfordWhiteman

 

Thank you for your responses. I have now started implementing the bulk extract API and so far able to bring Leads and Activities to my SQL database. I am not trying to create the same smartlist (screenshot I posted on my Question) by using SQL and I am now stuck at 'Form Name' filter. Any idea how can I get 'Form Name' filter/field using Bulk Extract API and join it with Leads or Activities to complete my SmartList?

 

Thank you

Katja_Keesom
Level 10 - Community Advisor + Adobe Champion

Re: Power BI Connectivity with Smart Lists

Information on a form fill would always be in the activity data. Fills out form is activity type 2 and as far as I recall you will get the form id in the extracts, but I am unsure about the form name.

MuhammadFaisal1
Level 1

Re: Power BI Connectivity with Smart Lists

@Katja_Keesom I could not get the formid from Bulk Leads and Bulk Activity extracts API. Is there any other endpoint to extract formid and join it with leads or activities?

Jo_Pitts1
Level 10 - Community Advisor

Re: Power BI Connectivity with Smart Lists

@MuhammadFaisal1 ,

https://developers.marketo.com/rest-api/assets/forms/

It might pay for you to review all the available API endpoints

 

 

Katja_Keesom
Level 10 - Community Advisor + Adobe Champion

Re: Power BI Connectivity with Smart Lists

From the bulk activity API you can pull activities with type 2 which is Fill out Form. The primary attribute listed in that activity is Webform ID, which is a numerical value, corresponding with the form ID you will see in the url when you go to the form in the UI. It is recommended to always include the form id in the form name to improve visibility.

And indeed, as Jo says, things like this are pretty well documented on the Developer pages.