function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Akshay MouryaAkshay Mourya 

Parent and child ticket task

Hi All,
Do we have any functionality to create parent and respective child tasks in Salesforce? Also, can we perform activities and store those activities against that task? 
For Example - If the user started travel then in activities it should store like he/she has started travel.

 
ANUTEJANUTEJ (Salesforce Developers) 
Hi Akshay,

To link between two objects or to relate one record from one object to another there are two types of fields/relationships that you can create one is lookup and another is a master-detail relationship

Salesforce supports 2 kinds of relationships like Master-Detail and Lookup. They are both one-to-many relationship, and they are both defined from the many-to-one side, that is from a child to a parent. They can be made one-to-one relationship by adding validation rules, or maybe triggers to enforce the one-to-one nature, i.e. only one child is allowed.
 
For more information, read this article http://wiki.developerforce.com/page/A_Deeper_look_at_SOQL_and_Relationship_Queries_on_Force.com.

Also, please refer to the below article for sharing the records between the partner users:

https://help.salesforce.com/articleView?id=networks_partners_sharing_rules.htm&type=5

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.