[Salesforce Connector] How to connect to Salesforce from Outsystems using Salesforce Connector from forge
Question
Forge component by Vera Tiago

Hi guys,

I am trying to do this from my personal environment and Salesforce developer account.

I have created a "Connected App" in Salesforce with my developer account and I used the Salesforce connector - Salesforce login action by passing the username, password with securitytoken appended and server url as my salesforce account url. I am unable to connect with these things kindly help me in this, and let me know how to construct a "Server URL" parameter in SalesforceLogin action.


Thanks,

Venkatesh S

mvp_badge
MVP
Solution

Ok  I tried it out myself and was able to get it working.

I don't believe you need to provide a server URL, I didn't.

However what I first did was create an account via: https://www.salesforce.com/

But got an error that for API is not available for that account.

Then I created a developer account via https://developer.salesforce.com/

I created  connected app called SalesforceConnectorDemo so I could get the demo working.

Make sure you login with the username you get in the mail with the new token.


Hi Daniel,

Thanks for your support, I am able to login now. The server url gave it as empty.

mvp_badge
MVP

Hi Venkatesh,

What would help someone to try to help you is what problem you face, do you get an error message? Did you check Service Center for the error details?

Maybe you can share what you did so far?

Regards,

Daniel

Hi Daniel,

Thanks for your reply. I will share the details,

I am getting this below error,

"System.InvalidOperationException: Client found response content type of 'text/html; charset=UTF-8', but expected 'text/xml'.
The request failed with the error message:
--"

when i use the "SalesForce_Login" action with the server url as my "Salesforce account Url". This above error is happening.

So far I have done,

1. In Salesforce, Created Connected App with OAuth authentication enabled and got my security token.

2. In Outsystems, called this "Salesforce_Login" action in a button with the Outsystems username, password + securitytoken and server url as below, 

3. Username and password are same in both the environments Outsystems and Salesforce.


Kindly help me.

mvp_badge
MVP
Solution

Ok  I tried it out myself and was able to get it working.

I don't believe you need to provide a server URL, I didn't.

However what I first did was create an account via: https://www.salesforce.com/

But got an error that for API is not available for that account.

Then I created a developer account via https://developer.salesforce.com/

I created  connected app called SalesforceConnectorDemo so I could get the demo working.

Make sure you login with the username you get in the mail with the new token.


Hi Daniel,

Thanks for your support, I am able to login now. The server url gave it as empty.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.