• Pawan Rai
  • NEWBIE
  • 0 Points
  • Member since 2010

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

Hey Guys,

 

I want to show all the case which is related to Account in Case Page. For that i created Page and controller, but the problem is, controller is picking all the Case, not related to Particular Account.

Here is the code:

List<Case> caselist = new List<Case>();
public List<Case> getmyCase()
    {
    caselist = [select Subject, AccountId, Origin, Status, Product__c, CaseNumber from Case where AccountId =:ApexPages.CurrentPage().getParameters().get('Account.id')];
     
         return caselist;
     
         }     
 }

 

Outcomes: Its picking all the case, not related to specific Account.

 

Can any one help me on that.

 

Hello Friend,

 

Currently i am suing "Email to Case" facility in SF, but now i want to use "On demand Email to case" functionality because of some issue.

Can any one tell me it will hamper my previous setting when i start using on "On Demand Email to Case".

 

Thanks

 

Hello Everyone, I created some formula field and i try to merge all the field using IF condition, but it Showing error because its to large. So i try to update the field using Apex trigger.

This is my trigger:

 

trigger TimeZone on Contact (before insert, before update) {

 for (Contact cc : Trigger.new)
 
 {
  if(cc.SP_Place_TimeZone__c =='GMT+05:30')
   {
     cc.Customer_Place_Time__c = cc.Customer_Place_Time1_del__c;
   }
    if(cc.SP_Place_TimeZone__c =='GMT+00:00')
      {
       cc.Customer_Place_Time__c = cc.Customer_Place_Time_00_00_del__c;
      }
    if(cc.SP_Place_TimeZone__c =='GMT+01:00')
      {
       cc.Customer_Place_Time__c = cc.Customer_Place_Time_01_00_del__c;
      }   
   if(cc.SP_Place_TimeZone__c =='GMT+03:00')
      {
       cc.Customer_Place_Time__c = cc.Customer_Place_Time_03_00_del__c;
      }
}
}
Actually i created 10 formula field like that only :

IF( SP_Place_TimeZone__c ="GMT+00:00" && ISPICKVAL(Customer_place_Time_Zone__c, 'GMT+01:00'), NOW()+(0.041667) ,

IF(ISPICKVAL(Customer_place_Time_Zone__c, 'GMT+02:00'), NOW()+(0.833333),

IF(ISPICKVAL(Customer_place_Time_Zone__c, 'GMT+03:00'), NOW()+(0.125),

IF(ISPICKVAL(Customer_place_Time_Zone__c, 'GMT+04:00'), NOW()+(0.166667),

IF(ISPICKVAL(Customer_place_Time_Zone__c, 'GMT+05:00'), NOW()+(0.208333),

IF(ISPICKVAL(Customer_place_Time_Zone__c, 'GMT+06:00'), NOW()+(0.25),
)))))))

The main problem is Customer dont want to edit record, he want to just refresh record and update the field.

Can any one help me on this...Please. Please..

Thanks in advance :manhappy:

Hi,

 

My problem is when i send email from SF (build function) and Customer will give reply then it is added RE:. I want to remove RE: from subject line.

 

Regs,

Pawan

Hello every body,

I am trying to send email alert from case comment object. Please any one help me how to write the code for sending a mail using trigger.

hello every body, I created new Reminder custom field in Task object, but from Task i was not able to send email.

 

Scenario, User set-up the reminder field but he want to get one notification before 15 min and one after 15 min of reminder time.

 

 

public class Activity 
{

public Activity(ApexPages.StandardController controller) 
{
    }
List<Task> tsk = new List<Task>();
public List<Task> getactivit()
    { 
     tsk = [select Subject, Assign_To__c,Status, ActivityDate, Description, Action_Item__c from Task where WhatId =:ApexPages.CurrentPage().getParameters().get('id')];
         return tsk;
     }

Hi,

 

I want to create a rollup field in Account Object with Opportunity Amount. Can any one help me on this, Actually i'm new in  trigger.

Hi,

 

I want to create a rollup field in Account Object with Opportunity Amount. Can any one help me on this, Actually i'm new in  trigger.

Hey,

 

Can any one help me on configuring Bugzilla with SFDC.

 

Regs,

Pawan