• satheesh k 18
  • NEWBIE
  • 20 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 6
    Replies
Hi Their, 

I have a requiremen where multiple case ids from the list view should be passed to flow and make changes on few fields on the relevant cases. 

Thanks 
Hi All,

Please help me to fix the below issue.

User-added image

I am above error when I run the macro in case detail page.

Thanks
Satheesh K
Hi Team,
I am using below query to search the result. 
searchquery='select title,id, UrlName, Summary, ArticleType from knowledgearticleversion where Title like \'%'+searchstring+'%\'';
We have three records with title 'Wi-Fi', but if i am searching with keyword WiFi there is no result.  However if I am searching with exact Wi-Fi text only the results are coming.
Question: I want to build my query in such a way that if user enter Wifi or Wi-Fi the results should come. 
Please let me know.

Thanks
Satheesh K
 
Hi Team,

Please help me to fix the issue.

After submitted web to case form we need to show popup window message like "record created ".
I added java script function to show alert message which is firing before submit the form, but i need after save the record.

Thanks
Satheesh K
Hi team,
In opportunity object I have created new user lookup field that is "second owner".
if user select the second owner(user lookup) field and create new record on opportunity object.
automatically give read access to the second owner on this opportunity record.

Note:opportunity owd is private.

Please help me 

Thanks
Sathish k
Hi team,
I have written below code for whenever account checkbox field is checked, if we create new opportunity under this account service field is mandatory on opportunity.
trigger ProjectAlchemyFieldMandatory on Opportunity (after insert,after update) 
{
    Set<Id> Accids=new Set<Id>();
    if(trigger.isInsert || trigger.isUpdate)
    {
        for(Opportunity Opp:Trigger.new)
        {          
           Accids.add(opp.Accountid); 
           system.debug('@@@@@Accids'+Accids);          
        }
    }
    
    List<Account> lisAcc=[select id,Checkbox__C,(select id,Service__C from opportunities) from account where id in:Accids];

    for(Account acc: lisAcc)
    {
        system.debug('Checkbox__C'+acc.Checkbox__C);
        if(acc.Checkbox__C==true)
        {
            for(Opportunity op:acc.opportunities)
            {
                system.debug('Service__C for loop'+op.Service__C );
                if(op.Service__C==null || op.Service__C=='')
                {
                    system.debug('@@@@@Service__C'+op.Service__C);
                   
                    op.adderror('Please select');
               
                
                }
            }
        }
    }    
}

But i am getting below error when i create new record on opportunity object.
ProjectAlchemyFieldMandatory: execution of AfterInsert caused by: System.FinalException: SObject row does not allow errors: Trigger.ProjectAlchemyFieldMandatory: line 27, column 1

Please help me

Thanks
Satheesh k18
 
HI 

Please help me to integrate from saleforce to twitter using Rest API.
I have created Twitter app and ganerated consumer key and secretkey.

I have follow the below link:-
https://developer.salesforce.com/forums?id=906F00000005KOwIAM

1) In the we have class please explain the what is "code" here .
2) PageReference pg = new PageReference('https:// Please_PUT HERE TwitterAuthorizeURL ?response_type=code&client_id=Put client id&redirect_uri=YOUR CALL BACK URL') ;
tell me how to replace the bold values, please give me clarity.
same thing for below line :-
String tokenuri = 'https://PLEASE PRovide api hit url of twitter?grant_type=authorization_code&code='+code+'&redirect_uri=YOUR CALL BACK URL';  


Thanks
Satheesh k
Hi 

Please give me clarity on below screen shot.
User-added image

1) Can we create button on approval process object if yes, please explain process.
2) Can we create custom field on approval process object if yes, please explain process.

Please find the screen shot i have highlighted the location of the button.  as well as field under comment.
Thanks
Satheesh K
Hi, 

I would like to know the Analytics Cloud Certification details.  Is anyone aware of this availability in salesforce?
Kindly please let me know.

Thank you
Satheesh K
Hi All,

I want to check lead email field value when will we insert new record , if old email id and new email id is same update same record. 
otherwise create new record in lead object.

Please help me how will i do
Thanks
 
HI All,

Depending on country field i want to update manager field on account object.
I have maintain country name and manager detains in custom setting object.

Now i want to get the data from custom setting. 

I have completed this task through trigger , using  "before insert and before update" event.

But i want to complete this task through trigger , using "after insert and after update" event

I have tried this way  :

trigger StateManager1 on Account(after insert, after update)
 {
     Map<String ,StateManager__c> mp=StateManager__c.getAll();
     Set<String> bcKeySet = new Set<String>();
     bcKeySet = mp.keyset();
     Set<Id> setIds=new Set<Id>();
     List<Account> lisAcc=[select id ,name ,Manager__c ,Country__c  from Account where id In : trigger.newMap.keyset()];
     List<Account> acc=new List<Account>();
     for(Account a : lisAcc)
     {
         if(bcKeySet.contains(a.Country__c ))
         {
       
             if(Trigger.isupdate && mp.get(a.Country__c).ManagerName__c!=a.Country__c)
             {
                 a.Manager__c =mp.get(a.Country__c).ManagerName__c;
                 acc.add(a);
             }
             if(Trigger.isinsert)
             {
                 a.Manager__c =mp.get(a.Country__c).ManagerName__c;
                 acc.add(a);
             }
         }
     }
     Update acc;
     
 }
 
 
But i am getting below error :

Error:Apex trigger StateManager1 caused an unexpected exception, contact your administrator: StateManager1: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0 with id 0012800000R91HiAAJ; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, StateManager1: maximum trigger depth exceeded Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi]: []: Trigger.StateManager1: line 26, column 1

Please help me how will complete by using after events

Thanks
​Satheesh
Hi All,

I want ot display all dash boards in vf page dynamically. 
Please help how to do this one.

Thanks
Satheesh
Hi All,
Please help me regarding cretification maintenance,
I have completed 401 certification month of sep 5 ,2015.
after that , I did not get the any mail for maintenance Exam, when will i get mail for maintenance exam ,and where can i find this.

Please help me.

Thanks
Satheesh
Hi All,

Please help me to fix the below issue.

User-added image

I am above error when I run the macro in case detail page.

Thanks
Satheesh K
Hi Team,
I am using below query to search the result. 
searchquery='select title,id, UrlName, Summary, ArticleType from knowledgearticleversion where Title like \'%'+searchstring+'%\'';
We have three records with title 'Wi-Fi', but if i am searching with keyword WiFi there is no result.  However if I am searching with exact Wi-Fi text only the results are coming.
Question: I want to build my query in such a way that if user enter Wifi or Wi-Fi the results should come. 
Please let me know.

Thanks
Satheesh K
 
Hi team,
In opportunity object I have created new user lookup field that is "second owner".
if user select the second owner(user lookup) field and create new record on opportunity object.
automatically give read access to the second owner on this opportunity record.

Note:opportunity owd is private.

Please help me 

Thanks
Sathish k
Hi team,
I have written below code for whenever account checkbox field is checked, if we create new opportunity under this account service field is mandatory on opportunity.
trigger ProjectAlchemyFieldMandatory on Opportunity (after insert,after update) 
{
    Set<Id> Accids=new Set<Id>();
    if(trigger.isInsert || trigger.isUpdate)
    {
        for(Opportunity Opp:Trigger.new)
        {          
           Accids.add(opp.Accountid); 
           system.debug('@@@@@Accids'+Accids);          
        }
    }
    
    List<Account> lisAcc=[select id,Checkbox__C,(select id,Service__C from opportunities) from account where id in:Accids];

    for(Account acc: lisAcc)
    {
        system.debug('Checkbox__C'+acc.Checkbox__C);
        if(acc.Checkbox__C==true)
        {
            for(Opportunity op:acc.opportunities)
            {
                system.debug('Service__C for loop'+op.Service__C );
                if(op.Service__C==null || op.Service__C=='')
                {
                    system.debug('@@@@@Service__C'+op.Service__C);
                   
                    op.adderror('Please select');
               
                
                }
            }
        }
    }    
}

But i am getting below error when i create new record on opportunity object.
ProjectAlchemyFieldMandatory: execution of AfterInsert caused by: System.FinalException: SObject row does not allow errors: Trigger.ProjectAlchemyFieldMandatory: line 27, column 1

Please help me

Thanks
Satheesh k18
 
HI All,

Depending on country field i want to update manager field on account object.
I have maintain country name and manager detains in custom setting object.

Now i want to get the data from custom setting. 

I have completed this task through trigger , using  "before insert and before update" event.

But i want to complete this task through trigger , using "after insert and after update" event

I have tried this way  :

trigger StateManager1 on Account(after insert, after update)
 {
     Map<String ,StateManager__c> mp=StateManager__c.getAll();
     Set<String> bcKeySet = new Set<String>();
     bcKeySet = mp.keyset();
     Set<Id> setIds=new Set<Id>();
     List<Account> lisAcc=[select id ,name ,Manager__c ,Country__c  from Account where id In : trigger.newMap.keyset()];
     List<Account> acc=new List<Account>();
     for(Account a : lisAcc)
     {
         if(bcKeySet.contains(a.Country__c ))
         {
       
             if(Trigger.isupdate && mp.get(a.Country__c).ManagerName__c!=a.Country__c)
             {
                 a.Manager__c =mp.get(a.Country__c).ManagerName__c;
                 acc.add(a);
             }
             if(Trigger.isinsert)
             {
                 a.Manager__c =mp.get(a.Country__c).ManagerName__c;
                 acc.add(a);
             }
         }
     }
     Update acc;
     
 }
 
 
But i am getting below error :

Error:Apex trigger StateManager1 caused an unexpected exception, contact your administrator: StateManager1: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0 with id 0012800000R91HiAAJ; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, StateManager1: maximum trigger depth exceeded Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi] Account trigger event AfterUpdate for [0012800000R91Hi]: []: Trigger.StateManager1: line 26, column 1

Please help me how will complete by using after events

Thanks
​Satheesh