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

[Feature Request or Bug] Ability to write a SQL Insert statement against a Virtual Entity #541

Closed
tony-mykhaylovsky-va opened this issue Sep 5, 2024 · 0 comments · Fixed by #549

Comments

@tony-mykhaylovsky-va
Copy link

tony-mykhaylovsky-va commented Sep 5, 2024

Hi Mark,

We have a Virtual Entity, for which the Create Event Handler is registered. I am able to trigger the Create event when I add a new record through a form, but when I run the SQL below, it does not trigger the Create event:

insert into ops_test (ops_externalsnapshotid, ops_benefitid, ops_firstname, ops_lastname)
values ('8BE96ADA-155F-EF11-BFE3-001DD8301EFA', '123456789', 'James', 'Bond')

When we create a virtual entity record through a form, we see the following in sequence (in case this helps):

  1. Create Event
  2. Retrieve Event
  3. Retrieve Event

Error:
Object reference not set to an instance of an object.
See the Execution Plan tab for details of where this error occurred

Thank you for creating and maintaining SQL 4 CDS. Incredible tool.

Best,
Tony

@MarkMpn MarkMpn linked a pull request Sep 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant