• motely
  • NEWBIE
  • 25 Points
  • Member since 2009

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 4
    Replies

 

 

One of my marketing users would like a trigger set up for when she sends out a specific email using a template.  Is this possible?  I apologize if this is a repeat question. I tried searching on the topic, but all I found where questions about creating triggers that send email.

 

Here is our basic scenario.  SF User sends an email to a SF contact, inviting them to use our e-commerce site.  When the email is sent, a trigger should fire that assigns a contact role of 'E-Commerce Admin'  to the contact for their account.

 

Does anyone know if I can do that?  Any help would be greatly appreciated.

 

Thanks!

David

 

 

  • February 22, 2011
  • Like
  • 0

Hi,

 

I have been reading through lots of posts, but I cannot figure out the solution to my problem.

 

I am trying to create a VF page from an account that lists all contacts associated with the account.  The user should be able to select a contact and the contact is displayed.

 

I am able to display all the contacts, but not select one.

 

VF Page:

 

 

<apex:page controller="newOpportunityController2" tabStyle="Opportunity">
  <apex:sectionHeader title="New Customer Quick Quote" subtitle="Step 1 of 3"/>
    <apex:form >
      <apex:pageBlock title="Customer Information" mode="edit">
      <apex:pageBlockSection title="Account Information">
                        
        <!-- Within a pageBlockSection, inputFields always display with their
             corresponding output label. -->  
              You are viewing the {!account.name} account. <p/>
      </apex:pageBlockSection>
      <apex:pageBlockSection title="Contacts">
         <apex:selectList value="{!selectedContact}" multiselect="true">
            <apex:selectOptions value="{!contact}"/>
         </apex:selectList>
      </apex:pageBlockSection>
    </apex:pageBlock>
  </apex:form>
  
    <apex:outputPanel id="out">
        <apex:actionstatus id="status" startText="testing...">
            <apex:facet name="stop">
                <apex:outputPanel>
                    <p>You have selected:</p>
                    <apex:dataList value="{!selectedContact}" var="c">a:{!c}</apex:dataList>
                </apex:outputPanel>
            </apex:facet>
        </apex:actionstatus>
    </apex:outputPanel>
    
</apex:page>

 

 

My Controller:

 

 

public class newOpportunityController {

   Account account;
   Contact contact;

   public Account getAccount() {
        if(account == null) account = new Account();
      return account;

   } 
    public String selectedContact {get;set;}
    
    public List<SelectOption> contactList;
    
    public List<SelectOption> getContact () {
        if (contactList == null) {
            List<Contact> contactee = [select id, name, contact.accountid from Contact where contact.accountid = :ApexPages.currentPage().getParameters().get('id')];
            
        contactList = new List<SelectOption>();
        for (Contact c : contactee) {
            contactList.add(new SelectOption( c.id, c.name ));
        }
    }
    return contactList;
    }
 
//    String[] selectedContact = new String[]{};
 
     public void setContact(String[] selectedContact) {
            this.selectedContact = selectedContact;
        }

     public String[] getSelectedContact() {
            return selectedContact;
        }
            

   
   
   

}

 

 

I am pretty sure my problem is with my gets and set, but I can't figure it out and am getting really confused and frustrated!

 

Thanks in advance for any help.

 

David

  • August 09, 2010
  • Like
  • 0

I am trying to use the command line interface for Apex Data Loader 15.0.  I am receiving the above error.

 

Here is my process-conf.xml file

 

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="csvAccountExtractProcess"
   class="com.salesforce.lexiloader.process.ProcessRunner"
      singleton="false">
   <description>csvAccountExtract job gets account info from salesforce and saves info into a       CSV file."</description>
      <property name="name" value="csvAccountExtract"/>
      <property name="configOverrideMap">
      <map>
         <entry key="sfdc.debugMessages" value="false"/>
         <entry key="sfdc.endpoint" value="https://www.salesforce.com"/>
         <entry key="sfdc.username" value="dmote@neapco.com"/>
                <!-- password below has been encrypted using key file, therefore it will not work without the key setting: process.encrypt -->
         <entry key="sfdc.password" value="7e2dd57498ca6eca83040dbfedaa7900904863e5500fd6ab3aace7c94944482a97fa41fee9313237"/>
         <entry key="process.encryptionKeyFile" value="C:\key.txt"/>
         <entry key="sfdc.timeoutSecs" value="600"/>
         <entry key="sfdc.loadBatchSize" value="200"/>
         <entry key="sfdc.entity" value="Account"/>
         <entry key="sfdc.extractionRequestSize" value="500"/>
         <entry key="sfdc.extractionSOQL" value="Select Id, Name, ParentId, AccountNumber, AnnualRevenue, CHESS_Id__c, CHESS_PARENT__c FROM Account"/>
         <entry key="process.operation" value="extract"/>
         <entry key="dataAccess.type" value="csvWrite"/>
         <entry key="dataAccess.name" value="C:\extract.csv"/>
            </map>
        </property>
    </bean>
</beans>


 

Am I missing something?

 

If you need more info, let me know.  

 

Thanks,

David

Hi,

 

I am relatively new to salesforce.  Currently, I am using the data loader manually to upsert account information.  I have created two external Id fields for Accounts:  Chess_ID and Chess_Parent_ID.  I needed to delete all the accounts and start over.  When I upsert data, I am selecting Chess_ID to match on account and Chess_Parent_ID to match on parent.  I thought this would allow me to automatically match parent accounts with their children, but this is not what is happening. 

 

I am almost positive this is how I did it the first time andit worked.  However, i can't duplicate what I did.

 

Thanks in advance for any assistance.

David

  • March 17, 2009
  • Like
  • 0

Can anyone tell me whether it is possible for me to create a custom ID field for a notes record so that I can link it to the Custom ID field that I created for the accounts?  I want to upload notes using the data loader and I don't want to have to download the saleforce ids and match them to my custom id for the accounts. 

 

I cannot find an area in set up to customize notes.  Maybe I am missing it.

 

Thanks,

David

  • March 05, 2009
  • Like
  • 0

 

 

One of my marketing users would like a trigger set up for when she sends out a specific email using a template.  Is this possible?  I apologize if this is a repeat question. I tried searching on the topic, but all I found where questions about creating triggers that send email.

 

Here is our basic scenario.  SF User sends an email to a SF contact, inviting them to use our e-commerce site.  When the email is sent, a trigger should fire that assigns a contact role of 'E-Commerce Admin'  to the contact for their account.

 

Does anyone know if I can do that?  Any help would be greatly appreciated.

 

Thanks!

David

 

 

  • February 22, 2011
  • Like
  • 0

I am trying to use the command line interface for Apex Data Loader 15.0.  I am receiving the above error.

 

Here is my process-conf.xml file

 

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="csvAccountExtractProcess"
   class="com.salesforce.lexiloader.process.ProcessRunner"
      singleton="false">
   <description>csvAccountExtract job gets account info from salesforce and saves info into a       CSV file."</description>
      <property name="name" value="csvAccountExtract"/>
      <property name="configOverrideMap">
      <map>
         <entry key="sfdc.debugMessages" value="false"/>
         <entry key="sfdc.endpoint" value="https://www.salesforce.com"/>
         <entry key="sfdc.username" value="dmote@neapco.com"/>
                <!-- password below has been encrypted using key file, therefore it will not work without the key setting: process.encrypt -->
         <entry key="sfdc.password" value="7e2dd57498ca6eca83040dbfedaa7900904863e5500fd6ab3aace7c94944482a97fa41fee9313237"/>
         <entry key="process.encryptionKeyFile" value="C:\key.txt"/>
         <entry key="sfdc.timeoutSecs" value="600"/>
         <entry key="sfdc.loadBatchSize" value="200"/>
         <entry key="sfdc.entity" value="Account"/>
         <entry key="sfdc.extractionRequestSize" value="500"/>
         <entry key="sfdc.extractionSOQL" value="Select Id, Name, ParentId, AccountNumber, AnnualRevenue, CHESS_Id__c, CHESS_PARENT__c FROM Account"/>
         <entry key="process.operation" value="extract"/>
         <entry key="dataAccess.type" value="csvWrite"/>
         <entry key="dataAccess.name" value="C:\extract.csv"/>
            </map>
        </property>
    </bean>
</beans>


 

Am I missing something?

 

If you need more info, let me know.  

 

Thanks,

David

Hi,

 

I am relatively new to salesforce.  Currently, I am using the data loader manually to upsert account information.  I have created two external Id fields for Accounts:  Chess_ID and Chess_Parent_ID.  I needed to delete all the accounts and start over.  When I upsert data, I am selecting Chess_ID to match on account and Chess_Parent_ID to match on parent.  I thought this would allow me to automatically match parent accounts with their children, but this is not what is happening. 

 

I am almost positive this is how I did it the first time andit worked.  However, i can't duplicate what I did.

 

Thanks in advance for any assistance.

David

  • March 17, 2009
  • Like
  • 0

Can anyone tell me whether it is possible for me to create a custom ID field for a notes record so that I can link it to the Custom ID field that I created for the accounts?  I want to upload notes using the data loader and I don't want to have to download the saleforce ids and match them to my custom id for the accounts. 

 

I cannot find an area in set up to customize notes.  Maybe I am missing it.

 

Thanks,

David

  • March 05, 2009
  • Like
  • 0