• SharathChandra
  • NEWBIE
  • 37 Points
  • Member since 2012


  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 76
    Replies

Hi,

 

I just uploaded 3000 more lead records in my salesforce instance. After insersion I find out the duplicate lead records with same phone number.now i want to delete the duplicate records based on phone number and also Industry criteria.

is it possible to do using do while loop in the trigger.if it is  possible means please send me an example code.

Hi I'm facing the SQLException [common.exception.SfdcSqlException: ORA-01013 in my batch, i have used index field and selective filters in my query in batch but i'm not able to resolve the error. Can you please help me.

Thanks in advance.

Hi all,

 

I have a custom button on case, on click of this button i need the progress bar is it possible??

Please give solution as soon as possible.

Hi I'm using Contains Function in Workflow.

 

My Workflow contains rule criteris which will run based on formula evaluated to true. My formula for rule criteria is CONTAINS('SHARATH',Description) .

 

And i'm updating field if the rule criteria evaluates to true.

 

My description contains sentence like "My name is SHARATH" and i want to using CONTAINS for text "SHARATH" it is not working please help asap.

 

If i use contains operator its working properly i.e when i run the rule based criteria are met.

 

I want to why its not working with formula.

 

Thanks!!

 

Hi I'm using Email-to-case feature in my developer org. Will i be able to update a case when i send email to email service address which is obtained after generating Email to case record.

 

Please Reply asap.

 

Thanks!!

 

I enabled Web-To-Case feature in my developer org and again i disabled it but i'm not able to avoid sending email alerts when ever i create the case from any of the web form.

could any one please help me on this

 

 

Thanks in advance

Page:

====

<apex:page standardController="Case">
<script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js'></script>
<apex:form id="fid">
<apex:pageBlock id="pbid">
<apex:pageBlockSection id="pbsid">
<apex:inputField value="{!Case.Product_Family__c}" id="pfid"/>
<apex:inputField value="{!Case.Product__c}" id="pid"/>
Remember Me:<input type="checkbox" value="1" name="rememberId" id="rememberId" />
</apex:pageBlockSection>
<apex:pageBlockButtons >
<!--<apex:commandButton value="Save" action="{!save}" id="btn"/>-->
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
<script>
$(document).ready(function(){
checkCookie();
$("#rememberId").click(function()
{
alert('hi');
var thisCheck = $(this);
if (thisCheck.is(':checked'))
{
alert('checked');
saveUserInfo();
}
});

});
</script>

<script>
function getCookie(c_name)
{
var nameEQ = c_name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0){
var subStr=c.substring(nameEQ.length,c.length);
return unescape(subStr);
}
}
return null;
}

function setCookie(c_name,value,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie=c_name + "=" + c_value;
}

function saveUserInfo(){
if(document.getElementById("rememberId").checked == true) {
//set elements
setCookie("rememberId",1,365);
setCookie("product_family",document.getElementById("{!$Component.fid.pbid.pbsid.pfid}").value,365);
setCookie("product",document.getElementById("{!$Component.fid.pbid.pbsid.pid}").value,365);
}
else
{
//erase cookies
eraseCookie("rememberId");
eraseCookie("product_family");
eraseCookie("product");
}
}
function eraseCookie(name) {
setCookie(name,"",-1);
}

function checkCookie()
{
var remembered = getCookie("rememberId");
if(remembered == 1){
//alert('in check cookie');
//alert(getCookie("product_family"));
$("[id$=pfid]").val(getCookie("product_family"));
//alert(getCookie("product"));
$("[id$=pid]").val(getCookie("product"));
// document.getElementById("{!$Component.fid.pbid.pbsid.pfid}").value = getCookie("product_family");

}
}
</script>
</apex:page>

 

here i'm not able to set value for product field.

Please help asap

 

In a visual force page i need to create mutiple cases with associated attachment with each case is it possible????

Please reply asap.

 

We are using Unlimited edition can anyone say what is the limit for sending Single emails via apex per a day.

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_gov_limits.htm

 

this is saying that Maximum Number of Email Messages Processed i.e inbond emails

 

I want to know the limit for outbond emails.

 

Thanks in advance.

Please help asap

trigger SendEmailAfterCaseCreated on Case (after insert) {
    for(Case c:trigger.new)
    {
    System.debug(trigger.size);
    System.debug(c.Contact.Email);
    System.debug(c.Status);
    
    }

}

 

 

I'm creating a case for contact which is having email address but i'm not able get email address when i debug

can anyone give the reason

Please help me

Hi I want to get the positions based on candidate profile so i prepared an algorith using maps

i have used

Map<String, Map<Integer,Map<String, String>>>

key is like catogery like MBA-Finance, MBA-HR

Integer is Years of Experience

Innermost map is mapping between  Candidate Education qualification and Position functional area.

now my question is if i form a map it will look like below.

 

 

Map<String, Map<Integer, Map<String, String>>> qualification = new Map<String, Map<Integer, Map<String, String>>>();
qualification.put('MBA-Finance', new Map<Integer, Map<String, String>>
                              {0=>new Map<String, String>{'MBA - Finance'=>'Finance'},
                               1=>new Map<String, String>{'MBA - Finance'=>'Finance'}});

qualification.put('MBA-HR', new Map<Integer, Map<String, String>>
                              {0=>new Map<String, String>{'MBA - Human Resources'=>'Human Resources'},
                               1=>new Map<String, String>{'MBA - Human Resources'=>'Human Resources'}});

 

here i'm repeating the inner most map

 

 

Is there any efficent way which i can do this???

<apex:page controller="Display">
<apex:form>
<apex:pageBlock>
<apex:commandLink value="Test" action="{!showText}" reRender="pb1"/>
</apex:pageBlock>

<apex:pageBlock id="pb1" rendered="{!show}">
<apex:outputText >sharath
</apex:outputText>
</apex:pageBlock>

</apex:form>
</apex:page>

-----------

Controller

public class Display {

    public Boolean show { get; set; }

    public PageReference showText() {
    show=true;
        return null;
    }

}

 

i want to rerendered output text  by rerender the page block pb1

help me asap.

<apex:page controller="selectionController" >
<apex:form >
<apex:actionFunction name="rerenderText" reRender="ot" >
<apex:param value="" assignTo="{!selectedValue}" name="param"/>
</apex:actionFunction>
<apex:selectList id="sL"  size="1" onchange="rerenderText(this.value); alert(this.value);">
<apex:selectOption itemLabel="1" itemValue="One"></apex:selectOption>
<apex:selectOption itemLabel="2" itemValue="Two"> </apex:selectOption>
<apex:selectOption itemLabel="3" itemValue="Three"> </apex:selectOption>
</apex:selectList><br/>
<apex:outputText value="Success" rendered="{!selectedValue=='Two'}" id="ot"></apex:outputText>
</apex:form>

</apex:page>

--------------------

class

 

public class selectionController {
public String selectedValue{get; set;}

}

Here i want to rendered outputText when the selectedValue is 'Two'.

<apex:page controller="selectionController" >
<apex:form >
<apex:actionFunction name="rerenderText" reRender="ot" >
<apex:param value="" assignTo="{!selectedValue}" name="param"/>
</apex:actionFunction>
<apex:selectList id="sL"  size="1" onchange="rerenderText(this.value)">
<apex:selectOption itemLabel="1" itemValue="One"></apex:selectOption>
<apex:selectOption itemLabel="2" itemValue="Two"> </apex:selectOption>
<apex:selectOption itemLabel="3" itemValue="Three"> </apex:selectOption>
</apex:selectList><br/>
<apex:outputText value="Success" rendered="{!selectedValue=='Two'}" id="ot"></apex:outputText>
</apex:form>

</apex:page>

 

----------------------------

public class selectionController {
public String selectedValue{get; set;}

}

 

Here i want to rendered outputText when the selectedValue is 'Two'

I need to update custom picklist values from PHP(Website) to Salesforce  I can update data (i.e. records)  but is their a way to update THE VALUES IN THE PICKLIST ITSELF FROM the website, as I have the connection establish ann I can access SDFC from m
Hi I'm facing the SQLException [common.exception.SfdcSqlException: ORA-01013 in my batch, i have used index field and selective filters in my query in batch but i'm not able to resolve the error. Can you please help me.

Thanks in advance.

Hi all,

 

I have a custom button on case, on click of this button i need the progress bar is it possible??

Please give solution as soon as possible.

I have to create 1500 territories and should assign terr to user while importing user.

 

What are the steps that needs to follow.?

Any idea how to create territories without manual.?

Is It posible to deploy from sandbox to sandbox??????????????????

  • July 18, 2013
  • Like
  • 0

Hi all,

 

Is it possible to add a custom feild from the user object into the email alert user picklist?

I am new to salesforce.

Now I have been trying to deploy my part to the existing project in Production.

When I do validation before deploy my part(20 classes) , I hit the exception and failed.

 

The problem is the exception is hit from a existing class , I never used or call.

 

1) when perform validation, is SF run all the test classes (existing and new) ?

2) If that a case, is it too slow to re run all the test classes?

3) if that kind of exceptions from a class, you don't written... how we should handle it? (if the project is too big and too many codes)

 

Thanks ahead for any helpful inputs.

i am migrating data of seibel to salesforce....after migrating the   record to  salesforce..the date will be  the  new date or old date?  (which the record is created in seibel is old date)...............if it is the new date in salesforce after migrating then how to change it  to  old  date? 

is it possible to execute triggers in devoloper console?how? need to execute anonoumous code or can we directly executes it?

 

Hi,

 

I have started to learn how to develop App in Force.com platform and created developer edition account. Force.com IDE as plugin is installed on eclipse 3.6 IDE.

 


New project is created and added simple VisualForce pages on Eclipse IDE. VisualForce pages are available in webserver [setup-->Develop-->Pages] (SalesForce DE Account site).

 

But how can I put/deploy my project on webserver (DE account) as Application?

 

How is custom app created on SalesForce avail on Eclipse IDE?

 

 

 

I am new in this area so Please help me for above.

 

If required more detail please let me know.

 

 

 

Thanks & Regards,

 

Viren.

 

  • July 18, 2013
  • Like
  • 0

Hello all,

 

Can you please let me know the steps to make sure that I run the batch apex every 30 minutes all day and everyday...In the UI i can schedule everyday but here i want to execute my batch class everyday and on each and every single day i have to run this Batch Apex every 30 minutes?Please let me know the sequence of actions that i need to take...

 

Here is my schedulable class

 

 

global class ProcessAccs implements Schedulable{
   
    global void execute(SchedulableContext sc) {
        //  Instantiate batch class 
        BatchProcessAccs B = new BatchProcessAccs();
        database.executebatch(B,200);
    }
    
}

SOSL does not seem to be able to search picklist fields. Is this correct?