• Mhlangano Khumalo 7
  • NEWBIE
  • 10 Points
  • Member since 2015
  • Salesforce Developer
  • Deloitte Digital

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 3
    Replies
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:
User-added image
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 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 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'.
User-added image
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?
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.
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.

User-added image
I increased code coverage in the sandbox from 31%  to 77% but I still get the low coverage error. Below is Production screenshot.

User-added image

What can I do to work around this issue?

 
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?
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.
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

User-added image

and here is the new maintenance request that has been automatically created

User-added image

Please help me :-). I want to have my superbadge :-)