Skip to content

BC19 with target Cloud enters Scope('OnPrem') Function #6870

@VictorMilveden

Description

@VictorMilveden

1. Describe the bug
When calling Function DocumentSendingProfile.Send(ReportUsage, RecordVariant, DocumentNo, CustomerNo, DocName, CustomerFieldNo, DocumentFieldNo); with BC 19 Cloud app the code enters Function: SendToDiskForCust on Table: Report Selection which is aScope('OnPrem') function.

My app.json target is Cloud:
image

2. To Reproduce

  1. Go to 'app.json' and include property "target": "Cloud"
  2. Add a breakpoint on Table: Report Selection Function: SendToDiskForCust
  3. Call function DocumentSendingProfile.Send(ReportUsage, RecordVariant, DocumentNo, CustomerNo, DocName, CustomerFieldNo, DocumentFieldNo);
  4. The breakpoint on Table: Report Selection Function: SendToDiskForCust should be triggered, which is a Scope('OnPrem') function.

3. Expected behavior
I would expect a compile error like this one:
image

4. Actual behavior
The actual behavior runs function ``DocumentSendingProfile.Send();``` and enters a OnPrem Function:
image

5. Versions:

  • AL Language: v8.2.552672
  • Visual Studio Code: 1.63
  • Business Central: BC19 Cloud

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions