-
ChatterFeed
-
1Best Answers
-
0Likes Received
-
0Likes Given
-
12Questions
-
32Replies
Apex error...ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE
"ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE, entity failed ifModifiedBefore "
"You cannot update a record if the date inLastModifiedDate is later than the current date. "
Message Edited by tinman44 on 12-29-2008 07:37 AM
Message Edited by tinman44 on 12-29-2008 07:37 AM
-
- tinman44
- December 29, 2009
- Like
- 0
- Continue reading or reply
Setting Chatter Follows in Apex
In some Apex triggers I create a new record on which there is a field Contact Person (a link to Users). I want automatically to make this contact person a Chatter Follower of the record so that he/she is notified, should anyone add a Chatter comment to the record. How to?
-
- PerGeert
- December 18, 2010
- Like
- 0
- Continue reading or reply
Public Calendar Owner Obejct Type
Looking at event in a Public Calendar, the prefix of the OwnerId is '023'. What object type is that?
-
- PerGeert
- February 12, 2009
- Like
- 0
- Continue reading or reply
Relating custom object to calendar object
-
- PerGeert
- February 09, 2009
- Like
- 0
- Continue reading or reply
S-control doesn't always like RevenueForecast object
I have a scontrol, which basically does this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script type="text/javascript" src="/js/functions.js"></script> <script src="/soap/ajax/12.0/connection.js"></script> <script type="text/javascript"> window.onload=init_page(); function init_page() { var result; var strSQL = "Select Id,StartDate,ProductFamily,Quota,Closed,Commit,Upside,Pipeline,CurrencyIsoCode from RevenueForecast where OwnerId='{!$User.Id}' and StartDate >= 2008-04-01 and StartDate <= 2009-03-31 order by ProductFamily"; try { result = sforce.connection.query(strSQL); } catch(err) { alert(err); alert('SQL blowup');} } </script> </head> <body></body> </html>
When I execute it as System Administrator, it works as expected. However, when I execute with another profile, I get an error:
{faultcode:'sf:INVALID_TYPE', faultstring:'INVALID_TYPE: sObject type 'RevenueForecast' is not supported.', ...}
Which security settings (besides API enabled) must the user's profile have in order to read RevenueForecast?
-
- PerGeert
- December 12, 2008
- Like
- 0
- Continue reading or reply
Rerender rerender part of page but then whole page is refeshed
<apex:page standardController="Account" recordSetvar="accounts"
extensions="Account2MapControllerExt">
<script src="http://maps.google.com/maps?file=api&v=2.x&key={!mapkey}" type="text/javascript"></script>
<script src="http://www.google.com/jsapi?key={!mapkey}" type="text/javascript" ></script>
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection title="Select Account List" columns="1" collapsible="false">
<apex:outputPanel > Select an account list view to map :
<apex:selectList value="{!filterId}" size="1">
<apex:selectOptions value="{!listviewoptions}" />
</apex:selectList>
<apex:commandButton value="Go!" >
<apex:actionSupport event="onclick" reRender="accTable" status="accStatus" />
</apex:commandButton>
<apex:actionStatus id="accStatus" startText="(incrementing...)" stopText="(done)"/>
</apex:outputPanel>
</apex:pageBlockSection>
<apex:pageBlockSection >
<apex:dataTable value="{!accounts}" var="a" id="accTable" rows="3">
<apex:column value="{!a.id}" rendered="false"/>
<apex:column value="{!a.name}" rendered="true"/>
</apex:dataTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Message Edited by PerGeert on 11-22-2008 06:19 PM
Message Edited by PerGeert on 11-22-2008 07:50 PM
-
- PerGeert
- November 22, 2008
- Like
- 0
- Continue reading or reply
Google Intesitymap
-
- PerGeert
- November 06, 2008
- Like
- 0
- Continue reading or reply
Apex tree control
Best regards,
-
- PerGeert
- October 15, 2008
- Like
- 0
- Continue reading or reply
PrintAnything and boolean
-
- PerGeert
- May 09, 2008
- Like
- 0
- Continue reading or reply
dynabean ajax 10.0
...
<script language="javascript" src="/soap/ajax/10.0/connection.js" type="text/javascript"></script>
window.setTimeout(";", 1000);
getPictures();
}
-
- PerGeert
- October 25, 2007
- Like
- 0
- Continue reading or reply
Trigger which delete current object returns warning
-
- PerGeert
- October 12, 2007
- Like
- 0
- Continue reading or reply
email output from PrintAnything
-
- PerGeert
- November 16, 2006
- Like
- 0
- Continue reading or reply
Calling external webservice and returning
-
- PerGeert
- October 04, 2006
- Like
- 0
- Continue reading or reply
Setting Chatter Follows in Apex
In some Apex triggers I create a new record on which there is a field Contact Person (a link to Users). I want automatically to make this contact person a Chatter Follower of the record so that he/she is notified, should anyone add a Chatter comment to the record. How to?
- PerGeert
- December 18, 2010
- Like
- 0
- Continue reading or reply
Chatter not accessible by Customer Portal Users?
I've set up a simple trigger to insert a FeedPost when one of my Customer Portal Users creates an entry through Sites and found that the trigger only works when I create an entry from inside Salesforce (as a regular SF user).
When a Customer Portal User creates an entry, the trigger fails with the error: "Invalid type: FeedPost"
The API version on all the code is 18.0.
I've also tried putting the "insert FeedPost" call in a class without sharing, but it still fails in the Customer Portal context.
What are the limitations on integration Chatter with Sites and Customer Portal Users? Can we even trigger chatter activity from portal user actions?
- R
(This is just a test case ... I know the trigger isn't set up to handle bulk inserts)
trigger ItemReview on Item_Review__c (after insert) { for (Item_Review__c review :trigger.new) { Chatter.feedPost(review.Item__c, 'A review has been posted for this item.' ,null); } }
public without sharing class Chatter { public static void feedPost(String parentId, String body, String link) { try { FeedPost fpost = new FeedPost(); fpost.ParentId = parentId; //eg. Opportunity id, custom object id.. fpost.Body = body; insert fpost; } Catch (Exception ex) { } } }
- Ron Wild
- May 29, 2010
- Like
- 0
- Continue reading or reply
How to change the column header name in report?
When users create customer reports(Tabular Report), they want to use another name to replace the field label in page layout. How to implement it?
Thanks
- Napo
- May 21, 2009
- Like
- 0
- Continue reading or reply
How to lock the Record?
Hi,
I want to lock particular Record on some condition.
Ex: I will include one custom field(check box) in Opportunity as "Lock". If this is checked for any Opportunity, then that Opportunity should not be accessible by any other group (Ex: Sales, Marketing).
How can I achieve this?
Thanks for any help.....
- skumar123
- March 13, 2009
- Like
- 0
- Continue reading or reply
Public Calendar Owner Obejct Type
Looking at event in a Public Calendar, the prefix of the OwnerId is '023'. What object type is that?
- PerGeert
- February 12, 2009
- Like
- 0
- Continue reading or reply
Relating custom object to calendar object
- PerGeert
- February 09, 2009
- Like
- 0
- Continue reading or reply
styleClass doesn't work with outputField
My Page:
<apex:page controller="TestPageCon">
<apex:outputField styleClass='XXX' value='{!field.amount}'/>
</apex:page>
My Controller:
public class TestPageCon {
public Opportunity getField() {
return [select id, amount from Opportunity limit 1];
}
}
Actual HTML output:
<span id="j_id0:j_id1">$60,000.00</span>
Where did my XXX go?
- amorgan
- February 04, 2009
- Like
- 0
- Continue reading or reply
Apex error...ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE
"ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE, entity failed ifModifiedBefore "
"You cannot update a record if the date inLastModifiedDate is later than the current date. "
Message Edited by tinman44 on 12-29-2008 07:37 AM
Message Edited by tinman44 on 12-29-2008 07:37 AM
- tinman44
- December 29, 2009
- Like
- 0
- Continue reading or reply
S-control doesn't always like RevenueForecast object
I have a scontrol, which basically does this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script type="text/javascript" src="/js/functions.js"></script> <script src="/soap/ajax/12.0/connection.js"></script> <script type="text/javascript"> window.onload=init_page(); function init_page() { var result; var strSQL = "Select Id,StartDate,ProductFamily,Quota,Closed,Commit,Upside,Pipeline,CurrencyIsoCode from RevenueForecast where OwnerId='{!$User.Id}' and StartDate >= 2008-04-01 and StartDate <= 2009-03-31 order by ProductFamily"; try { result = sforce.connection.query(strSQL); } catch(err) { alert(err); alert('SQL blowup');} } </script> </head> <body></body> </html>
When I execute it as System Administrator, it works as expected. However, when I execute with another profile, I get an error:
{faultcode:'sf:INVALID_TYPE', faultstring:'INVALID_TYPE: sObject type 'RevenueForecast' is not supported.', ...}
Which security settings (besides API enabled) must the user's profile have in order to read RevenueForecast?
- PerGeert
- December 12, 2008
- Like
- 0
- Continue reading or reply
Localized Visualforce page using merge fields for picklist
- moniferlo
- November 22, 2008
- Like
- 0
- Continue reading or reply
Phone number validation/formatting
- advlgxpm
- November 11, 2008
- Like
- 0
- Continue reading or reply
Calulating Anniversary Date
IF(MONTH(AppDate__c)<MONTH(TODAY()),DATE(YEAR(TODAY())+1,MONTH(AppDate__c),DAY(AppDate__c)),
IF(DAY(AppDate__c) >= (DAY(TODAY())),DATE(YEAR(TODAY()),MONTH(AppDate__c),DAY(AppDate__c)),
DATE(YEAR(TODAY())+1,MONTH(AppDate__c),DAY(AppDate__c)))))
- Paul F.ax382
- August 11, 2008
- Like
- 0
- Continue reading or reply
Whats the Solution to Perform Update of 100+ Records in Apex
- Chirag Mehta
- July 26, 2008
- Like
- 0
- Continue reading or reply
new VLOOKUP function can't use object IDs?
* Registrations are detail-master to Programs
* Faimly Groups are also detail-master to Programs
* Registrations has lookup relationship to Family Groups
* want to limit so that you can only choose a Family Group that belongs to the same Program that the Registration belongs to
So basically this is a workaround to get around the lack of filtered lookups.
I tried writing the validation rule to look like this:
NOT ( VLOOKUP( $ObjectType.Family_Group__c.Fields.Program__c ,
$ObjectType.Family_Group__c.Fields.Id , Family_Group__r.Id ) = Program__r.Id )
However, this gives me an error of "Incorrect parameter for function VLOOKUP(). Expected Record Name field." which is rather inscrutable, I'm sure you'll agree.
From experimentation, I've found that it works if I replace those Id fields with Name fields. However, I don't want to do that, as Family Group names are not necessarily unique.
Why doesn't it work with the Id's? Is there some reason that this function won't accept Id fields as parameters? If so, is that something that could be changed? This is probably the most important potential use of this function in validation rules.
BTW, the documentation is not clear on this. The only thing it says is "The field_on_lookup_object must be an indexed field." But I can't find anywhere what constitutes an Indexed Field in SFDC, so that's not too helpful.
Thanks for any help!
M.
- sparky
- February 16, 2008
- Like
- 0
- Continue reading or reply
Logon Problems with the SF Excel Connector
i have problems when i will Logon to SF wir my Excel Connector.
I enter my Username und my Password and use the URL:
https://www.salesforce.com/services/Soap/c/6.0
But the following error occurs:
Error Generated by request::Unable to send request to server. A connection with the server could not be established
ExceptionCode : 5103
The sforce Connector Version is 6.16 and the Office Toolkit Version is 3.0
Thank you in advice.
- ckettenmann
- May 08, 2007
- Like
- 0
- Continue reading or reply