How can I retrieve specific custom metadata records from an org.
I use this syntax for specifc fields
sfdx force:source:retrieve -m CustomField:Object.CustomField__c
But what is the syntax for a custom metadata record?
I am inserting records into the opportunityShare object programtically thru a trigger, while inserting the record I am setting the userOrGroupID field in the oppotunityShare to a public group. When I change the owner of the opportunity, all these sharing records get deleted. While if I change any other field on the opportunity, the records in the opportunityShare object are intact.
Could anyone please let me know as to why this behaviour is happening?? And how can we avoid this?