Closed (works as designed)
Project:
Salesforce Suite
Version:
8.x-3.x-dev
Component:
salesforce.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2019 at 19:18 UTC
Updated:
28 Oct 2019 at 14:12 UTC
Jump to comment: Most recent
Comments
Comment #2
aaronbaumanYes, please use \Drupal\salesforce\Rest\RestClient::query or \Drupal\salesforce\Rest\RestClient::queryAll
Comment #3
drupalnuts commentedDo you have an example in code where I see how this is used?
Comment #4
acrosmanTo run a query your code would look not totally unlike:
More details: https://spinningcode.org/2019/10/salesforce-queries-and-proxies-in-drupa...
You might also want to look at the sample sub module for ideas of other things you can do with the suite.
Comment #5
richard moger commentedVery helpful snippet. thanks :-)
Small note for others, you must include an Id field in your fields array else your query will be returned successfully from sf but records will not get created by the salesforce module as they will be deemed invalid.