• Dev_Sfdc
  • NEWBIE
  • 0 Points
  • Member since 2012

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

Hi All,

 

I have a scenario where i need to transfer all the child accounts to the new user when ever the parent account is getting transferred.

 

Means when ever parent account is transferred then all the child accounts also need to be transferred.

 

Now the point is whenever we click on owner name for change in account we will be getting the below check box to access.

 

  Transfer open opportunities not owned by the existing account owner
  Transfer closed opportunities
  Transfer open cases owned by the existing account owner
  Transfer closed cases
  Keep Account Team
  Keep Opportunity Team on opportunities transferred to new owner.
  Send Notification Email 

 

Can any one tell me how can i  check these for the child account through apex when i am transferring the parent account.

 

Thanks

Dear All,

 

I created one global webservice class and a webserive method for which one string is the parameter.

I generated the class wsdl and as well as the partner wsdl.

 

Now in the second salesforce instance

 

I consumed the two wsdl's and through vf & controller i am able to call the required method through stub and getting the o/p as well. Before this i passed one of the user session id.

 

Now i want to try this with the certificate so for that i generated one self signed ceriticate in the SFDC Instance 1 and tried to put the below line in the second instance controller part but getting the mentioned subject error as "System.CalloutException: Web service callout failed: Could not find client cert with dev name: 'XXXX' specified in clientCertName_x".

 

The unique name and the name mentioned is same and even i am getting the error.

 

Please helpout.

 

Below is the controller code part

 

*********************************

 

public class WSContoller
{  
public String getHelloWorld()
{
 partnerSoapSforceCom.Soap sp = new partnerSoapSforceCom.Soap(); 


 String username='XX';
 String password='XX';
 //private SoapBindingStub binding;


 partnerSoapSforceCom.LoginResult loginResult = sp.login(username, password); 
 soapSforceComSchemasClassValidate.SessionHeader_element sessionHeader = new soapSforceComSchemasClassValidate.SessionHeader_element(); 
 sessionHeader.sessionId = loginResult.sessionId;  
 
               
 soapSforceComSchemasClassValidate.Validate  stub = new soapSforceComSchemasClassValidates.Validate();
 stub.clientCertName_x ='XXXX';
 stub.SessionHeader=sessionHeader;
 String MyReturn = stub.check('00000');
 
 
 system.debug('Returned ************** ' + MyReturn);         
 return MyReturn ;  
 }  
 }

Dear All,

 

I want to delete the user (means inactivate him) based on some criteria.For that i will schedule a class which runs daily and if my criteria is met i will delete the user.

 

Now the problem is if the user  whom i am going to delete a manager for some set of users how to handle those user deletions since i am getting exception <Cannot inactivate user that is the value of a hierarchy field: Account Request Approver.>

 

Please help out...

Hi ,

 

I am getting *********** MAXIMUM DEBUG LOG SIZE REACHED *********** .

Most of the log is showing the below lines.

 

19:31:05.804 (2804556000)|SYSTEM_METHOD_ENTRY|[24]|system.ListIterator.hasNext()
19:31:05.804 (2804566000)|SYSTEM_METHOD_EXIT|[24]|system.ListIterator.hasNext()
19:31:05.804 (2804616000)|SYSTEM_METHOD_ENTRY|[27]|SET<String>.add(Object)
19:31:05.804 (2804630000)|SYSTEM_METHOD_EXIT|[27]|SET<String>.add(Object)
19:31:05.804 (2804640000)|SYSTEM_METHOD_ENTRY|[24]|system.ListIterator.hasNext()
19:31:05.804 (2804653000)|SYSTEM_METHOD_EXIT|[24]|system.ListIterator.hasNext()
19:31:05.804 (2804706000)|SYSTEM_METHOD_ENTRY|[27]|SET<String>.add(Object)
19:31:05.804 (2804719000)|SYSTEM_METHOD_EXIT|[27]|SET<String>.add(Object)
19:31:05.804 (2804728000)|SYSTEM_METHOD_ENTRY|[24]|system.ListIterator.hasNext()
19:31:05.804 (2804739000)|SYSTEM_METHOD_EXIT|[24]|system.ListIterator.hasNext()
19:31:05.804 (2804790000)|SYSTEM_METHOD_ENTRY|[27]|SET<String>.add(Object)
19:31:05.804 (2804804000)|SYSTEM_METHOD_EXIT|[27]|SET<String>.add(Object)
19:31:05.804 (2804813000)|SYSTEM_METHOD_ENTRY|[24]|system.ListIterator.hasNext()
19:31:05.804 (2804823000)|SYSTEM_METHOD_EXIT|[24]|system.ListIterator.hasNext()
19:31:05.804 (2804873000)|SYSTEM_METHOD_ENTRY|[27]|SET<String>.add(Object)
19:31:05.804 (2804887000)|SYSTEM_METHOD_EXIT|[27]|SET<String>.add(Object)
19:31:05.804 (2804895000)|SYSTEM_METHOD_ENTRY|[24]|system.ListIterator.hasNext()
19:31:05.804 (2804905000)|SYSTEM_METHOD_EXIT|[24]|system.ListIterator.hasNext()
19:31:05.804 (2804960000)|SYSTEM_METHOD_ENTRY|[27]|SET<String>.add(Object)
19:31:05.804 (2804974000)|SYSTEM_METHOD_EXIT|[27]|SET<String>.add(Object)
19:31:05.804 (2804983000)|SYSTEM_METHOD_ENTRY|[24]|system.ListIterator.hasNext()
19:31:05.804 (2804993000)|SYSTEM_METHOD_EXIT|[24]|system.ListIterator.hasNext()
19:31:05.805 (2805044000)|SYSTEM_METHOD_ENTRY|[27]|SET<String>.add(Object)
19:31:05.805 (2805060000)|SYSTEM_METHOD_EXIT|[27]|SET<String>.add(Object)
19:31:05.805 (2805069000)|SYSTEM_METHOD_ENTRY|[24]|system.ListIterator.hasNext()
19:31:05.805 (2805079000)|SYSTEM_METHOD_EXIT|[24]|system.ListIterator.hasNext()
19:31:05.805 (2805131000)|SYSTEM_METHOD_ENTRY|[27]|SET<String>.add(Object)

 

Can any one help how to avoid the SYSTEM_METHOD_ENTRY/EXIT lines in debug lines.

Even tried with filter options also but the same is repeating.

 

Will the running process also stops in mid if the log size exceeded ???

 

 

Hi All,

 

I defined a object <Account_Movement__c> which have two lookup to accounts.

 

I wrote a VF where first selection is a lookup which is one of the lookup field in the object <Account_Movement__c> and another lookup is another lookup field in the object <Account_Movement__c> .

 

These lookup selected values i am passing to controller based upon user selection.

 

Every thing is working fine.

 

Now i am struck up in writing test method.I want to know how to pass the two lookup values to controller from test method.

 

Below is the snippet of my code from controller.

 

//No Argument constructor of controller

public AccMvmtController()
{
fromLogo= new Account_Movement__c();
toLogo = new Account_Movement__c();
isnotblank=false;

}

 

public Account_Movement__c fromLogo {get;set;}
public Account_Movement__c toLogo {get;set;}

 

Below is the VF Snippet where i am populating the lookup value

 

<apex:inputField id="fromLogo" required="true" value="{!fromLogo.FromLogo__c}" >

 

How can i show the child account count on the parent account.

 

 

I need to encrypt the url parameters which i need to pass while opening the window with the url.

 

can any one please guide the way ahead.

 

Thanks...

Dear All,

 

I want to delete the user (means inactivate him) based on some criteria.For that i will schedule a class which runs daily and if my criteria is met i will delete the user.

 

Now the problem is if the user  whom i am going to delete a manager for some set of users how to handle those user deletions since i am getting exception <Cannot inactivate user that is the value of a hierarchy field: Account Request Approver.>

 

Please help out...