• karthik karthik
  • NEWBIE
  • 50 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 22
    Questions
  • 10
    Replies
Hi Everyone,

I am doing bulk insert using visualforce page. I want to store Success logs and Error Logs like two excel files in a custom object. Can anyone provide sample code. Please it's urgent...

Thanks in advance.
Hi Everyone,

I have created a custom data loader using visualforce page. How to check the duplicate records only for in between the csv file records, i don't want to compare the new records to sfdc database for duplicates.
Ex: Suppose i'm uploading the csv file with 100 records, i want to check duplicates for "Account Name", "MVL_Name__c", Billing address fields in between 100 records only, If i found any duplicate records i need to enable a checkbox field.

Can anyone help on this scenario.
Thanks in advance.
Hi,

How to build Data loader on Account, Contact & Opportunity Using visualforce page. In this scenario i need to insert data on 3 objetcs (Accout, Contact & Opportunity) at a time. Can anyone help me on this it's urgent....

Thanks in advance.
Hi,

I want to return two diffenrent datatypes from custom wsdl, for that I have created a Wrapper class inside the custom wsdl and return two different datatypes. Below is my code.

Global class GetOpportunityId
{
 Global class Response{    
        Global String Message;
        Global Boolean Status;
   }  
  WebService static Response getOppFromVC(Opportunity OppParam,Account AccParam)
    {
    Response Res = New Response();   
    -------
    my Apex code here            
    ---------
    --------
    Res.Message = 'Upated Successfully';
    Res.status = True;
    return Res;
     }    
}


My wsdl:

<xsd:complexType name="Response">
<xsd:sequence/>
</xsd:complexType>

In the above XML the attributes like Message and Status are missing. How to get those attributes. Please it's some urgent.

Thanks in advance.
Hi Everyone,

I would like to know can we return Multiple datatypes from single method in apex, Can anyone please help me .

Thanks.
Hi All,

Using "Opportunity Id" how to fetch Account, Opportunity & Contact fields.

Thanks in advance.

Hi All,

Using "Opportunity Id" how to fetch Account, Opportunity & Contact fields.

Thanks in advance.

Hi All,

​Using SOQl I have fetched 4 fields all the fields are Text datatypes, if any fields have null value i want to replace null value with empty string and return all 4 fields. Please i need urgent help can anyone send some sample code. 

Thanks in advance.
Hi All,

Using SOQl I have fetched 4 fields all the fields are Text datatypes, if any fields have null value i want to replace null value with empty string and return all 4 fields . How to achieve this. please can anyone send some sample code.
Thanks in advance.
Hi,

I have created a custom web service in salesforce using the custom wsdl i returned opportunity fields. In some opportunity fields have null values, how to send null value fields from salesforce.
For testing purpose i used this custom wsdl in SopaUI tool i couldn't able to see null value fileds in soap repsonse. How to display null value fileds also in soap response from salesforce.

Please its some urgent can anyone help me.
Thanks in advance.
Hi,

  Can we use the 2-way SSL Mutual authentication as the only authentication needed for the API so that we don’t have to login with UserId and Password?

Thanks in advance.
Hi,

I am trying to encrypt and decrypt the data, I got error while decrypt the data. Please find the code below.

Encrypt Code: 

             Blob cryptoKey = Crypto.generateAesKey(256);
             Blob data = Blob.valueOf(opps.id);
             Blob encryptedData = Crypto.encryptWithManagedIV('AES256', cryptoKey , data );
             String b64Data = EncodingUtil.base64Encode(encryptedData);
             opps.EncryptedKey__c = b64Data ;  

Decrypt Code :

            Blob cryptoKey = Crypto.generateAesKey(256);
            Blob data = EncodingUtil.base64Decode(opps.EncryptedKey__c);
            Blob decryptedData = Crypto.decryptWithManagedIV('AES256', cryptoKey , data);
            String dryptData = decryptedData.toString();
            opps.Unecrypt__c = dryptData; 

The above encrypt code is working fine, the decrypt code is not working i got the below error. Please i need urgent help.

Error :
FATAL_ERROR|System.SecurityException: Given final block not properly padded

Thanks in advance.
 
Hi,

I enabled Mutual authentication in salesforce and also i added certificate in salesforce, for testing purpose i tested my certificate from soapui tool while i testing i got the following error. Its urgent please help me......

Error:  <html><head><title>Certificate Error</title></head><body bgcolor=#ffffff text=#3198d8><center><img src="http://www.sfdcstatic.com/common/assets/img/logo-company.png"><p><h3>Client certificate error:<i>unable to verify the first certificate</i></h3></center></body></html>
 
Hi Everyone,

I have some questions related to salesforce API's. Could you please help me Guys...

SLA: 

1) API Response time: what is the average SOAP API response time (interval between request sent and response received)? How is the average calculated? Are there windows of variability (for example: 5:00 AM – 12:00 AM CT: 2-second response time. 12:01-4:59 AM CT: 5-second response time, etc.) 

2) API Throughput: what is SOAP API through put (number of requests that can be successfully served SFDC per unit time. E.g. number of requests served per second, or the maximum number of concurrent requests allowed, etc.) Are there windows of variability (for example: 5:00– 12:00 AM CT: 1000 requests/second. 12:01-4:59am CT: 500 requests/second, etc.) 

3) API Availability/Uptime (e.g. 99.999%, 99.99%, 99.96%, etc.) 

4) Scheduled outage windows 

Other Non-functional integration topics: 
5) Disaster Recovery (DR) approach: is DR transparent to the API client or are there separate SFDC DR endpoints to which the API client needs to connect during SFDC DR situation? 


Thanks In advance
Hi 

1) i generated selfsigned certificate from salesforce , i want to test "partner wsdl" by using salesforce certificate for authentication (Two way SSL).

2) How to do 2 way SSL using apex.

It's urgent.... please help guys.
Thanks in advance.............
 
Hi Everyone,

How to Integrate Salesforce with TFS using Rest Api.
I want to send data from salesforce to TFS using Rest Api. I know using outbound message but i need Rest.
Please help me it's urgent.

Thank you.
Hi,
Why outbound message shows error like "Soap response was a nack".
Actuallly am used outbound wsdl file in .net i didn't get any notifications from salesforce it simply shows that error in salesforce.
pls help me guys it's urgent. 

Thank you.

 
I've Two objects Case(Parent) & CaseDetail(child) am used lookup relationship here, my requirement is in case object relatedlist i've CaseDetail custom button if click on that button i want to clone some fields values from parent record and same values to display in child object record.
once i clone parent field values is it possible to change those field values in future.
Example: I've "state" picklist field in both objects, in parent record "state" field picklist value is "new" if i click on custom button i'll get same picklist value in child record also after  some other time i need to change that picklist value from "new" to "closed" in child record.

Is the whole scenario is possible my thougt is using visualforce is possible.
can anyone pls send some source code .
Thanks in Advance.
Hi,

i want to convert string to date format, when i try to solve this i got the following error " System.TypeException: Invalid date/time: 9/25/2014 7:21:49 PM"

my code is like below

           DateTime dt = DateTime.valueof('9/25/2014 7:21:49 PM');      
           string strdate = dt.format('mm/dd/yyyy');         
           tf.Resolve_Schedule_date__c = date.valueof(strdate);

if anyone know pls me.........
Thanks in Advance.
         
why salesforce Api's like Enterprise,Partner etc not working well after salesforce updates to winter15 .pls if anyone know rpy me ..............
Hi Everyone,

I would like to know can we return Multiple datatypes from single method in apex, Can anyone please help me .

Thanks.
Hi Everyone,

How to Integrate Salesforce with TFS using Rest Api.
I want to send data from salesforce to TFS using Rest Api. I know using outbound message but i need Rest.
Please help me it's urgent.

Thank you.
Hi,

How to build Data loader on Account, Contact & Opportunity Using visualforce page. In this scenario i need to insert data on 3 objetcs (Accout, Contact & Opportunity) at a time. Can anyone help me on this it's urgent....

Thanks in advance.
Hi,

I want to return two diffenrent datatypes from custom wsdl, for that I have created a Wrapper class inside the custom wsdl and return two different datatypes. Below is my code.

Global class GetOpportunityId
{
 Global class Response{    
        Global String Message;
        Global Boolean Status;
   }  
  WebService static Response getOppFromVC(Opportunity OppParam,Account AccParam)
    {
    Response Res = New Response();   
    -------
    my Apex code here            
    ---------
    --------
    Res.Message = 'Upated Successfully';
    Res.status = True;
    return Res;
     }    
}


My wsdl:

<xsd:complexType name="Response">
<xsd:sequence/>
</xsd:complexType>

In the above XML the attributes like Message and Status are missing. How to get those attributes. Please it's some urgent.

Thanks in advance.
Hi Everyone,

I would like to know can we return Multiple datatypes from single method in apex, Can anyone please help me .

Thanks.
Hi All,

Using "Opportunity Id" how to fetch Account, Opportunity & Contact fields.

Thanks in advance.
Hi All,

​Using SOQl I have fetched 4 fields all the fields are Text datatypes, if any fields have null value i want to replace null value with empty string and return all 4 fields. Please i need urgent help can anyone send some sample code. 

Thanks in advance.
Hi,

I have created a custom web service in salesforce using the custom wsdl i returned opportunity fields. In some opportunity fields have null values, how to send null value fields from salesforce.
For testing purpose i used this custom wsdl in SopaUI tool i couldn't able to see null value fileds in soap repsonse. How to display null value fileds also in soap response from salesforce.

Please its some urgent can anyone help me.
Thanks in advance.
Hi,

I enabled Mutual authentication in salesforce and also i added certificate in salesforce, for testing purpose i tested my certificate from soapui tool while i testing i got the following error. Its urgent please help me......

Error:  <html><head><title>Certificate Error</title></head><body bgcolor=#ffffff text=#3198d8><center><img src="http://www.sfdcstatic.com/common/assets/img/logo-company.png"><p><h3>Client certificate error:<i>unable to verify the first certificate</i></h3></center></body></html>
 
Hi,

With Winter 15 upgrade in our sandbox we are unable to consume the soap wsdl for one of our custom web services. The WSDL is downloaded and has reference to some additional namespaces "ns1" and "ns2". When I try to import this wsdl in .net or SOAPUI, it errors out "WSDL cannot be imported". 

Any pointers?