Skip to content

Refresh sObject Definition does not work for Custom Sharing Rule Objects #2480

@monirkohi2006

Description

@monirkohi2006

Summary

Refresh sObject Definition does not work for Custom Sharing Rule Objects

Steps To Reproduce:

  1. Define a custom sharing rule object. Ex: MyObject__Share shareRule = new MyObject__Share();
  2. You should see the object and the instance with an underline stating "Variable does not exist: MyObject__Share".

Expected result

SFDX should understand the share rule object as a valid object or should not underline it.

Actual result

SFDX syntax checker doesn't understand the share rule object syntax.

Additional information

image

VS Code Version: Version: 1.48.2

SFDX CLI Version: sfdx-cli/7.68.6-d37008df83 darwin-x64 node-v12.18.3

OS and version: macOS Catalina & Version: 10.15.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions