• eswarsf
  • NEWBIE
  • 5 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 20
    Replies
Hello ,
We are configuring continuous integration for our project. For this purpose we are using Jenkins(Continuous integration tool),ANT (Force.com deployment),GitHub (Source code repository).

We have one AD(development team) team and support (Maintenance Team) team ,both are having different sandboxes and their respective changes will be merged in SIT sandbox. Assume that both AD team and AM team have changed the same Apex class then this class must be merged in SIT sandbox.

The problem is how can we merge AD team's GitHub code repository and AM team's GitHub code repository into SIT GitHub code repository within Jenkins configuration.

Please help us to resolve this.

  • September 30, 2014
  • Like
  • 0

Hi,

I would like to know "Why visualforce controllers will allow webservice callouts?".

I know Triggers will not allow because of Synchronous responses,but VisualForce page also will have to wait till webservice callout is successfull.

 

Thanks.

Hi All,

I have a custom field which is a Date\Time field.I wanted to invoke my workflow or Apex Classwhen System Time is equal to my custom field.Basically my custom Date field is a waiting timer .

Is there any way to acheive this?

 

Thanks,

Hi,

I have a class in which I am updating a field for a custom object.For this class i have written a test class.In this test class i was creating new record for my custom object.

 

The problem is for this custom object,Name field is an Autonumber field.

So in my test class after inserting i was trying to send this Name to my Apex class.But surprisingly it is giving me NULL after insert in Test class.

 

Kindly let me know if this is a Salesforce defect.

 

Thanks,

Eswar.

Hi,

I have a visualforce page which will open whenever user clicks on button.if I am clicking on that button multiple times,multiple visualForce windows are opening.

Kindly let me know is there ay way to restrict only one time,I mean if already VF window is opened,if I am clicking multiple times that button now it should show me already opened VF window.

 

Thanks

Hi,

I am playing around with Google oAuth playground.I got success in HTTP GET,HTTP DELETE,HTTP POST requests.But when I tried HTTP PUT it was throwing me below error.

 

"{
"message" : "HTTP Method 'PUT' not allowed. Allowed are HEAD,GET,PATCH,DELETE",
"errorCode" : "METHOD_NOT_ALLOWED"
}"

 

Kindly let me know how can I update salesforce records?

 

Thanks,

Hi,

We are planning to build "Customer Portal" using VisualForce and Apex Code.Can we build the same with SiteForce?

 

Thanks,

Hi,

I wanted to connect Dropbox REST API through Apex class.I was finding difficulty to access oAuth access token.

Kindly let me know the process.

 

Thanks.

Hi,

I want to get all field names and object names in my Org.I am using "getGlobalDescribe" and "fields.getMap" in my apex code.but with this code i can access only upto 100 objects,if i am trying to access more than 100 objects it is throwing me error.

 

Kindly let me know is there any work around for this.

 

Thanks,

Hi,

Kindly let me know how to create a set up menu in visual force?

 

Thanks,

Eswar.

Hi,

What is the best way to display Siebel CRM data in Salesforce?

 

Thanks,

Eswar.

  • September 06, 2011
  • Like
  • 0

Hi,

If we have constructor in a class,Kindly let me know how can we write code to cover that constructor in test method?

 

Thanks ,

Eswar.

Hi,

When I was checking the 'Account Name' field in Contact Object it is appearing as a 'Lookup(Account)'.But when I am deleting Account record it is deleting Contact record also means it is behaving like a Master-Detail relationship.

I observed same behaviour with Opportunity and Accounts.

Kindly let me know which type of relationship is there between Standard Objects.

 

Thanks,

Eswar.

Hi ,

I have created the following trigger and classes.

Trigger----

 

trigger RecursiveTrigger on Employee__c (Before Update)

{
    if(!RecursiveTriggerClass.RecursiveFlag)   

{     

  Employee__c [] Emp = Trigger.New;       

RecursiveTriggerClass.recursiveTrigger();   

}

}

 

Class

 

public class RecursiveTriggerClass

{   

Public static Boolean RecursiveFlag = false; 

public static void recursiveTrigger()   

{       

Integer i=0;       

List <Employee__c> EUpdateList = new List<Employee__c>();       

Employee__c [] EList = [Select Id,Name,First_Name__c,Last_Name__C from Employee__c  where IdIN:Trigger.NewMap.KeySet()];               

for(Employee__C E : EList)       

{           

E.first_name__c = E.Last_Name__c+E.first_name__c;           

EUpdateList.add(E);           

i++;       

}       

System.Debug(i);       

RecursiveFlag = true;        

Update(EUpdateList);   

}

}

 

It was throwing "SELF_REFERENCE_FROM_TRIGGER" error though i have used static variable to prevent recursive firing.

I surprised when i have used "After Update", it was not throwing this error.

Kindly help me in this error.

 

Thanks,

Eswar.

 

Hi,

I am creating a Master-Detail Relationship field on Child object.In step 3,there is a option called "Sharing Setting".I tried to understand through experiments but could not understand the significance of this setting.

Assume that i have selected "Read Only" here.In profile settings i have given basic 'Read' access for both master and Child objects.The Sharing setting for Master is 'Public Read-only'.Kindly explain how the records will be impacted by this setting.

 

Thanks.

Hi,

I have written a Apex class hat implements Database.Batchable interface.What is the best way to call this class daily at specific time?

Hi,

I wanted to connect Dropbox REST API through Apex class.I was finding difficulty to access oAuth access token.

Kindly let me know the process.

 

Thanks.

Hi,

I would like to know "Why visualforce controllers will allow webservice callouts?".

I know Triggers will not allow because of Synchronous responses,but VisualForce page also will have to wait till webservice callout is successfull.

 

Thanks.

Hi All,

I have a custom field which is a Date\Time field.I wanted to invoke my workflow or Apex Classwhen System Time is equal to my custom field.Basically my custom Date field is a waiting timer .

Is there any way to acheive this?

 

Thanks,

Hi,

I have a class in which I am updating a field for a custom object.For this class i have written a test class.In this test class i was creating new record for my custom object.

 

The problem is for this custom object,Name field is an Autonumber field.

So in my test class after inserting i was trying to send this Name to my Apex class.But surprisingly it is giving me NULL after insert in Test class.

 

Kindly let me know if this is a Salesforce defect.

 

Thanks,

Eswar.

Hi,

I am playing around with Google oAuth playground.I got success in HTTP GET,HTTP DELETE,HTTP POST requests.But when I tried HTTP PUT it was throwing me below error.

 

"{
"message" : "HTTP Method 'PUT' not allowed. Allowed are HEAD,GET,PATCH,DELETE",
"errorCode" : "METHOD_NOT_ALLOWED"
}"

 

Kindly let me know how can I update salesforce records?

 

Thanks,

Hi,

We are planning to build "Customer Portal" using VisualForce and Apex Code.Can we build the same with SiteForce?

 

Thanks,

Hi,

I wanted to connect Dropbox REST API through Apex class.I was finding difficulty to access oAuth access token.

Kindly let me know the process.

 

Thanks.

Hi,

I want to get all field names and object names in my Org.I am using "getGlobalDescribe" and "fields.getMap" in my apex code.but with this code i can access only upto 100 objects,if i am trying to access more than 100 objects it is throwing me error.

 

Kindly let me know is there any work around for this.

 

Thanks,

Hi,

Kindly let me know how to create a set up menu in visual force?

 

Thanks,

Eswar.

I have seen the following sentence in Force.com apex code developers guide.

 

"Use the future annotation to identify methods that are executed asynchronously.When you specify future, the method executes when Salesforce has available resources."

 

Can someone please elaborate on the phrase "available resources" please?

 

 

Hi,

If we have constructor in a class,Kindly let me know how can we write code to cover that constructor in test method?

 

Thanks ,

Eswar.

Hi,

When I was checking the 'Account Name' field in Contact Object it is appearing as a 'Lookup(Account)'.But when I am deleting Account record it is deleting Contact record also means it is behaving like a Master-Detail relationship.

I observed same behaviour with Opportunity and Accounts.

Kindly let me know which type of relationship is there between Standard Objects.

 

Thanks,

Eswar.

Hi ,

I have created the following trigger and classes.

Trigger----

 

trigger RecursiveTrigger on Employee__c (Before Update)

{
    if(!RecursiveTriggerClass.RecursiveFlag)   

{     

  Employee__c [] Emp = Trigger.New;       

RecursiveTriggerClass.recursiveTrigger();   

}

}

 

Class

 

public class RecursiveTriggerClass

{   

Public static Boolean RecursiveFlag = false; 

public static void recursiveTrigger()   

{       

Integer i=0;       

List <Employee__c> EUpdateList = new List<Employee__c>();       

Employee__c [] EList = [Select Id,Name,First_Name__c,Last_Name__C from Employee__c  where IdIN:Trigger.NewMap.KeySet()];               

for(Employee__C E : EList)       

{           

E.first_name__c = E.Last_Name__c+E.first_name__c;           

EUpdateList.add(E);           

i++;       

}       

System.Debug(i);       

RecursiveFlag = true;        

Update(EUpdateList);   

}

}

 

It was throwing "SELF_REFERENCE_FROM_TRIGGER" error though i have used static variable to prevent recursive firing.

I surprised when i have used "After Update", it was not throwing this error.

Kindly help me in this error.

 

Thanks,

Eswar.

 

Hi,

I am creating a Master-Detail Relationship field on Child object.In step 3,there is a option called "Sharing Setting".I tried to understand through experiments but could not understand the significance of this setting.

Assume that i have selected "Read Only" here.In profile settings i have given basic 'Read' access for both master and Child objects.The Sharing setting for Master is 'Public Read-only'.Kindly explain how the records will be impacted by this setting.

 

Thanks.

Hi,

I have written a Apex class hat implements Database.Batchable interface.What is the best way to call this class daily at specific time?