• Tanner Cannon 10
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi,

I'm running into an issue where my shceduled actions are not completing as expected.

We have a custom object NPS_Survey__c which is fed data through a third party survey tool.
On create of a record several things happen using Process Builder.
  1. parse the survey into fields on the record using Flow to include
    • Survey End Date (date) = date survey submitted on
    • Last Day of Month (FF)
    • Last Day of Next Month (FF)
    • isCurrentMonth (checkbox) = True
    • isLastMonth (checkbox) = False
    • isCurrentYear (checkbox) = True
    • Last Day of Year (FF)
  2. schedule an action to update isCurrentMonth__c to False based on Last_Day_of_Month__c that gives last day of the month the record was created in
At the end of a given month, all of the NPS_Survey__c records created in that month are scheduled to be updated so that...
  1. isCurrentMonth__c = False
  2. isLastMonth__c = True.
At the end of the next month all of the NPS_Survey__c records are scheduled to be updated so that...
  1. isLastMonth__c = False
Finally, at the end of the Year all of the NPS_Survey__c records are scheduled to be updated so that...
  1. isCurrentYear = False
This process works for us however I believe we are hitting limits on the number of paused interviews etc.. and thousands of my records are not updating properly. Not quite sure how to tell if this is the case or not. 

In a given month we may recieve 2,500 to 4,000 new surveys which get added to the queue.

My understanding based on this article is that we are most certianly hitting the limits.
https://help.salesforce.com/apex/HTViewHelpDoc?id=vpm_admin_flow_limits.htm&language=en_US

Looking for a way to verify what the root cause of the issue is and best practices on how to handle this type of operation using the visual workflow.

Thanks,
 
I have a requirement to separate Pardot activities from sales rep activities in the Activity History related list. To do this I have built a VF page and embedded it in the page layout for Accounts and Contacts. My problem is that the last column in the table (Description) extends past the visible area causing the user to have to scroll to the right in order to read the entire comment. 

What I am trying to achieve is for the text in the Description field to wrap if the string runs past the width of the column.

Here is my VF code as it sits now.
<apex:page standardController="Account" extensions="ActivityHistoryControllerExt" standardStylesheets="False">
   <!-- <apex:stylesheet value="{!$Resource.nonpardotstyle}"/>-->
     
    <apex:pageBlock >
        <apex:pageBlockTable value="{!Account.ActivityHistories}" var="hist"  >
            <apex:column >
	            <apex:facet name="header">
    				<apex:outputText value="Subject"></apex:outputText>
                </apex:facet>
                <apex:outputLink value="/{!hist.id}" id="eventlink">{!hist.subject}</apex:outputLink>
            </apex:column>
            <apex:column value="{!hist.activitydate}"/>
            <apex:column value="{!hist.whoid}"/>
            <apex:column value="{!hist.whatid}"/>
            <apex:column value="{!hist.accountid}"/>
            <apex:column value="{!hist.ownerid}"/>
            <apex:column value="{!hist.istask}"/>
            <apex:column value="{!hist.activitytype}"/>
            <apex:column value="{!hist.description}"/>
            <!--<apex:column width="25px">
	            <apex:facet name="header">
    				<apex:outputText value="Comments"></apex:outputText>
                </apex:facet>
                <apex:outputText value="{!hist.description}..." ></apex:outputText>
            </apex:column>
            -->
        </apex:pageBlockTable>
    </apex:pageBlock>
   
    <script type="application/javascript">
    var aTags = document.getElementsByTagName('a');
    for(var i = 0; i < aTags.length; i++) 
        aTags[i].target = "_blank";

    function navigateToUrl (a){ 
        window.top.location.href = a; 
    }
	</script>
</apex:page>
and my controller
public class ActivityHistoryControllerExt {
	
	private final Account acct;

	public ActivityHistoryControllerExt(ApexPages.StandardController stdController) {
        this.acct = (Account)stdController.getRecord();
    }
	
	
	public String getName() {
		return 'ActivityHistoryControllerExt';
	}
        
	public Account getAccount() {
		return [select id, name, ownerid,
					(select subject, whoid, whatid, accountid, ownerid, activitydate, description,istask, activitytype,priority from ActivityHistories 
					 where  (NOT(Subject like '%Pardot%')) 
                     order by activitydate DESC) //filter out marketing actvities 
				from account
				where id = :ApexPages.currentPage().getParameters().get('id')];
	}

}
I have tried using in-line style tags to manipulate the text how I want it but nothing is working, the text continues to run on. Below is an example that did not work.
<style>
.dim_a {width:100px; 
              height;80px;
              word-wrap:break-text;}
</style>

<apex:column value="{!hist.description}" styleClass="dim_a"/>

Not sure what I am missing, any help is appreciated.

Thanks!

 
I have a requirement to separate Pardot activities from sales rep activities in the Activity History related list. To do this I have built a VF page and embedded it in the page layout for Accounts and Contacts. My problem is that the last column in the table (Description) extends past the visible area causing the user to have to scroll to the right in order to read the entire comment. 

What I am trying to achieve is for the text in the Description field to wrap if the string runs past the width of the column.

Here is my VF code as it sits now.
<apex:page standardController="Account" extensions="ActivityHistoryControllerExt" standardStylesheets="False">
   <!-- <apex:stylesheet value="{!$Resource.nonpardotstyle}"/>-->
     
    <apex:pageBlock >
        <apex:pageBlockTable value="{!Account.ActivityHistories}" var="hist"  >
            <apex:column >
	            <apex:facet name="header">
    				<apex:outputText value="Subject"></apex:outputText>
                </apex:facet>
                <apex:outputLink value="/{!hist.id}" id="eventlink">{!hist.subject}</apex:outputLink>
            </apex:column>
            <apex:column value="{!hist.activitydate}"/>
            <apex:column value="{!hist.whoid}"/>
            <apex:column value="{!hist.whatid}"/>
            <apex:column value="{!hist.accountid}"/>
            <apex:column value="{!hist.ownerid}"/>
            <apex:column value="{!hist.istask}"/>
            <apex:column value="{!hist.activitytype}"/>
            <apex:column value="{!hist.description}"/>
            <!--<apex:column width="25px">
	            <apex:facet name="header">
    				<apex:outputText value="Comments"></apex:outputText>
                </apex:facet>
                <apex:outputText value="{!hist.description}..." ></apex:outputText>
            </apex:column>
            -->
        </apex:pageBlockTable>
    </apex:pageBlock>
   
    <script type="application/javascript">
    var aTags = document.getElementsByTagName('a');
    for(var i = 0; i < aTags.length; i++) 
        aTags[i].target = "_blank";

    function navigateToUrl (a){ 
        window.top.location.href = a; 
    }
	</script>
</apex:page>
and my controller
public class ActivityHistoryControllerExt {
	
	private final Account acct;

	public ActivityHistoryControllerExt(ApexPages.StandardController stdController) {
        this.acct = (Account)stdController.getRecord();
    }
	
	
	public String getName() {
		return 'ActivityHistoryControllerExt';
	}
        
	public Account getAccount() {
		return [select id, name, ownerid,
					(select subject, whoid, whatid, accountid, ownerid, activitydate, description,istask, activitytype,priority from ActivityHistories 
					 where  (NOT(Subject like '%Pardot%')) 
                     order by activitydate DESC) //filter out marketing actvities 
				from account
				where id = :ApexPages.currentPage().getParameters().get('id')];
	}

}
I have tried using in-line style tags to manipulate the text how I want it but nothing is working, the text continues to run on. Below is an example that did not work.
<style>
.dim_a {width:100px; 
              height;80px;
              word-wrap:break-text;}
</style>

<apex:column value="{!hist.description}" styleClass="dim_a"/>

Not sure what I am missing, any help is appreciated.

Thanks!