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

typing Y in Remove-D365Model and Install-D365Model #429

Open
valerymoskalenko opened this issue May 21, 2020 · 4 comments
Open

typing Y in Remove-D365Model and Install-D365Model #429

valerymoskalenko opened this issue May 21, 2020 · 4 comments

Comments

@valerymoskalenko
Copy link

Remove-D365Model

When I am removing the model, I have to type Y on the CMD console.
it works only with ShoworiginalProgress option

image

Import-D365Model

When I am updating the model with replacing, I have to type Y on the CMD console too.
But it doesn't work with the ShoworiginalProgress option or without it.

image
image

The level of this issue is Low.

@Splaxi
Copy link
Collaborator

Splaxi commented May 21, 2020

Thank you for sharing!

I'll take a look at it.

Could we agree that you know what you are doing when using Remove and the -Replace parameter for the Install cmdlets? We should be able to always parse a confirm to the underlying ModelUtil.exe...

@valerymoskalenko
Copy link
Author

Yes.
Replace means remove the model and then install it.
Agreed, on the script provided above it makes no sense, since I'm removing model in a separate command. And then install it again.

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/models-export-import#install-a-model-in-a-development-environment

@Splaxi
Copy link
Collaborator

Splaxi commented Jun 16, 2020

I've looked into what the code inside the ModelUtil.exe....

The implementation is a bit "rough" to put it nicely. I'm still testing how to work around their implementation of the confirmation / prompt.

@yevheniilavrenchuk
Copy link

I've looked into what the code inside the ModelUtil.exe....

The implementation is a bit "rough" to put it nicely. I'm still testing how to work around their implementation of the confirmation / prompt.

Faced that issue as well. Moreover I need to put this command into script, so the model will automatically replaced with another one.
Echo Y | Import-D365Model -Replace... or any other solution to pass Y to confirm, doesn't work.
I'm wondering, maybe you have some solution for it?

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