• Balajee Selvaraj
  • NEWBIE
  • 15 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 11
    Questions
  • 6
    Replies
Its possible to match duplicate contacts for corresponding account for merge in salesforce lightning ?
Hi All,

I am having 2 Lightning Component. 
Lightning Component - A  having Button.
If I am clicking on the button in Lightning Component - A. Lightning Component - B should refresh. 

Do you have any sample codes please post below.
ApexPages.currentPage(). setCookies(new Cookie[] { userCookie ...}) is not working in lightning component any workaround for this ?
Hi all, I have many account records in my org. If i run a batch like conditions each account have Account History child relationship, Two users are there in my org User1 and User2. If user2 any update in any account record i have an  checkbox in contact should check.
I have to display all Account addresses in google maps based on my geolocation(current location) in VF page.
Hi Guys,
I struck with Two sceanrios
Senarion 1: 
In Account Standard obj there is a object called Account History.
I ahve three user A,B,C.
If the account is only created or edited by 'A'
system.debug('Valid');
If the account is only created or edited by 'A','B','C'
system.debug('INValid');


Scenario 2:
IF Account A having Notes and Attachmnets.
I wana populate all Account releated list in Account 'A' to Account 'B'
for(Database.error err : sr.getErrors()) {
customfiled__C='failed';
}

I cannot able to cover this line please help me!
Thanks!
1) I have Product__c custom object.
2) I have Custom fields in this custom obj like Id__c,Name__c,Price__c.
3) If I click a button in Vf page a excel should be downloaded with Product__c custom object (record fields)

Thanks & regards
Balajee.S
I have two methods in apex class called A and B.
A method have custom custom object called custom_obj.
B method hvae Standartd object called account. 
If Account have dml operations dabase.update or dabase.delete, It should capture error message in exception and this error message should update in salesfoce custom_obj which is in method A. 

Please answer me Freinds.
My contorller is:
Public with sharing class soqlExpController{
 Public List<contact> conList{get;set;}
 Public List<account> accList{get;set;}
  Public String Keyword{get;set;}
   Public soqlExpController(){
   }
 
  Public void soslDemo_method(){
   conList = New List<contact>();
   accList = New List<account>();
   String searchStr1 = '*'+keyword+'*';
   String searchQuery = 'FIND \'' +searchStr1+ '*\' IN ALL FIELDS RETURNING  Account (Id,Name,type),Contact(name,email)';
   List<List <sObject>> searchList = search.query(searchQuery);
   accList = ((List<Account>)searchList[0]);
   conList  = ((List<contact>)searchList[1]);
  }
}

MY VF page is:
<apex:page controller="soqlExpController">
  <apex:form >
   <apex:inputText value="{!keyword}"/>
   <apex:commandButton value="Show records using SOSL" action="{!soslDemo_method}"/>
    <apex:pageBlock title="Accounts">
       <apex:pageblockTable value="{!accList }" var="acc">
          <apex:column value="{!acc.name}"/>
          <apex:column value="{!acc.Type}"/>
       </apex:pageblockTable>
    </apex:pageBlock>
 <apex:pageBlock title="Contacts">
    <apex:pageblockTable value="{!conList}" var="con">
      <apex:column value="{!con.name}"/>
      <apex:column value="{!con.email}"/>
 </apex:pageblockTable>
 </apex:pageBlock>
  </apex:form>
</apex:page>
Based on Annual revanue(Reports) Top 10 Accounts should display in Home Page.



Can any one help me on this.

Thanks & Regards,
Balajee
Hi All,

I am having 2 Lightning Component. 
Lightning Component - A  having Button.
If I am clicking on the button in Lightning Component - A. Lightning Component - B should refresh. 

Do you have any sample codes please post below.
Its possible to match duplicate contacts for corresponding account for merge in salesforce lightning ?
I have to display all Account addresses in google maps based on my geolocation(current location) in VF page.
I have two methods in apex class called A and B.
A method have custom custom object called custom_obj.
B method hvae Standartd object called account. 
If Account have dml operations dabase.update or dabase.delete, It should capture error message in exception and this error message should update in salesfoce custom_obj which is in method A. 

Please answer me Freinds.
Based on Annual revanue(Reports) Top 10 Accounts should display in Home Page.



Can any one help me on this.

Thanks & Regards,
Balajee