Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use the object table as a variable in code #1448

Closed
StijnMattheus opened this issue Jan 18, 2018 · 2 comments
Closed

Cannot use the object table as a variable in code #1448

StijnMattheus opened this issue Jan 18, 2018 · 2 comments
Labels

Comments

@StijnMattheus
Copy link

When i want to use the object table as a variable like this:

LRec_Object: record Object;

the compiler gives the following error:

error AL0296: The type or method 'Object' cannot be used for 'Extension' development.

@BertDeTemmerman
Copy link

BertDeTemmerman commented Jan 19, 2018

You have to use AllObjWithCaption table.
fe in reportselection:
Object.id where(type=const(report)
became
AllObjWithCaption."Object ID" where ("object type"=const(report));

@defr0std
Copy link
Contributor

defr0std commented Feb 5, 2018

Hi @StijnMattheus,

Certain system tables (like Object) are not allowed in extensions. The rationale is that these tables either expose cross-tenant data (which cannot happen in online multi-tenant environment) or they are for internal use.

You should try using AllObjWithCaption as @SirBETE suggests. If it does not work, you can change the "target" setting in app.json by setting it to "Internal". However, please note that this is generally discouraged and you will not be able to distribute your extension through AppSource.

@microsoft microsoft locked and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants