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

Join us at the 2025 Microsoft Fabric Community Conference. March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for $400 discount. Register now

Reply
BriefStop
Frequent Visitor

Get list of fields of Salesforce Data Objects

Background

I'm looking to set up a SOQL query in data factory to Select Fields(All) From ADataObject Where LastModifiedDate > ADateISpecify. Unfortunately my user isn't able to do a Select Fields(All) so I have to manually write in all the fields of a SF data object to get what I need.

 

What I Want To Do

I'm thinking that I can query the column names from a data object first and then include it as dynamic content in the SOQL query. Has anyone done this before? What is the best practice to get the column names and then plug it into a copy data activity?

1 ACCEPTED SOLUTION
v-nuoc-msft
Community Support
Community Support

Hi @BriefStop 

 

Thank you very much lbendlin for your prompt reply.

 

You can try the following:

 

Create a data pipeline, add a web activity to call the Salesforce API, and get the field names.

 

Create a SOQL query using the extracted fields and you can execute the query in the replication activity.

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
v-nuoc-msft
Community Support
Community Support

Hi @BriefStop 

 

Thank you very much lbendlin for your prompt reply.

 

You can try the following:

 

Create a data pipeline, add a web activity to call the Salesforce API, and get the field names.

 

Create a SOQL query using the extracted fields and you can execute the query in the replication activity.

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

lbendlin
Super User
Super User

You may have to specify the API level. FIELDS(All) only works at 51+

Is it possible to set this in Fabric? In Data Factory I only see a little text box to write SOQL queries

I know it is possible to set the API version in Power Query.  I have no expertise in Data Factory and don't know which API version they use there.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebFBC_Carousel

Fabric Monthly Update - February 2025

Check out the February 2025 Fabric update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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