• SFDC coder
  • NEWBIE
  • 270 Points
  • Member since 2013
  • Capgemini

  • Chatter
    Feed
  • 1
    Best Answers
  • 10
    Likes Received
  • 1
    Likes Given
  • 85
    Questions
  • 146
    Replies
Hi Everyone,

I'm passing a salesforce record that includes date fields to a Lightning compnent's helper class.  The page renders a Lightning datatable and displays the results as expected.  However, the page loads and runs very slow.  Looking at the console logs i can see a huge count of warnings, which i believe is the culprit.  The message that pops up for these logs is as follows:

"<lightning-formatted-date-time> The value attribute accepts either a Date object, a timestamp, or a valid ISO8601 formatted string with timezone offset. but we are getting the object value "Invalid Date" instead."

The Helper class defines the columns and teh formatting as:
{label: 'Ordered Date',     fieldName: 'Ordered_Date__c',           type: 'date', typeAttributes:{year: 'numeric', month:'numeric',day:'numeric'} }
The component utilises the datatable and renders the data correctly but very slow.  Here is the use of the datatable:
<lightning:datatable aura:id="datatable" data="{! v.data }" columns="{! v.columns }" >
The v.data receives the List<Object> from apex and the v.columns is defined in the helper.js class.

I'm guessing it's some issue with how JS and Apex communicate dates but i'm very new to JS so cannot figure out what the issue could be.  Very sorry if teh question is not detailed abundantly.  If someone can give some guidance it would be great, as i really want to rid this error.  It takes too long to load the page with anything more than a a hundred records.

Thanks
Aamir
I have a use case where in i need to develop a reusable lightning component but with dynamic fields to display
For eg: the lookup component should display A,B,C fields in one part and
X,Y,Z fields on another part in the same application
how can i achieve this using one component only?

Any help would be appreciated
 
We are currently trying to consume a soap web service exposed on a CastIron.
This WebService has a security certificate which does not allow us to communicate.
The certificate is signed by Symantec.
When there is no certificate active for the endpoint we consume, it works with no problem.

But when the certificate is active, while there is no problem calling the service from SOAPUI, when calling from SF we are receiving the following error message:
11:24:30.0 (325656624)|EXCEPTION_THROWN|[23]|System.CalloutException: IO Exception: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 11:24:30.0 (537301785)|FATAL_ERROR|System.CalloutException: IO Exception: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.

We are wondering if there is any extra configuration required we are missing. So far we have:
1. Add the remote site configuration where the endpoint is.
2. We use the correct endpoint URL, pointing to the https and 443 port.

We have done nothing about the certificate on SF side.
We do not understand if there is any configuation required concerning the intermediate certificate.
It is not clear to us if there is any further configuration required.

Please let me know what is missing or any documentation which explains very well what is required.
This is the documentation we have been using so far:
https://krishhari.wordpress.com/2012/02/06/making-authenticated-web-service-callouts-from-salesforce-to-ibm-cast-iron-using-sslcertificatespart-ii/
https://krishhari.wordpress.com/2012/02/06/making-authenticated-web-service-callouts-from-salesforce-to-ibm-cast-iron-using-sslcertificatespart-ii/

 
Dear all, Need your help urgently on below issue.
I have an object " Quotation" and we need to send quotation emaail template to Thai and English customers. The need is the picklist values like gender, marital status etc should be in Thai when the email goes to thai customer. It can be detected by the field " Preferred language" with values as " TH" or " EN". From " Translation Workbench" i can change the english picklist values to Thai.
But now the issue is , the users should always see the values in english while inputting. and in our database ( report etc), its always show english, as we need a consistent value ( e.g Male only not the Thai version of Male) its only when the quotation template goes to the customer it will change either to Thai or EN as per their preferred language. So, the Thai version picklist need to get stored somwhere in teh bckend.
If anybody can suggest how can i achieve this ? Thanks
Hi all,
I know we can access Custom Labels in Apex and VF.
But, Can we Update the value of a Custom Label through Apex Controller?


If So, How?

With Thanks.
Hi all,

I have requirement where I have to open a contact record after invoking the rest api but before returning the response.

My rest api class is:-
@RestResource(urlMapping='/Account/*')
global with sharing class RESTAgentController {

 @HttpPost
    global static String doPost(String customerId,String cus_context,String ContactNo) 
    {
        String customer_Id= customerId;
        String context= cus_context;
        String cus_ContactNo= ContactNo;       
        String agent_num='434343434';
        return agent_num;
    }    
}

The vf and the controller for opening the contact record are:-

Visualforce Page:-
<apex:page Controller="autoContactController" action="{!redirect}" > </apex:page>

Apex controller:-

public with sharing class autoContactController{
    
    public PageReference redirect() { 
        String phone = ApexPages.currentPage().getParameters().get('phone');
        String contactId = '0032800000ZW42T';
        PageReference pr = new PageReference('https://ap2.salesforce.com/console#%2F'+contactId);
        return pr; 
    }
}

Can anyone please help??????
Hello Experts ,

We have an mobile application that uses salesforce SDK and is connected with salesforce. In a given scenario, mobile applicaiton syncs a child and parent one after the other. This was working fine untill now. They used to sync a parent using a temporary id which they self created and using that self created id they associated the child. However this flow has stopped working now all of a sudden and it gives an error like ParentObj__c: id vlaue of incorect type. 

Can anyone please advise?

Thanks in advance

Hi every one,
I need to create an interface to integrate a serie of Account’ data and Product’s data between Salesforce CRM and one management system.
I would predict 2 bidirectional flow that allow me to align the information from one system to another. For example: I could create a new Account in my management system and replicate a sub set of its data in the Salesforce CRM and viceversa, all in real time.
I think the use of WSs are as indicated.  
Do someone developed such integration? It could give me some useful tip to approach correctly the topic?

Thanks
Daniela
Hello Experts,

We have a integration between salesforce and SAP via SAP PI. The external system is using HTTPS protocol and has asked if any other set up is required to have a secure connection while triggering outbound messages from SAP to salesforce.

This is when certificates come to my mind. We have both inbound as well as outbound integration between the systems.
I would want to know if:
1.While sending outbound messages from salesforce the certificate generated and provided by the external system has to be used in SOAP callouts. Correct?
2.When the external system sends outbound messages from SAP to salesforce, we need to generate and provide them CA signed certificate,which they will sign and send back to us. We then upload it in salesforce and the external system uses it while sending outbound messages from SAP to salesforce? Is my assumption correct?
3. Also i wish to know the difference between self signed and CA signed certificates and why should we not use self signed instead of CA signed?

Any help is appreciated

Regards,
SFDC coder
hello All,

I need to display a lookup field in VF page on salesforce 1. I have used apex:inputfield tag for the same however it refers to the old salesforce styling and i am looking out for  Salesforce1 lookup design.

Can anyone please suggest?

I had a look at the link below but couldn't understand how to take it forward and implement in VF page

Any help would be appreciated
 
Hello All,

I have a custom button of type Detail Page Button 
Content Source is : URL
Code :/apex/EventOrderLink_SF1?id={!Event.Id}

The VF page EventOrderLink_SF1 is also marked as Available for Salesforce mobile apps and Lightning Pages.
Also  i have added this to the event layout section named Salesforce1 and Lightning Experience Actions.

Still when i log into the salesforce 1 i cannot see the button on the layout. Any suggestions?

Thanks in advance..
 
Hi all,

I have six queries and i would want to retrieve the data by merging those queries into a single one . How can this be done?

retrieveUserProfile  -> SELECT Mobile_Configuration_Profile__r.Name, Mobile_Configuration_Profile__r.API_Access__c FROM UserToMobileLink__c WHERE User__c = 'userId’
 
retrieveCurrentUserDetails -> select  Languages__c, User_Sales_Org__c from User where Id = ‘userId’
 
retrieveLocaleObject -> Select Name, Translated_Text__c from Translations__c where Language__c = 'userLocale'
 
retrieveUserProfileSpecification -> select Id, Name, Tab__c ,Create__c, Delete__c,Update__c, SOQL_Data_Filter__c from Mobile_Configuration_Item__c where Mobile_Configuration_Profile__r.Name = 'profileName’ ORDER BY Id.
 
Hello All,

There are no classes and triggers on the production org and am moving the apex code for the first time. The deployment is constantly failing even if the code coverage is 79% in the sandbox. The reason is shown as code coverage in production is 66 %

I checked my classes and i haven't mentioned see all dtaa tru anywhere in the test class
Can anyone please help me solve this issue?
hi all,

While my SAP colleage was trying to do a SOAP call from XI Server,an error pops up as below:

'com.sap.aii.af.ra.ms.api.RecoverableException: unable to create a socket: java.io.IOException: unable to create a socket'. Cause Exception: 'unable to create a socket

can anyone please help me out on this?
is there a need to open up any firewall?if yes then how?

Please assist ASAP