You need to sign in to do that
Don't have an account?
Santi Ram Rai
Trigger in lookup relationship
Hi everybody,
i) I have custom Objests: (Project, Project Task)
ii) They have lookup relationship.[Project can have many Project Tasks]
So, i have custom field called Status Type PickList(Active,Inactive,Closed) in Object Project.
Now, my Logic is: When the Project Task is created under Project the Status should change to Active.
Do some one has idea?
i) I have custom Objests: (Project, Project Task)
ii) They have lookup relationship.[Project can have many Project Tasks]
So, i have custom field called Status Type PickList(Active,Inactive,Closed) in Object Project.
Now, my Logic is: When the Project Task is created under Project the Status should change to Active.
Do some one has idea?
NOTE: This code has not been tested and may contain typographical or logical errors
You will need to update this code with the right object and field names.
In the code above we get a list of all the projects that are being affected. Then if we have projects to update we build a list of sparse Projects with their new status. Then we update those projects. This code does not take into account the existing status and will always update any Project when a new Task is created.
Error: Compile Error: Entity is not api accessible at line 1 column 1"
Yes, trigger to Salesforce.
Salesforce developer console.
Review all error messages below to correct your data.
Apex trigger ProjectTask_StatusUpdate caused an unexpected exception, contact your administrator: ProjectTask_StatusUpdate: execution of AfterInsert caused by: System.StringException: Invalid id: ff: External entry point"
Now, i got this error message: "Error: Invalid Data.
Review all error messages below to correct your data.
Apex trigger ProjectTask_StatusUpdate caused an unexpected exception, contact your administrator: ProjectTask_StatusUpdate: execution of AfterInsert caused by: System.StringException: Invalid id: ff: External entry point"
NOTE: When including code please use the "Add a code sample" button (icon <>) to increase readability and make referencing code easier.