• hoagieryder
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 17
    Questions
  • 18
    Replies

I am trying to insert the Opportunity Owner field in a visualforce page that I have created that is basically a replica of our standard Opportunities Details Page. Right now it is not showing up, what am I doing wrong? 

 

<apex:page standardcontroller="Opportunity" extensions="NewOpportunityCT">
	<apex:sectionHeader title="New Opportunity"/>
	<apex:form >
		<apex:pageBlock title="New Opportunity" mode="edit">
			<apex:pageBlockButtons title="New Opportunity">
				<apex:commandButton value="Save" action="{!save}"/>
				<apex:commandButton value="Cancel" action="{!cancel}"/> 
			</apex:pageBlockButtons>
			<apex:pageBlockSection title="Opportunity Information">
					 <apex:outputField value="{!opportunity.OwnerId}"/>
					 <apex:inputField value="{!opportunity.CloseDate}"/>	 
					 <apex:inputField value="{!opportunity.stagename}"/>
					 <apex:inputField value="{!opportunity.accountid}"/>
					 <apex:inputField value="{!opportunity.probability}"/>
					 <apex:inputField value="{!opportunity.type}"/>
					 <apex:inputField value="{!opportunity.amount}"/>
					 <apex:inputField value="{!opportunity.id}"/>
			</apex:pageBlockSection>
			<apex:pageBlockSection title="Additional Information" columns="1">
					 <apex:inputField value="{!opportunity.leadsource}"/>
					 <apex:inputField value="{!opportunity.nextstep}"/>
			</apex:pageBlockSection>
			<apex:pageBlockSection title="Description Information" columns="1">
					 <apex:inputField value="{!opportunity.description}"/>
					 <apex:inputField value="{!opportunity.Competitors__c}"/>
			</apex:pageBlockSection>
		</apex:pageBlock>
	</apex:form>
</apex:page>

 

 

I am having trouble writing a trigger based on the notes and attachments trigger within a custom object. I can find the standard Attachment object, just not the one in my custom object. Any ideas?

Every account has a field called Analyst, which is the name of the analyst assigned to the account. When an analyst logs into salesforce I want there to be links on the side bar of the homepage to all the accounts the Analyst is assigned to (at the most there will be 15 accounts). What is the best way to go about doing this?

I am new to this so I assume this is a pretty simple question. I am trying to develop an e-mail alert that is sent when an Attachment is added to an Account. I am trying to get the Account name in the email. When I receive the email the subject just says: "Attachment Added: name". Attachment and Account are related through parentid, but I am having trouble returning account fields on an Attachment trigger. What am I doing wrong?  

 

 

trigger Send_email on Attachment (after insert) {
Attachment attach = trigger.new[0];
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
String[] toAddresses = new String[] {'ja@example.com'};
mail.setToAddresses(toAddresses);
mail.setReplyTo('support@example.com');
mail.setSenderDisplayName('Salesforce Support');
mail.setSubject('Attachment Added : ' + account.name);
mail.setPlainTextBody('work please');
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });

}

I have made a custom link to a visual force page that i want to take the form of a custom object that I created. The custom object has a master relationship with accounts. When I click on the link within accounts, I can only access the account and pull up the related list of the custom object. I want to be able to edit or add a record to the object. What am I missing? Here is what I have so far, as you can see I am new to this!

 

<apex:page standardController="Account">
<apex:form >
<apex:pageBlock title="Par Reports">
<apex:pageblocktable value="{!account.par_reports__r}" var="p">
<apex:column value="{!p.As_of_Date__c}"/>
</apex:pageblocktable>
<apex:pageblockbuttons >
<apex:commandButton value="Edit" action="{!Edit}"/>
</apex:pageBlockButtons>
</apex:pageblock>
</apex:form>
 </apex:page>

I am trying to add a survey that is attached to Accounts. Ideally what I wanted to do is have a button on the Account page, that when clicked will open up either a custom object or Visualforce page that has a brief survey regarding that Account (fields: Date, Account Rating). There would also be a submit button, that when clicked would save the account id, date,account rating to the database. Can this be done with Salesforce, and if so what route should I go in, Custom Object of Visualforce Page?

I am looking to send an e-mail alert but have it take the form of an appointment within Groupwise. Is there anyway to send e-mails within salesforce and have them appear as Appointments. I have found documentation on how to do it with Outlook, but nothing else.

I have a checkbox in Accounts that is called client. I want all child account client  = True when any one of those accounts has client = True.

 

For Instance:

 

Account A (parent account 1)

Account B (parent account 1)

Account C (parent account 1)

Account D(parent account 1)

 

If Client = True in Account A, I want Client to be set to True in Account B,C and D. Is this possible?

I first imported my parent accounts, then exported them to get there Record ID's. I did a vlookup in Excel and put the corresponding Record ID for the parent account in the Parent Account column of my child accounts. What reads in is the Record ID in the Parent Account Column. I was under the impression that Salesforce would convert the record ID's in the Parent Account column and return the corresponding Account Name. What am I doing wrong?

I was wondering if there was a way to somehow link a custum field in accounts to a field in another account. I have two record types, Banks and Holding Companies. Every bank has a Holding Company # field which corresponds to a Holding Company Account. I would like to be able to click on holding company # in bank and be brought to the corresponding Holding Companies Account. I have figured out how to do this linking to a custom object, or by linking account names, but not by a custom field. Any ideas?

We're trying to send out ICS attachments for calendar requests, but we can't seem to get this new feature to work correctly.

 

Are there any examples in apex to use these changes?

Are there any special configuration changes necessary?