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
AditiSFDCAditiSFDC 

Is it possible to create Sharing rules via Metadata API?

Is it possible to create owner or criteria based Sharing rules for both custom and standard object via Metadata API?
When I look at metadata.xml (version 32), CustomBasedSharingRules or any other Standard object sharing rules indirectly extends Metadata class but when I generate WSDL2Apex class, they don't extend Metadata class.