• manav_mnv
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 15
    Questions
  • 8
    Replies
global class TourSyncBatch implements Database.Batchable<sObject>, Database.AllowsCallouts {
    
    public static string invokeUrl{get; set;}
    public static Map<String, Service_Endpoints__c> services {get; set;}
    
    public Database.QueryLocator start(Database.BatchableContext bc){
        //first callout to just invoke external service
        services = Service_Endpoints__c.getAll();
        
        invokeUrl = services.get('RefreshComms').Endpoint_URL__c;
        
         if(!test.isRunningTest())
        {
            // Invoke the URL
            HTTPWebCalloutUtil.HTTPWebCalloutGetRequest(invokeUrl);
        }
        
        return Database.getQueryLocator('select id, Tour_Reference__c, TourCreationStatus__c from Tour_Shell__c');
    }
    
    public void execute(Database.BatchableContext BC, List<Tour_Shell__c> Tourshell){
        // need to invoke two services here, on basis of some condition, how to achive that
        
    }
    
    public void finish(Database.BatchableContext info){
        
    }

}

Please help !!
Thanks in advance.

Regards,
Manav
Hi All

I have a query here, like you are on Account detail page, there are some related list(Contact, opportunity...). If we create a record in any related list(here i created contact) and save. So in Contact related list in Account detail page, when i click on Edit action link(marked as RED in snapshot), it will redirect to contact record in edit mode, but I want to open in same(Edit mode) on Account detail page.

User-added image

Please suggest what is the way to do this.

Thanks,
Manav
How to use Force.com IDE inside Eclipse to extract the 'Change Set' and check-it into BitBucket ?

Stucked up in this ....Please help
Hello All

I want to prepare a document on Unit Test mechanism of Apex classes and triggers. Can anybody suggest some links, where i can find good material for this topic.

Thanks
Manav
Hi all, I am new to coding and could use some help. I am trying to develop a vf page for a custom object I created. I have 10 custom text fields to enter material names, the catch is I only want to initially show 5 fields, then click a button or link to add the remaining 5 fields if necessary. Is it possible? Thanks!
Hello Folks

Please help me out in this error..
Failed to create createContainerMember for containerId=undefined: null is not a valid containerId.

I can't open tab or subtab for Hyperlink in formula field.

formula can do this.

 

HYPERLINK(Id,'Mr. ' &  FirstName & ' ' &  LastName, '_parent') 

 

Thank you so much.