+ Start a Discussion
Prabhat Singh 56Prabhat Singh 56 

If we select “Prevent login from https://login.salesforce.com” then inbound services calling out to na14.salesforce.com will also be affected?

Hello Team,

1. How does enabling My Domain affect services that currently call out to login.salesforce.com or na14.salesforce.com?

Ans. It should not have any effect unless you select "Prevent login from https://login.salesforce.com"

2.  We have multiple web services that call into our Salesforce org and I am curious on how enabling my domain would affect these call outs?
Ans. It should not have any effect unless you select "Prevent login from https://login.salesforce.com"
I have confirmed this with REST API. Please try this on sandbox before moving the changes to production.

I have two queshtion, Please suggest me the answer.


1a. Just to confirm. If we select “Prevent login from https://login.salesforce.com” then inbound services calling out to na14.salesforce.com will also be affected?

2a. Is this also correct for SOAP API’s?

 
Best Answer chosen by Prabhat Singh 56
SandhyaSandhya (Salesforce Developers) 
Hi,

Understanding of log-in routes for the APIs if the "Prevent login from https://login.salesforce.com" option is ticked within "My Domain".

This setting affects log-ins via API as well as via the GUI

If using the SOAP API, this will require a WSDL. The WSDL provides the log-in URL (which will be My Domain), so as long as the WSDL is correct, then log-in should be fine.

If using the REST API (this is where I think I'm less certain), the urls have to use the "My Domain" url otherwise they will not work. There is no way to use a generic "login" url/command which then returns the appropriate url to use thereafter for a given session.

From the link below.

https://d2hwpln2xvs3s.cloudfront.net/forums/?id=906F0000000BYSkIAO
 
Please refer below link for more information.

https://help.salesforce.com/articleView?id=domain_name_guidelines.htm&language=en_US&type=0
 
https://help.salesforce.com/articleView?id=faq_domain_name_is_my_domain_available.htm&type=0&language=en_US
 
Hope this helps you!

Please mark it as Best Answer if my reply was helpful. It will make it available for other as the proper solution.
 
Thanks and Regards
Sandhya

 

All Answers

SandhyaSandhya (Salesforce Developers) 
Hi,

Understanding of log-in routes for the APIs if the "Prevent login from https://login.salesforce.com" option is ticked within "My Domain".

This setting affects log-ins via API as well as via the GUI

If using the SOAP API, this will require a WSDL. The WSDL provides the log-in URL (which will be My Domain), so as long as the WSDL is correct, then log-in should be fine.

If using the REST API (this is where I think I'm less certain), the urls have to use the "My Domain" url otherwise they will not work. There is no way to use a generic "login" url/command which then returns the appropriate url to use thereafter for a given session.

From the link below.

https://d2hwpln2xvs3s.cloudfront.net/forums/?id=906F0000000BYSkIAO
 
Please refer below link for more information.

https://help.salesforce.com/articleView?id=domain_name_guidelines.htm&language=en_US&type=0
 
https://help.salesforce.com/articleView?id=faq_domain_name_is_my_domain_available.htm&type=0&language=en_US
 
Hope this helps you!

Please mark it as Best Answer if my reply was helpful. It will make it available for other as the proper solution.
 
Thanks and Regards
Sandhya

 
This was selected as the best answer
Prabhat Singh 56Prabhat Singh 56
Thanks for your reply Sandhya.

If I got any issue or any further query, I will contact you.

Thanks for your support.

Regards,
Prabhat