Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Salesforce Object requiring an ID


Please can somebody help.

I am attempting to connect to a specific Salesforce object named ContentDocumentLink


However this requires single or multiple id's to be passed so I get the error:




I can create the list of ID's but don't know how to get the mquery to look at them and pass to the Salesforce object


Any help would be appreciated. Thanks


Frequent Visitor

Is anyone able to provide a more detailed answer to this? I am having the same problem but don't know M that well. I need to bring a table into Power BI that let's me associate an SFDC SNOTE to it's parent object.


Thank you!

Super User
Super User

@Richard_Halsall , try to append this after in

"(" & Text.Combine([List Parameter], ",") & ")"




"('" & Text.Combine([List Parameter], "','") & "')"

Power BI Features || Datamarts: || Field Parameters :
Time Intelligence Decoded : || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Hi thanks, so I changed the syntax as suggested to this


Source = Salesforce.Data("", [ApiVersion=48]),
ContentDocumentLink = Source{[Name="ContentDocumentLink"]}[Data]
"('" & Text.Combine([SFOpportunityID], "','") & "')"


and am now getting this error




Hi, @Richard_Halsall 


You need to add the parameter to the correct position and not the end.  & means to combine strings.


Best Regards,
Community Support Team _ Janey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Can you explain what you mean by this.
Instead of:
Source = Salesforce.Data("", [ApiVersion=48]),
ContentDocumentLink = Source{[Name="ContentDocumentLink"]}[Data]
"('" & Text.Combine([SFOpportunityID], "','") & "')"

what should the Advanced Editor look like?

Helpful resources

Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Solution Authors