1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Role of Javascript in Apex Programming

Discussion in 'Programming' started by kellyrose, Dec 29, 2019.

  1. #1
    I am new to salesforce and apex which is a core back end programming in this world class crm. Our company will be executing this CRM stuff soon. So I was confused about following queries, it would be great if anyone of you answer this:
    1. Is it possible to run the Java code inside Salesforce (https://www.crsinfosolutions.com/salesforce-training-online/) , instead of Apex?

    2. Is it possible to have packages in the Apex code so that I could enable the like wide classed together?

    3. Is there any easy way to debug an Apex application on my local system? At present I am trying to put system.debug and execute it with Salesforce.

    4. Can I configure the environment variable in the salesforce and use it in the Apex?

    SEMrush
     
    kellyrose, Dec 29, 2019 IP
    SEMrush
  2. Harry H

    Harry H Greenhorn

    Messages:
    27
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    23
    #2
    Javascript isn't Java. Java is not Apex either. They all look sort of similar. Apex is the only code that runs on the salesforce servers, it's specifically designed to look like java for a reduced learning curve but not to overload their servers with complexity and threading etc. You can't run Apex code locally. You can however debug it on their servers:

    https://help.salesforce.com/articleView?id=debugging_your_code.htm&type=5
     
    Harry H, Jan 9, 2020 IP
    JEET likes this.