lwhitelock / HuduAutomation

71 stars 76 forks source link

Issue in Hudu-Customer-Products-Magic-Dash.ps1 when using multiple companies #18

Open chopemaster opened 2 years ago

chopemaster commented 2 years ago

Hi Luke,

first of all, thanks for your great contribution.

We are new to Hudu and I wanted to get an early victory with your Hudu-Customer-Products-Magic-Dash.ps1 Script. If I create my flexible asset for one customer everything is fine, magic dashes are created. But when entering the 2nd customer, it does not work anymore. I did a little debugging (my powershell knowledge is very limited) and it looks like the code rows 49 to 51 are creating arrays instead of unique values when they are multiple companies who have the asset. I am really not skilled enough to fix it but I think it's quite easy for you. If you need any more debugging, please let me know.

I hope you can spare the time to fix this as I find this an easy solution to show the techs what is booked or not.

Regards, Christian