cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
djw1005
Helper I
Helper I

Select Query for object from salesforce

I want to select a particular account based on the account id from an opportunity.

 

I see there is a select query option, but not sure what I should be putting in there?

 

 
3 REPLIES 3
ChristianAbata
Community Champion
Community Champion

hi @djw1005  maeby you need to use a query salesforce line

SELECT Id, Name, Industry, AnnualRevenue,
    ( SELECT Name, Email, BirthDate FROM Contacts )
    FROM Account

please see this reference.

https://www.sfdc99.com/2013/06/24/example-how-to-write-a-cross-object-soql-query-part-2/



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

I tried the Select AccountID from Account received this error

 

{
"status": 400,
"message": "Term 'Select AccountID From Accounts' is not valid in a $select or $expand expression.\r\n inner exception: Term 'Select AccountID From Accounts' is not valid in a $select or $expand expression.\r\nclientRequestId: bd6d5d9c-9e61-4cb9-9504-24646f51e656",
"error": {
"message": "Term 'Select AccountID From Accounts' is not valid in a $select or $expand expression.\r\n inner exception: Term 'Select AccountID From Accounts' is not valid in a $select or $expand expression."
},
"source": "salesforce-we.azconn-we.p.azurewebsites.net"
}
jurajt
New Member

having the same problem. found a solution yet, please?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (4,107)