SalesforceCodex.com is focused on helping salesforce developers, programmers and other IT professionals improve their careers. We are helping developers in integrating other technologies, coding best practices, lightning web components, architecture, design solutions, etc. Checkout our blogs salesforcecodex.com/ and stories.salesforcecodex.com for developer and architect solutions for any business requirement.
Sir please help me understand-I have defined a ConnectedApp in one org (org 1) with API access enabled, and it seems that I can use the client_id and client_secret of that connected app to obtain an access token to a different organization (org 2) using an user account defined in Org 2. Org 1 and Org 2 does not share the connected app in anyway? Is this behavior correct? I was under the impression that ConnectedApp should only enable access to orgs in which the connected app is installed in. Is that understanding wrong? @salesforceCodex
Sorry for the unexpected appearance, I saw your profile on the forum dealing with the error: System.CalloutException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target I've been trying to deal with this error for several weeks. I'm going to tell you about my situation in case something occurs to you and I will be eternally grateful :) I have an Apex class that wants to make an http POST request: public String ALF_getTicket() { HttpRequest req = new HttpRequest(); req.setClientCertificateName('prealhacenaicex'); String BaseURLAuth = //custom setting req.setEndpoint(BaseURLAuth); req.setMethod('POST'); req.setHeader('Content-Type', 'application/json'); String userId = //custom setting String password = //custom setting Map<String, String> body = new Map<String, String>(); body.put('userId', userId); body.put('password', password); String jsonString = JSON.serialize(body); req.setBody(jsonString); req.setTimeout(120000); // milisegundos Http http = new Http(); HTTPResponse res = http.send(req); // Almacena el ID del ticket en una variable String ALF_ticket; if (res.getStatusCode() == 201) { // Parsea el JSON de la respuesta Map<String, Object> jsonResponse = (Map<String, Object>) JSON.deserializeUntyped(res.getBody()); Map<String, Object> entry = (Map<String, Object>) jsonResponse.get('entry'); ALF_ticket = (String) entry.get('id'); } else { throw new UCMException('Error excepcion:' + req); } // Devuelve el ID del ticket almacenado return ALF_ticket; } When running it from anonymous I get the System.CalloutException error. To deal with it, I obtained the SSL Certificate from the endpoint server which is a CA certificate, signed by GoDaddy, as it did not work I still followed this guide: santiagoibarra.medium.com/install-a-ca-certificate-used-by-your-domain-in-salesforce-69c7e00a4247 Therefore, request the intermediate certificate and the root. Once you have all three, generate a new file called ChainCertificate.cer with this order: 1.SSL 2. Intermediate 3. Root I saved it and updated the CA certificate. It still doesn't work and I can't think of anything anymore. Any advice you can give me is sure to be of great help. All the best.
I have a use case where I have a custom javascript lightning component that needs to make a fetch api request to an apex rest endpoint in the same org. I get an authorization error. I cannot use lwc decorators like wire. it has to be a fetch. How can I authenticate securely without exposing any tokens? :/ please help
I finally started to prepare for the Integration Architect certification and coming back here... (bookmarked a long tima ago)... I see its 34 videos this series..... is this correct? does it still align with the Certification training? Thanks again!
Developer org & sandbox side enabled the API and SALESFORCE to SALESFORCE also enabled but I am getting the same issue again and again. Salesforce to Salesforce: Partner org is not active and no API calls are allowed. The partner org is not active and no api operations are permitted Can I know why???
This is very good session. I am following your all sessions. Keep up the good work. Thanks. Can we create custom REST API in .NET or Java and convert as OpenAPI specification then consume into SF as external service ?
Could you show on how to configure manage connections and Manage Queue part. Also how come connection user is showing on the case records like how the user is configured and mapped to S2S integration
My question is how these changes reach external system? Do we need to send the change info to external system using streaming API from changeEvent trigger?