• jaw99KCG
  • NEWBIE
  • 35 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 3
    Questions
  • 14
    Replies
I want to post certain events on creation to a User's Chatter feed.
I use criteria Post to User, Selecting user from Record, [Event].Owner.id
I get an error:
 
Error
caused by element : FlowActionCall.myRule_1_SA1
caused by: The flow failed to access the value for myVariable_current.Owner.Id because it hasn't been set or assigned.

Not set or assigned? This happens even if I set the chatter post to happen 1hr after Event is created.

Any help appreciated, thanks.
I have a template for a Custom Object Business_Trip__c with Child relationship to Event via Custom Lookup.
I want to show related meetings.

Template below:

    <p><b>Planned Meetings:</b></p>
    <table border="1" >
        
        <apex:repeat var="cx" value="{!relatedTo.Meetings__r}">
            <tr>
                 <td>Name: {!cx.WhoId}</td>
                 <td>Date: {!cx.ActivityDate}</td>
                 <td>Company: {!cx.Whatid}</td>
                 <td>Subject: {!cx.Subject}</td>
                 <td>Notes: {!cx.Comments_Summary__c}</td>
            </tr>
             
        </apex:repeat>                 
    </table>
    <p />

Provides indecipherable results:

Planned Meetings:
**Name: 003J000001EWnkiIAD**    Date: Thu Jul 09 00:00:00 GMT 2015    **Company: 001J000001btDA7IAM**    Subject: Quarter review

When what I want is:

**Name: Joe Conact** Date: Thu Jul 09 00:00:00 GMT 2015    **Company: AcmeWidgetCo**. Subject: Quarter review

How do I get the names - the Contact and Account names -  from the relation? thanks!

I have tried:

<td>Name: {!cx.Who}</td> - Causes big error on test send

<td>Name: {!cx.WhoId.name}</td> - gets Error: Unknown property 'String.name'    

<td>Name: {!cx.WhoId__r.name}</td> 

and
<td>Name: {!cx.Who__r.name}</td>

Both get -     Error: Invalid field WhoId__r for SObject LookedUpFromActivity    

Would love some help getting test coverage for the following:

 

public class accountContactExt {
 
    Account a;

    public accountContactExt(ApexPages.StandardController controller) {
      a = (Account) controller.getRecord();        
    }


    public List<Contact> getSalesContacts() {
      return [select name, title, email, Client_Role__c, phone from contact where accountid = :a.id and Client_Role__c like '%'];
    }
    
  
}

 which feeds a nice inline list to the account page via:

 

<apex:page standardController="Account" extensions="accountContactExt">
 
  <apex:pageBlock title="Client Roles">
    <apex:pageBlockTable value="{!salescontacts}" var="c">
     
      <apex:column headerValue="Contact Name"><apex:outputLink value="{!URLFOR($Action.Contact.View,c.id)}" target="_blank">{!c.name}</apex:outputLink></apex:column>
       <apex:column value="{!c.Client_Role__c}"/>
      <apex:column value="{!c.title}"/>
      <apex:column headervalue="Email"><apex:outputField value="{!c.email}"/></apex:column>
      <apex:column value="{!c.phone}"/>
     
    </apex:pageBlockTable>
  </apex:pageBlock>
</apex:page>
             

 I bet simple for experienced coders but Testing is a real hump for me right now - help getting coverage for this would be appreciated, thanks!

 

I want to post certain events on creation to a User's Chatter feed.
I use criteria Post to User, Selecting user from Record, [Event].Owner.id
I get an error:
 
Error
caused by element : FlowActionCall.myRule_1_SA1
caused by: The flow failed to access the value for myVariable_current.Owner.Id because it hasn't been set or assigned.

Not set or assigned? This happens even if I set the chatter post to happen 1hr after Event is created.

Any help appreciated, thanks.
I have a template for a Custom Object Business_Trip__c with Child relationship to Event via Custom Lookup.
I want to show related meetings.

Template below:

    <p><b>Planned Meetings:</b></p>
    <table border="1" >
        
        <apex:repeat var="cx" value="{!relatedTo.Meetings__r}">
            <tr>
                 <td>Name: {!cx.WhoId}</td>
                 <td>Date: {!cx.ActivityDate}</td>
                 <td>Company: {!cx.Whatid}</td>
                 <td>Subject: {!cx.Subject}</td>
                 <td>Notes: {!cx.Comments_Summary__c}</td>
            </tr>
             
        </apex:repeat>                 
    </table>
    <p />

Provides indecipherable results:

Planned Meetings:
**Name: 003J000001EWnkiIAD**    Date: Thu Jul 09 00:00:00 GMT 2015    **Company: 001J000001btDA7IAM**    Subject: Quarter review

When what I want is:

**Name: Joe Conact** Date: Thu Jul 09 00:00:00 GMT 2015    **Company: AcmeWidgetCo**. Subject: Quarter review

How do I get the names - the Contact and Account names -  from the relation? thanks!

I have tried:

<td>Name: {!cx.Who}</td> - Causes big error on test send

<td>Name: {!cx.WhoId.name}</td> - gets Error: Unknown property 'String.name'    

<td>Name: {!cx.WhoId__r.name}</td> 

and
<td>Name: {!cx.Who__r.name}</td>

Both get -     Error: Invalid field WhoId__r for SObject LookedUpFromActivity    
We are starting to run Leads through an Approval process and want to report on them (of course!).

Is it possible to show other fields on the report than the one Related To? It shows the Lead Name, which is not relevant to our process - Company is the meaningful field. Others would be nice, too. Any work around appreciated, thanks.
  • December 09, 2014
  • Like
  • 0

Would love some help getting test coverage for the following:

 

public class accountContactExt {
 
    Account a;

    public accountContactExt(ApexPages.StandardController controller) {
      a = (Account) controller.getRecord();        
    }


    public List<Contact> getSalesContacts() {
      return [select name, title, email, Client_Role__c, phone from contact where accountid = :a.id and Client_Role__c like '%'];
    }
    
  
}

 which feeds a nice inline list to the account page via:

 

<apex:page standardController="Account" extensions="accountContactExt">
 
  <apex:pageBlock title="Client Roles">
    <apex:pageBlockTable value="{!salescontacts}" var="c">
     
      <apex:column headerValue="Contact Name"><apex:outputLink value="{!URLFOR($Action.Contact.View,c.id)}" target="_blank">{!c.name}</apex:outputLink></apex:column>
       <apex:column value="{!c.Client_Role__c}"/>
      <apex:column value="{!c.title}"/>
      <apex:column headervalue="Email"><apex:outputField value="{!c.email}"/></apex:column>
      <apex:column value="{!c.phone}"/>
     
    </apex:pageBlockTable>
  </apex:pageBlock>
</apex:page>
             

 I bet simple for experienced coders but Testing is a real hump for me right now - help getting coverage for this would be appreciated, thanks!

 

Hi,

 

Can any opportunity owners/lead owners can add users to follow particular opportunity or lead.If we are done with any changes in particular opportunity or lead,that users should recive notification or changes display in chatter.

 

Thanks

  • December 16, 2011
  • Like
  • 0
We have an issue where we have some accounts that have literally 1000's of contacts associated to them. The Sales Rep is really only concerned with a small subset of these contacts and so we would love to have either a seperate related list or even a new view that would should show their 'Sales Contacts'. Is this something that VisualForce could do? Is it possible to add a filter to the datatable component?
I redirect users from std Account page to a VF page.
the tab featuring <apex:outputPanel >  <chatter:feedWithFollowers entityId="{!Account.id}"/> </apex:outputPanel> 
no longer works - users cannot post into the Chatter. 
Triggers for logged activities can still push to the account.
The Enter a Meeting (New Event) publisher Action still works ok.

If I revert to default Account pages Chatter works ok (but obviously we don't want this).

Any suggestions? 
  • March 07, 2014
  • Like
  • 1