- Mhlangano Khumalo 7
- NEWBIE
- 10 Points
- Member since 2015
- Salesforce Developer
- Deloitte Digital
-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
5Questions
-
3Replies
System.CalloutException: IO Exception: java.security.cert.CertificateException: No subject alternative names present
I've created an Apex class that makes a callout to an external SOAP-based web service. The web service provider has whitelisted Salesforce IP ranges and I'm getting an error. "System.CalloutException: IO Exception: java.security.cert.CertificateException: No subject alternative names present"
I think it has to do with the certificate because looking at the debug logs, certificate info like clientCertName_x in not populated when the call is made.(see yellow highlights in the image below).
My teammate says it's because the endpoint URL (which points to dev environment) is an IP address & not a fully qualified URL with a publicly signed certificate securing it.
Debug logs:
Please advice on what the issue is and list the steps to resolve it.
I found this solution and I think perhaps it's what I need also.
Please advice.
I think it has to do with the certificate because looking at the debug logs, certificate info like clientCertName_x in not populated when the call is made.(see yellow highlights in the image below).
My teammate says it's because the endpoint URL (which points to dev environment) is an IP address & not a fully qualified URL with a publicly signed certificate securing it.
Debug logs:
Please advice on what the issue is and list the steps to resolve it.
I found this solution and I think perhaps it's what I need also.
Please advice.
- Mhlangano Khumalo 7
- September 26, 2017
- Like
- 0
- Continue reading or reply
How to control chatter feed posts visibility on a record in SF
I have customers, partners & employee users, each with their own profile. All 3 of them update the same chatter feed on a record. I want customers to only see what employees post, employees to see what both partners & employees post and for partners to only see what employees post.
How can I achieve this requirement?
How can I achieve this requirement?
- Mhlangano Khumalo 7
- August 17, 2017
- Like
- 0
- Continue reading or reply
How to cover logic for enforcing FLS in test class for lightning controller.
How to test code for enforcing FLS.
I have a test class that only has 75% coverage. I need to test for when the user does not have Read access to Client_Strategy__c custom field in FLS and I also need to Cover 'Catch'.
Test Class:
I have a test class that only has 75% coverage. I need to test for when the user does not have Read access to Client_Strategy__c custom field in FLS and I also need to Cover 'Catch'.
Test Class:
@isTest public class CI_ClientOverviewControllerTest { @testSetup static void setupTestData() { List<Account> client = new List<Account>(); client.add(new Account(Name= 'Google Inc',Client_Strategy__c = 'Strategy for the client')); insert client; } public static testMethod void PositiveTest(){ setupTestData(); List<Account> client = [select id from Account where name ='Google Inc']; CI_ClientOverviewController.getBankStrategy(client[0].id); } }Any Ideas?
- Mhlangano Khumalo 7
- May 18, 2017
- Like
- 0
- Continue reading or reply
How to build a custom login page to authenticate a Lightning app
We've built a hybrid mobile app that uses a webview which loads up a lighting application.
When the user loads the app for the first time, it redirects to Salesforce standard login page (login.salesforce.com).
We want to create our own totally custom login page, which would allow us to bypass the standard salesforce login, and authenticate the user navigating to the Lightning application
Does anyone know how we can implement the above? I welcome all your suggestions & Ideas.
When the user loads the app for the first time, it redirects to Salesforce standard login page (login.salesforce.com).
We want to create our own totally custom login page, which would allow us to bypass the standard salesforce login, and authenticate the user navigating to the Lightning application
Does anyone know how we can implement the above? I welcome all your suggestions & Ideas.
- Mhlangano Khumalo 7
- May 05, 2017
- Like
- 0
- Continue reading or reply
Unable to deploy to production. Overall code coverage 32% in production & 77% in the sandbox. Help!
Our company org was a Trial org for 3 months. Throughout that time, a lot of code was done in production as a Trial org doesn't have a Sandbox. Most of the code was developed without test classes. The trial expired, we got a Sandbox & now we can't deploy to production because of low overall test coverage. I wrote test classes in the sandbox and managed to increase coverage to 77%. The problem now is when I deploy them, I get an error about low coverage in production. How can I work around this, as I can't create/edit classes in production.
I increased code coverage in the sandbox from 31% to 77% but I still get the low coverage error. Below is Production screenshot.
What can I do to work around this issue?
I increased code coverage in the sandbox from 31% to 77% but I still get the low coverage error. Below is Production screenshot.
What can I do to work around this issue?
- Mhlangano Khumalo 7
- May 25, 2016
- Like
- 0
- Continue reading or reply
How to control chatter feed posts visibility on a record in SF
I have customers, partners & employee users, each with their own profile. All 3 of them update the same chatter feed on a record. I want customers to only see what employees post, employees to see what both partners & employees post and for partners to only see what employees post.
How can I achieve this requirement?
How can I achieve this requirement?
- Mhlangano Khumalo 7
- August 17, 2017
- Like
- 0
- Continue reading or reply
How to build a custom login page to authenticate a Lightning app
We've built a hybrid mobile app that uses a webview which loads up a lighting application.
When the user loads the app for the first time, it redirects to Salesforce standard login page (login.salesforce.com).
We want to create our own totally custom login page, which would allow us to bypass the standard salesforce login, and authenticate the user navigating to the Lightning application
Does anyone know how we can implement the above? I welcome all your suggestions & Ideas.
When the user loads the app for the first time, it redirects to Salesforce standard login page (login.salesforce.com).
We want to create our own totally custom login page, which would allow us to bypass the standard salesforce login, and authenticate the user navigating to the Lightning application
Does anyone know how we can implement the above? I welcome all your suggestions & Ideas.
- Mhlangano Khumalo 7
- May 05, 2017
- Like
- 0
- Continue reading or reply
Apex Specialist - Automate Maintenance Requests - Challenge 1
ODagneaux99
Hi,
I have this problem on the superbadge - Apex Specialist - challenge 1
Challenge Not yet complete... here's what's wrong:
Inserting a new Maintenance Request of type 'Routine Maintenance' and then closing it did not create of a new Maintenance Request based upon the original record correctly. The challenge is expecting to find the closed Maintenance Request plus an 'New' Maintenance Request of type 'Routine Maintenance' with the same Vehicle as the closed one.
I've checked several times. All seems right. I have a 'New' Maintenance Request of type 'Routine Maintenance' with the same Vehicle as the closed one.
Here is the closed maintenance request
and here is the new maintenance request that has been automatically created
Please help me :-). I want to have my superbadge :-)
Hi,
I have this problem on the superbadge - Apex Specialist - challenge 1
Challenge Not yet complete... here's what's wrong:
Inserting a new Maintenance Request of type 'Routine Maintenance' and then closing it did not create of a new Maintenance Request based upon the original record correctly. The challenge is expecting to find the closed Maintenance Request plus an 'New' Maintenance Request of type 'Routine Maintenance' with the same Vehicle as the closed one.
I've checked several times. All seems right. I have a 'New' Maintenance Request of type 'Routine Maintenance' with the same Vehicle as the closed one.
Here is the closed maintenance request
and here is the new maintenance request that has been automatically created
Please help me :-). I want to have my superbadge :-)
- ODagneaux99
- July 01, 2016
- Like
- 0
- Continue reading or reply