-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
5Questions
-
7Replies
Package install from Sandbox to Developer Account
Hi all!
Have anyone tried to install a package from a Sandbox enviroment to a Developer one?
Is it possible to do it? (I couldn't manage to do it)
Thanks,
- Robert_forced
- April 26, 2011
- Like
- 0
- Continue reading or reply
Apex Mass email on Custom object
I would like to make a mass email function based on the email addresses of a custom object email field.
I just see in the Developer's Guide, that the Mass email methods are only for the standard "contact, lead, or user" objects.
But what if I want to send emails to a custom object email field?? There is no way? I could not imagine that.
Please help me out!
- Robert_forced
- March 22, 2011
- Like
- 0
- Continue reading or reply
Trigger to update related object's fields on custom object
trigger RelatedItems on Order__c (after insert, after update) { Set<ID> OrderIDs = new Set<ID>(); for(Order__c o: Trigger.new) OrderIDs.add(o.id); List<OrderLine__c> ProductsToUpdate = new List<OrderLine__c>([SELECT ID,text__c, Order__c FROM OrderLine__c WHERE OrderLine__c.Order__c = : OrderIDs]); for(OrderLine__c ol: ProductsToUpdate) {ol.text__c = 'WHOOOA';} update ProductsToUpdate; }
This is the code for the Trigger, that I'm getting the error:
CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, RelatedItems: maximum trigger depth exceeded
I would like to update the text__c field (first with with 'Whooa') of related object of a custom object named Order__c. The Related object is in a master-detail relationship, and named: OrderLine__c
The lookup field on the OrderLine__c named: Order__c
Thanks for the help!
- Robert_forced
- February 14, 2011
- Like
- 0
- Continue reading or reply
Translate Standard Field Label
Hi,
I could't manage to figure out how (if its possible) to translate the Standard Object / Standard field labels ( eg, Account objct / "Account name" field)?
I tried to use the Translation Workbench, but there I can only change the custom field labels.
- Robert_forced
- January 29, 2011
- Like
- 0
- Continue reading or reply
Trigger After insert read only error
I'm new to trigger coding, and faced the following problem:
I have a field (Assigned_to__c) to update in the following way:
-if the field is empty fill it with the name the record was CreatedBy
-if not, no action is required
The code is:
trigger AssignedToUpdate on TimeSheet__c (after insert, after update) { for(Timesheet__c ts:Trigger.new){ if(ts.Assigned_to__c == null){ ts.Assigned_to__c = ts.CreatedById; } } } |
The problem is, that the "after insert" function is not working, the error code is:" The record is Read only".
I tried with "Before insert" but, of course before inserting the value of the CreatedBy field, it returns with null.
Any ideas would be appreciated!
- Robert_forced
- January 10, 2011
- Like
- 0
- Continue reading or reply
Apex Mass email on Custom object
I would like to make a mass email function based on the email addresses of a custom object email field.
I just see in the Developer's Guide, that the Mass email methods are only for the standard "contact, lead, or user" objects.
But what if I want to send emails to a custom object email field?? There is no way? I could not imagine that.
Please help me out!
- Robert_forced
- March 22, 2011
- Like
- 0
- Continue reading or reply
Trigger to update related object's fields on custom object
trigger RelatedItems on Order__c (after insert, after update) { Set<ID> OrderIDs = new Set<ID>(); for(Order__c o: Trigger.new) OrderIDs.add(o.id); List<OrderLine__c> ProductsToUpdate = new List<OrderLine__c>([SELECT ID,text__c, Order__c FROM OrderLine__c WHERE OrderLine__c.Order__c = : OrderIDs]); for(OrderLine__c ol: ProductsToUpdate) {ol.text__c = 'WHOOOA';} update ProductsToUpdate; }
This is the code for the Trigger, that I'm getting the error:
CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, RelatedItems: maximum trigger depth exceeded
I would like to update the text__c field (first with with 'Whooa') of related object of a custom object named Order__c. The Related object is in a master-detail relationship, and named: OrderLine__c
The lookup field on the OrderLine__c named: Order__c
Thanks for the help!
- Robert_forced
- February 14, 2011
- Like
- 0
- Continue reading or reply
Trigger After insert read only error
I'm new to trigger coding, and faced the following problem:
I have a field (Assigned_to__c) to update in the following way:
-if the field is empty fill it with the name the record was CreatedBy
-if not, no action is required
The code is:
trigger AssignedToUpdate on TimeSheet__c (after insert, after update) { for(Timesheet__c ts:Trigger.new){ if(ts.Assigned_to__c == null){ ts.Assigned_to__c = ts.CreatedById; } } } |
The problem is, that the "after insert" function is not working, the error code is:" The record is Read only".
I tried with "Before insert" but, of course before inserting the value of the CreatedBy field, it returns with null.
Any ideas would be appreciated!
- Robert_forced
- January 10, 2011
- Like
- 0
- Continue reading or reply