• LloydS
  • NEWBIE
  • 50 Points
  • Member since 2010

  • Chatter
    Feed
  • 2
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 28
    Questions
  • 40
    Replies

I'm using the S-Drive app to store attachments on Amazon S3.

To display the attachments on the various objects (accounts, contact, cases, etc.), you need to override the standard View page with a visualforce page.

This works just perfectly for all of my objects other than accounts. On the accounts page, when using the custom VF page, my Cases related list (from the standard Case object) does not appear. Other related lists appear just fine for Accounts, and other objects display all of their related lists as well.

I can't seem to figure out what's causing this. The apex for the VF page is standard, and identical to the apex for the other objects (with the exception of naming for accounts versus contacts, cases, etc.).

The code is:

 

<apex:page standardController="Account" extensions="cg.AccountEmailExtension" tabStyle="Account">
  <apex:detail inlineEdit="true" relatedList="true" showChatter="true"/>
  <c:AttachmentComponent title="Account Files"
    customObjectName="Account" customObjectFileName="AccountFile__c"
    fileNamespacePrefix="cg__"
    relationshipName="Account__r"
    legacyIdSupport="true"
    objectId="{!Account.Id}"
    inline="true"
    defaultEmailAddress="{!defaultAccountEmail}" />
</apex:page>

 

Is there any other reason I cannot get the Cases related list to display on the page when using the above VF page? This is on a Professional version.

 

Thanks

 

 

I have a custom field on Accounts called "Client Rating". I want to update that field automatically whenever the stage on an Opportunity with the type "New Client" changes as follows:

OPPORTUNITY STAGE > ACCOUNT CLIENT RATING

ANY (e.g. when opportunity is created > Prospect
Contracting > Contracting
Opportunity Won > Client
Opportunity Lost > Former Prospect

I know I can't do this using normal workflow. I downloaded XObject from the appexchange but can't figure that out.

How do I do this?

I just installed the force.com Case History application. When I click on the Case History button within a case, I get a URL no longer exists message. Any clue?

[Coming Soon]

New Action Plans Place Template Import Listings will be here.

Anyone know anything about a namespace limit of 10?  Can't find anything in the documentation and SFDC support promised to get back to me and never did. 

I have a simple VF page that is used to override the default view when clicking on the Cases tab. I've been using it form months but then it stopped working this morning. No error messages. No data. It just displays the "waiting to load" message. It doesn't appear to be trying to do anything and the browser indicates that the page has completed loading.

 

Any idea?

 

 

<apex:Page tabStyle="Case" >
<script src="/soap/ajax/15.0/connection.js"></script>
<script type="text/javascript" />
<script>
     window.onload = function() {

     sforce.connection.sessionId = '{!$Api.Session_ID}';

     var describeSObjectResult = sforce.connection.describeSObject("case");
     var prefix = describeSObjectResult.keyPrefix;

     var cView = "00BA0000003Nxh5";

     // Change the whole window to point to this location
     parent.document.location.href = "/" + prefix + "?fcf=" + cView ;
}
</script>
<center><h2>Please Wait ..... Loading Open Requests</h2></center>
</apex:page>

 

 

Enterprise version of SFDC and an external site using PHP. I have embedded the self-service portal on to a page using an iframe. I'd appreciate it if someone could walk me through how to automatically login the user to the SSP using their credentials for our website and avoid having to login using SSP-specific credentials. Thanks

I have a web-to-lead (or web-to-anything) form created. Upon submission, I'd like to ideally do the following:

 

1) If they aren't already in SFDC, create them as a lead and update various fields;

2) If they aren't a member of a specific campaign, add them to the campaign and update their status;

3) If they are a member of the campaign, update their status.

 

The basic web-to-lead form is causing me issues so I think this might have to be done with an Apex Trigger. When the current form is submitted, it works ok for someone already in SFDC. It does create a lead even though they are already in the system as either a contact or lead. But their campaign member status is updated correctly and if they aren't a member of the campaign already then they are added to it.

 

But if they are not in SFDC it doesn't work as I hoped. They are added as a lead (which is perfect)but it generates an error to the user when trying to add them to a campaign. My guess is that the way the form is setup, it's doing a lookup of the contact/lead's ID via the email address field and adding them to the campaign that way. And when the person is not already in SFDC (even though they are being added as a lead during the form submission) it can't retrieve their contact or lead ID and therefore it fails.

 

So, is this a problem best met with an Apex Trigger? 

I'm creating a simple trigger to update a few fields of the related account object when an opportunity is updated. I've tried a few variations but none validate correctly. Here's the current version of the trigger. Thanks in advance for the lesson.

 

 

trigger AccountBecameClient on Opportunity (after update) { Opportunity myOpportunity = trigger.new[0]; Account myAccount = myOpportunity.AccountId; if (myOpportunity.StageName == 'Closed Won' && myAccount.First_Became_Client__c == Null) { myAccount.First_Became_Client__c = date.today(); myAccount.Next_Annual_Review__c = date.today() + 365; date thisDate = date.today(); date quarterlyReview = thisDate.addMonths(3); myAccount.Next_Quarterly_Review__c = quarterlyReview; } }

 

 

 

Is it possible to use a trigger to automate the creation of Campaign Member Status? For example, when a campaign of certain type is created, I would like to automatically add 'Show', 'No show' i nthe list of Campaign Member Status. Is it possible?

Thanks

Pierre