Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedJoin us at the 2025 Microsoft Fabric Community Conference. March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for $400 discount. Register now
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?
Solved! Go to Solution.
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.
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.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Fabric update to learn about new features.
User | Count |
---|---|
6 | |
4 | |
2 | |
1 | |
1 |
User | Count |
---|---|
13 | |
10 | |
5 | |
5 | |
4 |