Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JPY
Helper II
Helper II

Get data from Web (Salesforce)

Hi all,

I am trying to get the Currency data from salesforce by using connecting the URL, however I only can get the table as shown below.

How would I go about to get the below Currency table in Power BI?

 

Capture8.PNGCapture9.PNG

 

 

Thanks for help!

Joyce

 

4 REPLIES 4
ReportMaster
Helper V
Helper V

Hi @JPY were you able to find a solution? As a workaround, maybe you can try to test your connection with a 3rd party connector. I've tried windsor.ai, supermetrics and funnel.io. I stayed with windsor because it is much cheaper so just to let you know other options. In case you wonder, to make the connection first search for the Salesforce connector in the data sources list:

 

SALESFORCE-1.png

 

After that, just grant access to your Salesforce account using your credentials, then on preview and destination page you will see a preview of your Salesforce fields:

 

ReportMaster_1-1712272177697.png

There just select the fields you need. It is also compatible with custom fields and custom objects, so you'll be able to export them through windsor.  Finally, just select PBI as your data destination and finally just copy and paste the url on PBI --> Get Data --> Web --> Paste the url. 

 

SELECT_DESTINATION_NEW.png

d_gosbell
Super User
Super User

I don't use Salesforce so I don't know if this is a silly question. But Power BI has 2 built-in Salesforce connectors. "Salesforce Objects" and "Salesforce Reports" - couldn't you just try using one of those native connectors?

 

Otherwise you'd have to drill into the html page structure clicking on the "Table" object in the Children column, but this approach is likely to be a lot more fragile that the official connectors as any change to the Salesforce UI could break this.

Hi @d_gosbell,

Thanks for your reply.
I have already tried to connect through the Salesforce report and object, however I cannot get the currency data.
Can you explain the html method in detail?
Thanks!

@JPY So there are at least 3 different ways of attempting to parse web pages.

 

In order of ease of use I would suggest trying the follow:

 

1) In your second screenshot there is a "Web View" tab. You could try clicking on that and seeing if Power Query has identified the currency table. If it has it should have a red square around it which you can click on to select it.

 

2) In the bottom right of you second screenshot there is an "add table using examples" button. If you click on this you can start manually typing in a few example rows from the table on Salesforce and see if Power Query can use these examples to find the table in the html.

 

3) You can manually navigate through the hierarchy of html elements (this is the most difficult as it requires some html knowledge). In your second screenshot you would click on the word "Table" in the "Children" column and this should drill into the html element and most likely show you 2 rows with a "Header" and "Body" element. You would then drill into the children of the body element and keep navigating down until you find a table with the currency data.  Note this option does not always work as sometimes the web page is not structured as a table, but is a collection of nested div elements

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.