• Chris Brady 8
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 6
    Replies
Hello,

I am new to APEX so thanks in advance for helping a newbie out.

I need an APEX to run at midnight (I will use the SF scheduler) to update a custom field (whatever__c) with a number (42). My end goal is to have this field update (whatever__c = 42) will kickoff a process I created in process builder. 

Thanks again everyone 
Hey yall,

I have a page below but am getting an error on line 1. I can't seem to get the standard.Controller to look a the leads object. 
I'm REALLY new to this so thanks to everyone who will help out a NOOB :)
<apex:page standardControler="Lead">
    </apex:form>

    <apex:pageBlock title="Discovery Questionnaire">
        <apex:pageBlockSection >
            <apex:pageBlockSection columns="1">
                What type of pharmacy are you?
                <apex:inputField value="{! Lead.Pharmacy_Type__c }"/>
                What products are you dispensing the most?
    <apex:inputField value="{! Lead.What_products_do_you_dispense_most__c }"/>  
                What doctors are yall networking with?
    <apex:inputField value="{! Lead.What_Doctors_do_you_Network_with__c }"/>
                What insurance do you see the most?
    <apex:inputField value="{! Lead.What_Insurance_do_you__c }"/> 
                How many scripts do yall fill in a month?
    <apex:inputField value="{! Lead.Number_of_Scripts_per_Month__c }"/>
                Are you familiar with Quasi Specialty Products? Such as Doxepin and Fenoprofen?
    <apex:inputField value="{! Lead.Dispenses_High_AWP_Products__c }"/>            
                Who are some of your other secondary wholesalers?
    <apex:inputField value="{! Lead.Secondary_Suppliers__c }"/> 
</apex:pageBlockSection>
        </apex:pageBlockSection>
        <apex:pageBlockButtons >
            <apex:commandButton action="{! save }" value="Save" />        
        </apex:pageBlockButtons>
    </apex:pageBlock>
    
    </apex:form>
</apex:page>

THansk 
Hello,

I am new to APEX so thanks in advance for helping a newbie out.

I need an APEX to run at midnight (I will use the SF scheduler) to update a custom field (whatever__c) with a number (42). My end goal is to have this field update (whatever__c = 42) will kickoff a process I created in process builder. 

Thanks again everyone 
Hey yall,

I have a page below but am getting an error on line 1. I can't seem to get the standard.Controller to look a the leads object. 
I'm REALLY new to this so thanks to everyone who will help out a NOOB :)
<apex:page standardControler="Lead">
    </apex:form>

    <apex:pageBlock title="Discovery Questionnaire">
        <apex:pageBlockSection >
            <apex:pageBlockSection columns="1">
                What type of pharmacy are you?
                <apex:inputField value="{! Lead.Pharmacy_Type__c }"/>
                What products are you dispensing the most?
    <apex:inputField value="{! Lead.What_products_do_you_dispense_most__c }"/>  
                What doctors are yall networking with?
    <apex:inputField value="{! Lead.What_Doctors_do_you_Network_with__c }"/>
                What insurance do you see the most?
    <apex:inputField value="{! Lead.What_Insurance_do_you__c }"/> 
                How many scripts do yall fill in a month?
    <apex:inputField value="{! Lead.Number_of_Scripts_per_Month__c }"/>
                Are you familiar with Quasi Specialty Products? Such as Doxepin and Fenoprofen?
    <apex:inputField value="{! Lead.Dispenses_High_AWP_Products__c }"/>            
                Who are some of your other secondary wholesalers?
    <apex:inputField value="{! Lead.Secondary_Suppliers__c }"/> 
</apex:pageBlockSection>
        </apex:pageBlockSection>
        <apex:pageBlockButtons >
            <apex:commandButton action="{! save }" value="Save" />        
        </apex:pageBlockButtons>
    </apex:pageBlock>
    
    </apex:form>
</apex:page>

THansk