daryllabar / DLaB.Xrm.XrmToolBoxTools

Plugins for the XrmToolBox
MIT License
76 stars 69 forks source link

Actions are not generated in an online environment #284

Closed maerger closed 3 years ago

maerger commented 3 years ago

Tool and Version What tool/version is it that you're reporting a bug for? i.e. EarlyBoundGenerator V 1.2021.4.19

Describe the bug Actions are not generated

To Reproduce Steps to reproduce the behavior:

  1. Open EarlyBound generator and connect to online environment using Oath2 AppId and Client secret
  2. Select Actions in Action Whitelist
  3. Press Create Actions
  4. The expected code is not generated

Expected behavior I expect a file with the whitelisted actions. The file is created with 0bytes but deleted immediately after the crmsvcutil ends

Screenshots image

Additional context Log

 Ensuring Context File is Accessible 
 Writing file TestHSLUActions.cs to C:\Users\rm\AppData\Local\Temp\tmp91B1.tmp 
Code written to C:\Users\rm\AppData\Local\Temp\tmp91B1.tmp.
 Copying File C:\Temp\TestHSLUActions.cs 
 Cleaning up Temporary File C:\Users\rm\AppData\Local\Temp\tmp91B1.tmp 
 C:\Users\rm\AppData\Local\Temp\tmp91B1.tmp Moved To: C:\Temp\TestHSLUActions.cs 
Creation Complete!
CRM Authentication Type Detected: None
Tracking Actions Generation Event.
Executing for Actions
Executing "C:\Users\rm\AppData\Roaming\MscrmTools\XrmToolBox\Plugins\DLaB.EarlyBoundGenerator\crmsvcutil.exe" /generateActions /out:"C:\Temp\TestHSLUActions.cs" /namespace:"Hslu.D365.Core.Domain.Model" /SuppressGeneratedCodeAttribute /codecustomization:"DLaB.CrmSvcUtilExtensions.Action.CustomizeCodeDomService,DLaB.CrmSvcUtilExtensions" /codegenerationservice:"DLaB.CrmSvcUtilExtensions.Action.CustomCodeGenerationService,DLaB.CrmSvcUtilExtensions" /codewriterfilter:"DLaB.CrmSvcUtilExtensions.Action.CodeWriterFilterService,DLaB.CrmSvcUtilExtensions" /metadataproviderservice:"DLaB.CrmSvcUtilExtensions.BaseMetadataProviderService,DLaB.CrmSvcUtilExtensions" /connectionstring:"AuthType=ClientSecret;Url=https://dev1-hsluzern.api.crm4.dynamics.com;ClientId=e42171f6-a399-4595-9cbe-7054d32c82bf;ClientSecret=**********************************;" 
CrmSvcUtil : CRM Service Utility [Version 9.1.0.80]
¸ 2020 Microsoft Corporation. All rights reserved

 Ensuring Context File is Accessible 
 Writing file TestHSLUActions.cs to C:\Users\rm\AppData\Local\Temp\tmpD2CD.tmp 
Code written to C:\Users\rm\AppData\Local\Temp\tmpD2CD.tmp.
 Copying File C:\Temp\TestHSLUActions.cs 
 Cleaning up Temporary File C:\Users\rm\AppData\Local\Temp\tmpD2CD.tmp 
 C:\Users\rm\AppData\Local\Temp\tmpD2CD.tmp Moved To: C:\Temp\TestHSLUActions.cs 
Creation Complete!
maerger commented 3 years ago

If I set the option "Create One File Per Action" to "true" the files are cretaed...

daryllabar commented 3 years ago

Dorked a "!" where it shouldn't have been. Thanks for submitting. New version is publishing!