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

Handle Set-BapEnvironmentVirtualEntity change tracking for invisible entity more gracefully #20

Open
FH-Inway opened this issue Mar 6, 2024 · 2 comments

Comments

@FH-Inway
Copy link
Member

FH-Inway commented Mar 6, 2024

Per Prerequisites to track changes for finance and operations virtual tables in Dataverse, the virtual entity must be visible in Dataverse before change tracking can be enabled.

When calling Set-BapEnvironmentVirtualEntity -EnvironmentId $environmentId -Name $virtualEntitiesName -TrackingOn for an entity that is not visible, you get a cryptic error message.

Invoke-RestMethod: s:ClientCould not find an entity with name mserp_myentity and id 00000000-0000-0000-0000-000000000000

Set-BapEnvironmentVirtualEntity should check the visibility of the entity first when -TrackingOn is used. If the entity is not visible, the cmdlet should give the user an appropriate warning message.

In addition, Set-BapEnvironmentVirtualEntity should give a warning message for -VisibilityOff in combination with -TrackingOn. Currently, this only makes the entity invisible without any hint that tracking was not enabled.

@Splaxi
Copy link
Collaborator

Splaxi commented Mar 7, 2024

I didn't know that!

We should aim to guide and support the user to use things as they are provided by Microsoft documentation.

I'm translating this into the following supported scenarios:
-VisibilityOn
-TrackingOn - but with a validate, or even better - just handle it seamless for the user, like do -VisibilityOn wait for that the reflect and then run -TrackingOn again
-VisibilityOff (TrackingOn==$true) - but with a validate, or even better - just handle it seamless for the user, setting both properties at the same time

@AurelienClere-365
Copy link

Hello guys, joining a little late on this topic ... but happy to help if needed

All the virtual table part is now standard now (refresh metadata/schema at each F&O deployment), activation too.
https://jatomas.com/en/2024/05/24/automatic-activation-of-virtual-tables-in-d365fo/

The only thing I don't know yet is the tracking changes, which could be great to have here in order to be available right away for Synapse Link purpose in Dataverse.

Aurelien

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

No branches or pull requests

3 participants