Adding Relationship tables from Salesforce through Power Query

programsam

Board Regular
Joined
Feb 10, 2016
Messages
123
I don't see a lot from Salesforce/Power Query questions here but I have the following M in Power Query to pull data in from Salesforce custom table 'SR__c'. The table has a nested relationship table named 'RO__r' as placed in bold below.

When I try to expand the relationship table ('RO__r'), it will not expand and I've tried adjusting data load options as researched here and in the Microsoft community. I really only need two columns from 'RO__r', is it possible to modify the M code below to have Power Query open RO__r and bring in those two columns and do so more expeditiously?

Excel Formula:
let
Source = Salesforce.Data("https://xxxxxx.salesforce.xxxxxx.com", [CreateNavigationProperties=true]),
SR__c = Source{[Name="SR__c"]}[Data],
#"Removed Other Columns" = Table.SelectColumns(SR__c,{"Name","CreatedDate","SN__c","Customer__c","Customer_Num__c","Vend__c","MRS__c","MRR__c","MS__c","MR__c","QB__c","IS__c","IPS__c","IS__c","IC__c","CPR__c","PGII__c",**"RO__r"**})
in
#"Removed Other Columns"
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top