2 answers
Hi Agnibha,Greetings to you!targetRecord is the provided record. This attribute will contain only the fields relevant to the requested layoutType and/or fields atributes.targetFields is a simplified view of the fields in targetRecord, to reference record fields in component markup.targetFields is the corresponding attribute to simpleRecord. targetFields is easier to use compared to targetRecord. You do not need to use both, just stick with one.Please refer to the below links which might help you further.https://salesforce.stackexchange.com/questions/203832/confused-on-forcerecorddatahttps://salesforce.stackexchange.com/questions/200430/attributes-and-field-clarification-from-lightning-data-service-trailhead-moduleI hope it helps you.Kindly 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. It will help to keep this community clean. Thanks and Regards,
Khan Anas