• Taresh Pandey
  • NEWBIE
  • 70 Points
  • Member since 2015


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 24
    Replies
Hey folks,

I wanna hide the header region and navigation from 'Lightning Experience' in Summer 16 release ORG. How can I make it possible ?
Please share your ideas. Even a little help would be appreciable.

Thank you all in advance.
Regards'
Taresh 
Hey folks,
The image I have uploaded, in that (In the red circle)- why session valid time is defferent for UI, TempUIFrontdoor, TempContentExchange and content ?
Is it from Salesforce or I can provide exact same valid time for these session types. If yes then HOW ? I'll eagerly wait for your replys.
Thank you in advance.

Thanks & Regards'
Taresh Pandey
User-added image
Hey All,

I'm stuck with a problem- There are more than 5000 queue records in my account and I wanna delete all the queue which are not seen by any user. How can I make this possible by Apex code or is there any other solution to delete enormous number of queues. ?
Thank you all in advance.

Regards'
Taresh Pandey
Hey all,
I wanna delete custom object from a managed released package. How can I make it possible. ?
Your little help would be enough.
thank you all in advance.
 

Hey Friends,
I wanna display Account component in the sidebar Like User-added image Leads(686) shown in this picture i.e. Account (Number of records exist). All the records should be display clicking on the component. Even a little clue would be more helpful.
thank you all in advance 

Hello All,
         I don't even know how to perform this task. Could any one help me for this task. If any one can give me a little clue for the task that would be really helpful for me.

Thank you all in advance.
Regards'
Taresh 
Hello All,
     I'm stuck in the middle of this problem I don't know how check from which source user page extrated. If I open user page first in salesforce classic and after I switch it to Lightning.
Thanks to all of you in advance

Regards'
Taresh Pandey
Hello All,

I have a small question that; is it possible - creation of apex class for Role Hierarchy without using VF pages. If answer is YES then tell me How ?


thank you all experts in advance.

Regards'
Taresh Pandey
Hello All,
-:Apex Class:-

public class Innerclass4List 
{
    public class fourlists
    {
        public List<Integer> firstlist ;
        public List<Account> secondlist ;
        public List<Opportunity> thirdlist ;
        public List<String> fourthlist ;
    }
    public List<Account> selected (List<fourlists> FL)
    {
        return FL[0].secondlist;
    }  
}

-:Test Class:-

@isTest
public class testInnerclass4List 
{
    static testMethod void testmethodfourlist()
    {
        List<Innerclass4List.fourlists> testresultlist = new List<Innerclass4List.fourlists>();
           Innerclass4List.fourlists ICF = new Innerclass4List.fourlists();

            Account acct = new Account();
                
                   acct.Name = 'Ashok';
                acct.AnnualRevenue = 10000;
                acct.Phone = '0731467890';
        
                ICF.secondlist.add(acct);

                testresultlist.add(ICF);
       Innerclass4List ICL = new Innerclass4List();
       List<Account> secondlist = ICL.FL(testresultlist);
       system.assert(secondlist.size()>0);          
    }
}

Where I went wrong; I can't figure it out. I need your help. Please Let me know if you are getting error.

Thank you all in advance 
Hello all,
          This code having error while compiling I.e. Incompatible element type Another.Runtime for collection of Integer at line 20 column 17. Friends I'm not able to understand this error, please let me know if you can figureout this error.

Public class Another
{
    public class Runtime
    {
        Public string name;
        Public boolean Exist;
        public Integer Phone;
    }
    public List<Runtime> RuntimeList (List<Runtime> LR)
    {
        return LR;
    }
    public List<Integer> Phonenumbers (List<Integer> Phnumber)
    {
        List<integer> Allrecords = new List<integer> ();
        for(Runtime IT : Phnumber)
        {
            If(IT!=null)
            {
                Allrecords.add(IT);
            }
        }
    }
}

 
// This method is use to create chart Records (Bulky method) 
// INPUT: Array of Sobject (Chart) with field data. 
// OUTPUT: return ID if inserted without error return null if inertion failes. 
//
@RemoteAction
public static String insertChart(List<Chart> RemoteCharts){
List<Lean__Chart__c> NewCharts= new List<Lean__Chart__c>();
    for(Chart Chart: RemoteCharts){
    Lean__Chart__C Newchart= new Lean__Chart__c();
    Newchart.Name =Chart.Name;
    Newchart.Lean__DeveloperName__c = Chart.DeveloperName;
    Newchart.Lean__Filter__c = Chart.Filter;
    Newchart.Lean__Format__c = Chart.Format;
    Newchart.Lean__GUID__c = Chart.Id;
    Newchart.Lean__Height__c = Chart.Height;
    Newchart.Lean__Left__c = Chart.Left;
    Newchart.Lean__LockState__c = Chart.LockState;
    Newchart.Lean__ReportId__c = Chart.ReportID;
    Newchart.Lean__Top__c = Chart.Top;
    Newchart.Lean__ValueStream__c = (Chart.ValueStreamID==''?null:Chart.ValueStreamID);
    Newchart.Lean__Width__c = Chart.Width;
    Newchart.Lean__X__c = Chart.X;
    Newchart.Lean__Y__c = Chart.Y;
    Newchart.Lean__CmpID__c =Chart.CmpID;
    Newchart.Lean__Size__c = Chart.Size;    
    Newchart.Lean__ChartURL__c = Chart.ChartURL;
    Newchart.Lean__JSONData__c = Chart.JSONData;
    NewChart.Lean__OnlyShowChart__c = Chart.OnlyShowChart;    
        NewCharts.add(Newchart);
}
    List<Database.Upsertresult> uResults;
        try {
          Schema.Sobjectfield ExternField = Lean__Chart__C.Fields.Lean__GUID__c;
          uResults = Database.upsert(NewCharts, ExternField, true); 
        } catch (DmlException e){
            System.debug(e.getMessage());
            return '';
            
        }

return NewCharts[0].Id ;
}

Regards'
Taresh
Hello all,

First of all I say thank you guys for helping me on my earlier problem. For this task some limitations are there:-
1- Use only one query where ever you want.
2- You can not use sub-query for the problem.

Thank you all in advance.
Hello all,
    I'm new on salesforce technology.I wanna retrieve some records from sObject and I wanna insert those retrieved records into a custome object. without using Apex controller and trigger. How can I perform this task. I'll  eagerly wait for yours' reply.
  
thank you all in advance 
Hey all,
I wanna delete custom object from a managed released package. How can I make it possible. ?
Your little help would be enough.
thank you all in advance.
 

Hey Friends,
I wanna display Account component in the sidebar Like User-added image Leads(686) shown in this picture i.e. Account (Number of records exist). All the records should be display clicking on the component. Even a little clue would be more helpful.
thank you all in advance 

Hello All,
         I don't even know how to perform this task. Could any one help me for this task. If any one can give me a little clue for the task that would be really helpful for me.

Thank you all in advance.
Regards'
Taresh 
Hello All,
     I'm stuck in the middle of this problem I don't know how check from which source user page extrated. If I open user page first in salesforce classic and after I switch it to Lightning.
Thanks to all of you in advance

Regards'
Taresh Pandey
Hello All,

I have a small question that; is it possible - creation of apex class for Role Hierarchy without using VF pages. If answer is YES then tell me How ?


thank you all experts in advance.

Regards'
Taresh Pandey
Hello All,
-:Apex Class:-

public class Innerclass4List 
{
    public class fourlists
    {
        public List<Integer> firstlist ;
        public List<Account> secondlist ;
        public List<Opportunity> thirdlist ;
        public List<String> fourthlist ;
    }
    public List<Account> selected (List<fourlists> FL)
    {
        return FL[0].secondlist;
    }  
}

-:Test Class:-

@isTest
public class testInnerclass4List 
{
    static testMethod void testmethodfourlist()
    {
        List<Innerclass4List.fourlists> testresultlist = new List<Innerclass4List.fourlists>();
           Innerclass4List.fourlists ICF = new Innerclass4List.fourlists();

            Account acct = new Account();
                
                   acct.Name = 'Ashok';
                acct.AnnualRevenue = 10000;
                acct.Phone = '0731467890';
        
                ICF.secondlist.add(acct);

                testresultlist.add(ICF);
       Innerclass4List ICL = new Innerclass4List();
       List<Account> secondlist = ICL.FL(testresultlist);
       system.assert(secondlist.size()>0);          
    }
}

Where I went wrong; I can't figure it out. I need your help. Please Let me know if you are getting error.

Thank you all in advance 
Hello all,
          This code having error while compiling I.e. Incompatible element type Another.Runtime for collection of Integer at line 20 column 17. Friends I'm not able to understand this error, please let me know if you can figureout this error.

Public class Another
{
    public class Runtime
    {
        Public string name;
        Public boolean Exist;
        public Integer Phone;
    }
    public List<Runtime> RuntimeList (List<Runtime> LR)
    {
        return LR;
    }
    public List<Integer> Phonenumbers (List<Integer> Phnumber)
    {
        List<integer> Allrecords = new List<integer> ();
        for(Runtime IT : Phnumber)
        {
            If(IT!=null)
            {
                Allrecords.add(IT);
            }
        }
    }
}

 
// This method is use to create chart Records (Bulky method) 
// INPUT: Array of Sobject (Chart) with field data. 
// OUTPUT: return ID if inserted without error return null if inertion failes. 
//
@RemoteAction
public static String insertChart(List<Chart> RemoteCharts){
List<Lean__Chart__c> NewCharts= new List<Lean__Chart__c>();
    for(Chart Chart: RemoteCharts){
    Lean__Chart__C Newchart= new Lean__Chart__c();
    Newchart.Name =Chart.Name;
    Newchart.Lean__DeveloperName__c = Chart.DeveloperName;
    Newchart.Lean__Filter__c = Chart.Filter;
    Newchart.Lean__Format__c = Chart.Format;
    Newchart.Lean__GUID__c = Chart.Id;
    Newchart.Lean__Height__c = Chart.Height;
    Newchart.Lean__Left__c = Chart.Left;
    Newchart.Lean__LockState__c = Chart.LockState;
    Newchart.Lean__ReportId__c = Chart.ReportID;
    Newchart.Lean__Top__c = Chart.Top;
    Newchart.Lean__ValueStream__c = (Chart.ValueStreamID==''?null:Chart.ValueStreamID);
    Newchart.Lean__Width__c = Chart.Width;
    Newchart.Lean__X__c = Chart.X;
    Newchart.Lean__Y__c = Chart.Y;
    Newchart.Lean__CmpID__c =Chart.CmpID;
    Newchart.Lean__Size__c = Chart.Size;    
    Newchart.Lean__ChartURL__c = Chart.ChartURL;
    Newchart.Lean__JSONData__c = Chart.JSONData;
    NewChart.Lean__OnlyShowChart__c = Chart.OnlyShowChart;    
        NewCharts.add(Newchart);
}
    List<Database.Upsertresult> uResults;
        try {
          Schema.Sobjectfield ExternField = Lean__Chart__C.Fields.Lean__GUID__c;
          uResults = Database.upsert(NewCharts, ExternField, true); 
        } catch (DmlException e){
            System.debug(e.getMessage());
            return '';
            
        }

return NewCharts[0].Id ;
}

Regards'
Taresh
Hello all,

First of all I say thank you guys for helping me on my earlier problem. For this task some limitations are there:-
1- Use only one query where ever you want.
2- You can not use sub-query for the problem.

Thank you all in advance.
Hello all,
    I'm new on salesforce technology.I wanna retrieve some records from sObject and I wanna insert those retrieved records into a custome object. without using Apex controller and trigger. How can I perform this task. I'll  eagerly wait for yours' reply.
  
thank you all in advance