• Michael Verhovski
  • NEWBIE
  • 353 Points
  • Member since 2014

  • Chatter
    Feed
  • 11
    Best Answers
  • 0
    Likes Received
  • 3
    Likes Given
  • 0
    Questions
  • 71
    Replies
Hi All,

I am trying to import some account record to load the data in SFDC from the CLI, but i am getting below error. can some one pls help on this...

the file i am placing is : -
Name,AccountNumber,SLA__c,SLASerialNumber__c
Rahu,"123456","Gold",bb

Error::_-


com.salesforce.dataloader.exception.DataAccessObjectException: com.sforce.async.CSVReader$CSVParseException: Found unescaped quote. A value with quote should be within a quote
        at com.salesforce.dataloader.dao.csv.CSVFileReader.readRow(CSVFileReader.java:174)
        at com.salesforce.dataloader.util.DAORowUtil.calculateTotalRows(DAORowUtil.java:67)
        at com.salesforce.dataloader.dao.csv.CSVFileReader.getTotalRows(CSVFileReader.java:218)
        at com.salesforce.dataloader.action.AbstractLoadAction.initOperation(AbstractLoadAction.java:100)
        at com.salesforce.dataloader.action.AbstractAction.execute(AbstractAction.java:122)
        at com.salesforce.dataloader.controller.Controller.executeAction(Controller.java:121)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:149)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:100)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.java:253)
Caused by: com.sforce.async.CSVReader$CSVParseException: Found unescaped quote. A value with quote should be within a quote
        at com.sforce.async.CSVReader.nextRecordLocal(CSVReader.java:209)
        at com.sforce.async.CSVReader.nextRecord(CSVReader.java:142)
        at com.salesforce.dataloader.dao.csv.CSVFileReader.readRow(CSVFileReader.java:172)


what exactly i am missing... Please help ..
Hi All,


When will i choose Controller and Extension controoler can you give me any explanation with example???

Hi everybody
          Can anyone tell me what are the component in developer console


Please Help!
Hi folks,
       can anyone tell me what is soap api and how to use ,when to use in salesforce


Please help
Hi Everyone,
   Can anyone tell me what is s controls and how to create s controls??
Give me the video tutorial if possible

HI folks,
     Can anyone tell me how to download source code in IDE using code share

Thanks in advance
Karthick
After adding error checking to my Apex classes (try..catch blocks), my apex unit tests are now less than 100%.  Apparently I'm not testing for the Catch part of my code.  I can't for the life of me figure out how to test for this.  Help!

Thanks.

My catch blocks are all like this:

Catch (Exception ex) {
     String strMsg = 'An error occurred: ' + ex;
        ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.ERROR, strMsg);
        ApexPages.addMessage(myMsg);
}
Hello Everyone,

We have a Force.com site that will be publicly available (no login needed). I am looking for information on what cookies Salesforce.com will be setting, in order to understand whether we need to put up a notice in order to comply with the laws in the EU requiring consent before using cookies. So far I see that Salesforce sets a BrowserID cookie. Is it documented anywhere what other cookies are set for Force.com sites (publicly available) and what they are used for?

So far it looks ilke there are exceptions where certain kinds of cookies don't require notification. (This info is from Cookiepedia: http://cookiepedia.co.uk/cookie-law-compliance-guidance, and http://ec.europa.eu/justice/data-protection/article-29/documentation/opinion-recommendation/files/2012/wp194_en.pdf)

CRITERION A: the cookie is used “for the sole purpose of carrying out the transmission of a communication over an electronic communications network”.
CRITERION B: the cookie is “strictly necessary in order for the provider of an information society service explicitly requested by the subscriber or user to provide the service”.

There doesn't seem to be much on the web or in the documentation on this specific topic.

Thanks,
JP
Can anyone tell what is the relationship between all standard slaesforce objects and give me the uml diagram for those objects

Thanks in advance,
Karthick
I have a simple VF page with an iframe embed, which I display as a Visualforce element on a record layout. I was wondering if it was possible to conditionally display the iframe based on whether the value of a text field on the record is NULL or not.

If NULL then no iFrame (or even a different iframe or static content)
If Not NULL then display the iframe.
Hi All,

am creating one Employee class in Developer console. while saving the Employee class, i got an exception like this " Failed to create createContainerMember for containerId=undefined: null is not a valid containerId. "

Please help me anyone..

thank you...
Hi 

  Some buddy help me how many types controllers in salesforce and what are the uses of them with example
 
 
<apex:pageblocktable value="{!list}" var="item">
    <apex:column>RECORDID
      <apex:outputLink value="{!item.Name}">{!item.Name}</apex:outputLink>
    </apex:column>       
</apex:pageblocktable>
 
public with sharing class customClass{

public List<StandardClass> list{get;set;}

 public customClass(){
        
        list = [Select Name, RECORDID
                     From ProfileSkill];
        
        }
}

I want to have a link which will redirect user to record type.

I do not know, what paramenter i can use for  RECORDID
  • March 08, 2015
  • Like
  • 0
hi
i want autocomplete functionality on lookup field.
So i wrote jquery for autocomplete.
when i tried to use in apex:inputField it is not working.
 In apex:inputText it is working.But the problem is it is displaying id of the record and not the name.
When using in apex:inputField the lookup is showing like this..
[User-added image]
Code Snipprt:
<script type="text/javascript">  
        var jq = jQuery.noConflict();   
        var apexACList =[];               
        <apex:repeat value="{!listAC}" var="ACList">          
            apexACList.push('{!ACList.WS_User__r.name}');         
        </apex:repeat> 
        jq(document).ready(function(){ 
            jq(".acautocomplete").autocomplete({
                source : apexACList 
            }); 
            
        }); 
<apex:inputField value="{!relList.Person__c}" styleClass="acautocomplete"   />
Can anybody help me on this..
I have cretaed one outbound change set it contain one trigger with 98% code coverage , but when i am uploading this change set in my production it shown fatal error at the validating time, trigger xxx having 0% code coverage . 

One more thing :- it also showing one another trigger code coverage error wihch trigger i have already deleted from my sandbox .

How can i overcome from these issue... ?
Hi,

I have written a below trigger and its test class.
For test class I am getting 34% code coverage.
How to write test class for this to get complete code coverage.
trigger UpdateRecTrigger on Account (before update) {

    for (Account a : Trigger.new) {
        
        RecordType rt = [SELECT Id, Name FROM RecordType WHERE SobjectType='Account' AND Name ='Rec1'];
        if (Trigger.isBefore) {
        if(a.RecordTypeId == rt.Id && c.Number__c != null){
            
            Id aId = a.Id;
            a.Count__c += 1;

            if(a.Count__c > 1){

                if(!a.Flag__c){
                    
                    if(!System.isFuture()){
                    AccountClass.updateRec(aId);
                    } else {
                    AccountClass.updateRecName(aId);
                    }

                } else {
                  
                   a.Flag__c = false;
                }

            }
       
        }
      }
    }

}


 
  • February 04, 2015
  • Like
  • 0
Hi SFDC guru,

We implemented our one specific site using web-to-lead function. After that, spam Lead Populated into our SFDC prospects with web-to-lead coming from somewhere maybe Italy or something which is not familliar for us. Can we avoid this kind of spam problem?

Regards,
Hi, 

  How to add multiple IF condition  Please suggest am getting error
 
IF
(
ISPICKVAL(StageName,'Closed Won') ||
ISPICKVAL(StageName,'Closed Other') ||
ISPICKVAL(StageName,'Closed Direct') ||
ISPICKVAL(StageName,'Closed VAR') ||
ISPICKVAL(StageName,'Closed Partial') ||
ISPICKVAL(StageName,'Closed Received') ||
ISPICKVAL(StageName,'Closed End User to VAR') ||
ISPICKVAL(StageName,'Closed VAR to Disty') ||
ISPICKVAL(StageName,'Closed Disty to Meru') 
)
IF( NSP_Not_Appoved_Count__c  > 0 )

 
I have created the custom object Project and I would like to change the standard layout and replacing by a visualforce page displaying data with
different subtabs for each project record. To do this I used an existing template posted in a forum that works for a STANDARD obect account and that displays subtabs for each account records, using a view overriding standard layout and using a visualforce layout (https://www.salesforce.com/us/developer/docs/pages/Content/pages_quick_start_tabs.htm)

the begining of code for the visualforce page "tabbedAccount" is as follow :
<apex:page standardController="Account" showHeader="true"   
    tabStyle="account" >
<style>
.activeTab {background-color: #236FBD; color:white; background-image:none}
.inactiveTab { background-color: lightgrey; color:black; background-image:none}
</style>
.......
</apex:page>

I created a new visualforce page named "TabbedProject" and replaced "Account" by "Project__c" as follow :

<apex:page standardController="Project__c" showHeader="true"   
    tabStyle="Project__c" >
.......
</apex:page>

When saving the page i have an error message displaying the following error :
Unknown property 'Project__cStandardController.account'

Moreover when editing the view in the Project object and trying to override existing layout, i cannot select any visualforce page (emplty list)


I would be very grateful if someone could help me on this topic !
Thank You !

 
How do client enter into our system after deployment ?
Hi,

I have written a controller fro my visualforce page. The vf page is created for when an account is selected using the checkbox, an opportunity should be created with the same name as the account. I have written a controller for this purpose. But I get only 69% code coverage for this controller. Can anyone suggest a solution?

My Controller code is:

/*************************************************************************************************
Created By: Anju Alexander
Created Date: 19/8/14
Version: 31.0
Description: Controller class to create opputunity with the same name as the account selected
**************************************************************************************************/


public class opp{
public boolean s;
public List<AccountWrapper> wrapAccountList {get; set;}
/*************************************************************
List that contains all the accounts
**************************************************************/

List<Account> Aaccount=[select name,phone,industry from Account];
public AccountWrapper accountWrapper1=new AccountWrapper();

/*************************************************************
Method to set the instances of the wrapper class'AccountWrapper'
**************************************************************/
public opp()
{
            wrapAccountList = new List<AccountWrapper>();
            for(Account a: Aaccount)
            {
            wrapAccountList.add(new AccountWrapper(a,s));
            }
       
}
/*************************************************************
Method to create opportunity when the accounts are selected
**************************************************************/


public pageReference createOpp()
{

        for(AccountWrapper wrapObj : wrapAccountList) {
            if(wrapObj.selected == true)
            {
                Opportunity opportunity1= new Opportunity();
                String accountName=wrapObj.AccountInstance.name;
                opportunity1.name=accountName;
                opportunity1.closedate=date.today();
                opportunity1.stagename='Prospecting';
                insert opportunity1;
            }
        }
PageReference pg= new PageReference('https://ap1.salesforce.com/home/home.jsp');
pg.setRedirect(true);
return pg;
}
/*************************************************************
Wrapper class to contain Account Instance and selected value
**************************************************************/
public class AccountWrapper
{
        public Boolean selected{get;set;}
        public Account AccountInstance{get;set;}
        public AccountWrapper(Account a,Boolean s)
        {
        AccountInstance=a;
        selected=false;
        }
          public AccountWrapper()
        {
       
        }
}
}
Hi All,

I am trying to import some account record to load the data in SFDC from the CLI, but i am getting below error. can some one pls help on this...

the file i am placing is : -
Name,AccountNumber,SLA__c,SLASerialNumber__c
Rahu,"123456","Gold",bb

Error::_-


com.salesforce.dataloader.exception.DataAccessObjectException: com.sforce.async.CSVReader$CSVParseException: Found unescaped quote. A value with quote should be within a quote
        at com.salesforce.dataloader.dao.csv.CSVFileReader.readRow(CSVFileReader.java:174)
        at com.salesforce.dataloader.util.DAORowUtil.calculateTotalRows(DAORowUtil.java:67)
        at com.salesforce.dataloader.dao.csv.CSVFileReader.getTotalRows(CSVFileReader.java:218)
        at com.salesforce.dataloader.action.AbstractLoadAction.initOperation(AbstractLoadAction.java:100)
        at com.salesforce.dataloader.action.AbstractAction.execute(AbstractAction.java:122)
        at com.salesforce.dataloader.controller.Controller.executeAction(Controller.java:121)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:149)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:100)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.java:253)
Caused by: com.sforce.async.CSVReader$CSVParseException: Found unescaped quote. A value with quote should be within a quote
        at com.sforce.async.CSVReader.nextRecordLocal(CSVReader.java:209)
        at com.sforce.async.CSVReader.nextRecord(CSVReader.java:142)
        at com.salesforce.dataloader.dao.csv.CSVFileReader.readRow(CSVFileReader.java:172)


what exactly i am missing... Please help ..
I can no longer login to two sandboxes (Full-copy/developer) after refreshing them from a production environment. I can login to each site through a browser without any issue. I can also login through the AJAX Toolkit Shell without any issues. the I tried resetting my password in one of them and still no luck. No combination of password/security token works either. The same is true for the Data Loader. 
Hi i am having dynamic search page.For pagination i am using set controller.

But unable to get it complied.Pls help..

My apex class:

Public class  searchpageController2 {
   Public string inputNametext{get;set;}
   Public string inputAccounttext{get;set;}
   Public String soql{get;set;}
   Public List<Customobejct__c> accList{get;set;}

   public ApexPages.StandardSetController setCon {
     get{
       if(setCon == null){
        string soql='';
        size = 100;
        }
        soql = 'select Name,Account__c,Status_Picklist__c,Createddate,Walmart_MultiStore_Contact__c,View_FAR_PDF__c,Contact__c,Status__c,Closed_Date__c from Customobject__c where Walmart_MultiStore_Contact__r.Name =\''+Usernames+'\' or contact__r.Name =\''+Usernames+'\'';                             
      }
        setCon = new ApexPages.StandardSetController(Database.getQueryLocator(soql));
        setCon.setPageSize(size);
        noOfRecords = setCon.getResultSize();
      }
        return setCon;
        }
        set;
    }
    
    Public List<Customobejct__c> getAccounts(){
        List<Customobejct__c> accList = new List<Customobject__c>();
        for(Custom object__c a : (List<Customobject__c>)setCon.getRecords())
            accList.add(a);
        return accList;
    }
    
    
     public pageReference refresh() {
     setCon = null;
     getAccounts();
     setCon.setPageNumber(1);
     return null;
    }
    
    public Boolean hasNext {
        get {
            return setCon.getHasNext();
        }
        set;
    }
    public Boolean hasPrevious {
        get {
            return setCon.getHasPrevious();
        }
        set;
    }
 
    public Integer pageNumber {
        get {
            return setCon.getPageNumber();
        }
        set;
    }
 
    public void first() {
        setCon.first();
    }
 
    public void last() {
        setCon.last();
    }
 
    public void previous() {
        setCon.previous();
    }
 
    public void next() {
        setCon.next();
    }
   
   Public void searchRecords(){
     soql = 'select Name,Account__c,Status_Picklist__c,Walmart_MultiStore_Contact__c,Contact__c from Customobject__c where ( Walmart_MultiStore_Contact__r.Name =\''+Usernames+'\' Or Contact__r.Name= \''+Usernames+'\')';
    }
    if(string.isnotBlank(inputAccounttext)){
    soql += ' and Account__r.Name like '+'\''+'%'+inputaccounttext+'%'+'\'';
    system.debug('*******soql'+soql);    
    }
    if (string.isnotBlank(inputnametext)){
    soql += ' and Name like '+'\''+'%'+inputnametext+'%'+'\'';
       }
    setcon=new ApexPages.StandardSetController(Database.getQueryLocator(soql));
    } 

}

please help..
Hi,

How can I automatically  upload pdf files to salesforce from an Ubunto 14.04 operating system on daily bases?

I appreciate your help, thanks
Hi All,


When will i choose Controller and Extension controoler can you give me any explanation with example???

I am not an advance developer by any definition, and I have been trying to figure this out pouring over other blogs and forums for days now.  I finally give up and am hoping someone can help me.

I have a flow that I am calling and passing variables to via a custom button (Visualforce Page) on the Account detail page.  The page setting the flow finish page and redirecting the user to the record created by the flow by using a controller extension.  

Everything is working as it should, but I won't be able to move any of this to production until I can figure out a way to get test coverage of the controller extension.

This is the class:
public class takeMetoContractController {
public takeMetoContractController(ApexPages.StandardController controller) {
}

public Flow.Interview.Buan_Test rFlow {get; set;} 
   

    public String getcontractID() {

        if (rFlow==null) return '';

        else return rFlow.varMcContractID;

    }


    public PageReference getFinishPage(){

        PageReference p = new PageReference('/' + getcontractID() );

        p.setRedirect(true);

        return p;
    }
}


It is being used in this page:
<apex:page sidebar="false"  standardController="Account" extensions="takeMetoContractController">

<flow:interview name="Buan_Test" interview="{!rFlow}" finishLocation="{!FinishPage}">
<apex:param name="Accountsfid" value="{!account.Id}"/>
<apex:param name="AccountSFName" value="{!account.Name}"/>
</flow:interview>
</apex:page>

 
I've got no idea how to get this test class to actually call the controller extension appropriately, but I have managed to get a test class to save.  Here is what I have (no making fun, please):

@isTest
public class testtakeMetoContractController {

public static void testtakeMetoContractController() {

    //Insert Account
    Account acct = new Account(Name='TestClassAccount');
    insert acct;
   
    // Retrieve the new Account
    acct = [SELECT Id,Name FROM Account WHERE Id =:acct.Id];
   
    //Insert Contact
    Contact c = new Contact (Account=acct, FirstName='Test', LastName='Contact');
    insert c;
   
    //Insert McContract
    McContracts__c mc = new McContracts__c (Account_Name__c=acct.Id, Contact__c=c.Id);
    insert mc;
   
    //Retrieve the new Contract
    mc = [Select Id, Name FROM McContracts__c WHERE Id =:mc.Id];
   
    String mcID = mc.Id;
    System.debug(mcID);

    ApexPages.StandardController sc = new ApexPages.StandardController(acct);
    takeMetoContractController ec = new takeMetoContractController(sc);
   
    PageReference FlowContractPageRef = Page.FlowContract;
    Test.setCurrentPage(FlowContractPageRef);

    string vaMcContractId=mcId;
    ec.getFinishPage();
    ec.getContractId();
   
    System.test.startTest();
    System.debug('ContractId - Add ContractId');
    System.debug('ContractId - Save');
    System.test.stopTest();
     
}
}


It is clearly a mess, and I really have no idea what I am doing, so if anyone has a solution to this or feels like being a good samaritan and wants to help, it would be greatly appreciated.
I'm trying to test the connection with the Force.com Migration Tool and ANT to our salesforce org and while on the company network, I'm getting the below errors.  If I'm off of the company network, it will work, so it has to be the proxy.  I can't figure out how to get the proxy settings to work.  I've entered them in every place I've found mentioned out on the internet but nothing is working.  Anyone have any ideas?

Failed to login: Failed to send request to https://test.salesforce.com/services/Soap/u/31.0
at com.salesforce.ant.SFDCAntTask.doLogin(SFDCAntTask.java:218)
at com.salesforce.ant.SFDCAntTask.getMetadataConnection(SFDCAntTask.java:248)
at com.salesforce.ant.SFDCMDAPIAntTaskRunner.runTask(SFDCMDAPIAntTaskRunner.java:20)
at com.salesforce.ant.RetrieveTask.execute(RetrieveTask.java:110)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: com.sforce.ws.ConnectionException: Failed to send request to https://test.salesforce.com/services/Soap/u/31.0
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:120)
at com.sforce.soap.partner.PartnerConnection.login(PartnerConnection.java:1652)
at com.salesforce.ant.SFDCAntTask.doLogin(SFDCAntTask.java:212)
... 20 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:975)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1091)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
at com.sforce.ws.transport.JdkHttpTransport.connectRaw(JdkHttpTransport.java:133)
at com.sforce.ws.transport.JdkHttpTransport.connectLocal(JdkHttpTransport.java:97)
at com.sforce.ws.transport.JdkHttpTransport.connectLocal(JdkHttpTransport.java:92)
at com.sforce.ws.transport.JdkHttpTransport.connect(JdkHttpTransport.java:88)
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:94)
... 22 more

Total time: 3 seconds
# On branch master
nothing to commit (working directory clean)
Everything up-to-date
Branch master set up to track remote branch master from origin.
Finished: SUCCESS
Hi,
     I am eagerly waiting for 64 bit iOS comaptible salesforce sdk. Please let me know about it.

-Loganathan

Hello, 



I was trying to Parse an XML into our Salesforce Dev org and I was getting this error. Kindly suggest what could be the problem. 

Unable to find schema for element; {http://www.w3.org/2001/XMLSchema}schema

Thanks,
Shri

To participate in the final pitch for the summer of hacks, you need to register your team on challenge post

http://sohlondon.challengepost.com/

You also need to email your github accout name (or all your teams Github account names) to summerofhacks@bemyapp.com.  If you do not have a Github account, you can create one for free at https://github.com/

Installing Git

You can install Git from http://git-scm.com/ or if you prefer a GUI tool you can use Github for windows (https://windows.github.com/) / mac (https://mac.github.com/) or you can use MavensMate.com or Force.com IDE.


Getting your app data out of your Salesforce org (metadata)

As part of the challenge you need to regularly submit your code and all the metadata (metadata is generated when you click to create objects and other things in the Org).

To get your metadata, you can download it with tools like MavensMate.com or the Force.com IDE.  If you are not using either of those you can the Force.com CLI (command line interface).  For details of getting your metadata with the Force.com CLI, follow this detailed guide (http://www.scribd.com/doc/233908496/Force-com-CLI-Submitting-Metadata).

Completing the Git Challege

Once you have the metadata and code in the same folder then you are ready for your git challenge.  First of all, add the private repository given to you by BeMyApp and pull down the contents of that repository (if using a GUI tool you do the same actions below, these are the command line actions).
 
git clone <address given to you by bemyapp> path/to/your/metadata-and-code>
git pull origin master

Now you are ready to add all your App code and metadata.  The easiest way is to use the fullstop to say add everything

git add .

You can check you have added everything using the git status command.  If there are untracked files, then add those files using their filename

Now create a commit of everything you have added

git commit -m "git challenge X"

Then you send all the code & metadata in that commit to the repository that BeMyApp gave to you.

git push origin master

Now get on with bulding your app.

For the next git challenge it is even easier

git add .
git commit -m "
git challenge X"
git push origin master


If you have any questions then ask the evangelist - John & Christophe.  There is also a more detailed Git workshop at http://jr0cket.co.uk/git-workshop/

Thank you
I need to connect an external Rest API through basic authentication. (I cannot use OAuth) . The main API is not ready from client side. We need to show a demo to show connectivity to Rest API via basic authentication. I have the code to connect but dont have any API to test. so I need any free API (with user name & passowrd) to test basic authentication
After adding error checking to my Apex classes (try..catch blocks), my apex unit tests are now less than 100%.  Apparently I'm not testing for the Catch part of my code.  I can't for the life of me figure out how to test for this.  Help!

Thanks.

My catch blocks are all like this:

Catch (Exception ex) {
     String strMsg = 'An error occurred: ' + ex;
        ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.ERROR, strMsg);
        ApexPages.addMessage(myMsg);
}