You need to sign in to do that
Don't have an account?
satish wagh
Cross Object Trigger?
How to write cross object trigger in salesforce?
I have one checkbox in one of my custom object and 'Instalment field' in another custom object, if that checkbox is checked in then first object then take sum of all instalments in another object
I have one checkbox in one of my custom object and 'Instalment field' in another custom object, if that checkbox is checked in then first object then take sum of all instalments in another object
Now you have to create a new custom object called Project Members. This object has at least four custom fields:
- A master detail field related to your Project object
- A lookup field to related to User object
- A picklist field with values: Tester, Developer, Architect, Delivery Manager
- A percent field to store rating data
By default, when you create a new object related to other object, Salesforce automatically adds the related list on your Project page layout.If stills not clear to you on how to implement, I could record a video for you. It will take a while, because I'll be with my notebook in couple hours.
Let me know if the video is necessary.
All Answers
Why don't you use this first object as detail of the later? With this relationship, you can create a roll-up summary field, using a count roll-up type and filtering children objects only when your checkbox field is setted to true.
If this is not possible, you can try the code below:
Hope you find this solution useful. If it does please check as Best Answer to help others too.
Regards.
Would you mind to mark my answer as Best Answer? This is help other developers.
Regards.
Would Please Help me in this problem if you dont mind:
The project manager (Project’s owner) should have a way to add team members to the
project. These team members would be internal users of the Salesforce org. While
assigning team member, project manager would select a role for each team member.
Project Manager should be able to define the hourly rate for each team member.
○ Tester
○ Developer
○ Architect
○ Delivery Manager
You have to create a custom object called Project Team with this fields:
- A master detail field to project object
- A lookup field to user
- A picklist field with those roles
- A percent/number field to store the rating
Add the Project Team related list to Project layout.Is this a good solution for your problem?
Let me know if I can help with anything else.
Regards.
First of all, I would like to thank you for taking your time to answer these questions. Actually i dont understand the meaning of this statement in the question:
"These team members would be internal users of the Salesforce org."
What i did is that i created users and create role in role hierarchy but i dont understatnd what should do next.
Now you have to create a new custom object called Project Members. This object has at least four custom fields:
- A master detail field related to your Project object
- A lookup field to related to User object
- A picklist field with values: Tester, Developer, Architect, Delivery Manager
- A percent field to store rating data
By default, when you create a new object related to other object, Salesforce automatically adds the related list on your Project page layout.If stills not clear to you on how to implement, I could record a video for you. It will take a while, because I'll be with my notebook in couple hours.
Let me know if the video is necessary.
Thank you for your prompt reply! Now this is clear to me. There is no need to video.Personally you are vert good man.
Thanks Once again!
Hope the best of luck to you. If you need any kind of help, you can send me a direct message on Twitter. My user is @AdilsonArcoverd
Regards.
How to implement below task Please help me?
Timesheet is a child object of Project. It will have following fields
○ Autonumber
○ Relationship with Project
○ Billing Date
○ Hours
○ Hourly Rate
○ Description
○ Approved?
● A user should not be able to log more than 24 hours in timesheet for any billing date.
● Once a user logs in the hours for a day, he should be able to submit it for approval. The
approval will go to Project Manager. Once approved, the timesheet should have the
“Approved?” checkbox to true. In case of rejection, the submitter should get an email
with reason for rejection.
● For hourly type, Project should have auto calculate “Total Amount” field. This should be
derived from timesheet records and only consider the timesheets which are approved.