I have
multiple apps in my Salesforce account, and all the info
- username
- password
- token
- call_back_url
- consumer_key
- consumer_secret
I just don't know where and how to use it to connect to my app.
I want
to connect to a specific connected app that I just created so I can make a GET to it to grab the info and display on my Laravel App.
I've tried
look into this package, and did everything in there.
One thing that I don't understand is it settings is only ask for - username - password - token
so how do we know which app are we connecting to ?
I've reached out to the developer, but haven't back from him yet. :(
Result
I got pretty close. I got the data to display.
try {
dd(Salesforce::query('SELECT Id, Name, Phone FROM Account'));
echo print_r(Salesforce::describeLayout('Account'));
} catch (Exception $e) {
Log::error($e->getMessage());
die($e->getMessage() . $e->getTraceAsString());
}
QueryResult {#170 ▼
+queryLocator: null
+done: true
+records: array:4 [▼
0 => {#172 ▼
+"Id": "0015000001BZAMEAA5"
+"Name": "Test Associates (for testing)"
}
1 => {#173 ▼
+"Id": "0015000001AMomQAAT"
+"Name": "Acme (Sample)"
+"Phone": "(212) 555-5555"
}
2 => {#174 ▼
+"Id": "0015000001AMomRAAT"
+"Name": "Global Media (Sample)"
+"Phone": "(905) 555-1212"
}
3 => {#175 ▼
+"Id": "0015000001AMomSAAT"
+"Name": "salesforce.com (Sample)"
+"Phone": "(415) 901-7000"
}
]
+size: 4
+pointer: 0
-sf: SforceEnterpriseClient {#167 ▶}
}
I have no idea what data am I looking at right now.
If I want to connect to a specific app, how do I do that ?
Anyhints / suggestions on this will be much appreciated !
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire