roblesterjr04 / EloquentSalesForce

A SalesForce Package that works using the Laravel Eloquent Model structure.
MIT License
90 stars 62 forks source link

Authenticating against multiple SalesForce organisations - can it be done? #110

Open blorange2 opened 7 months ago

blorange2 commented 7 months ago

Hello,

I'm in a situation where I'd like to send data from one Salesforce organisation to another after a certain point so I'd like to have a specific model like OtherOrganisationLead and authenticate against another organisation when working with it.

I see in https://github.com/omniphx/forrest/tree/master?tab=readme-ov-file#soap-authentication-flow that if you use SOAP you can login to multiple accounts.

Is there a way to authenticate against different accounts on the fly?

roblesterjr04 commented 2 months ago

Yeah, you should be able to do it by changing the config on the fly per laravel methods.

blorange2 commented 2 months ago

Yeah, you should be able to do it by changing the config on the fly per laravel methods.

How does this work with models and the like? As a different Salesforce org may have different objects.

Esse

blorange2 commented 2 months ago

How would this work with differing models? Essentially I have a point where I want to write an object's data to another object in a different Salesforce account.