That is an example and is the first item, there are 14-15 that do various things. To try and shift away from having around 15k endpoints active, i am trying to do this:
Hello @Jacob-Evans I haven’t looked at your code yet…but if you give all your endpoints -ID parameter names, you will be able to figure out which endpoint is causing the problem, instead of having the auto generated ID for the endpoint…then you can check the code in that…as that is your problem…
I already know what endpoint is causing the issue, i posted it directly below the error message.
The problem i am having is not knowing what endpoint is the problem, its the error message that follows the random generated ID that i am having a problem with.
So i went ahead and removed the -id from Get-Details and it threw the same error. However when i look in the Diagnostics Page, i can see the the Get-Details looks like they ran:
Personally for this (from what i’m able to gather) i use the following:
New-UDbutton -text “show” -onclick {enter the endpoint code here } (the onclick should also be able to take a ud-endpoint instead of a scriptblock)
May be the “Show-UDModal” being called in the endpoint which is causing the issues, as it is not intended to be “onload”, but instead triggered by an event.
I’ll try to reverse engineer your code later and see if i can come to a solution,
Actually, what you just said made me realize that i wasn’t actually making a button, i was calling Get-Details and trying to execute the endpoint automatically, that is probably why it was failing, i wasn’t waiting for a button to be clicked.
Now the kicker is that when you click the button, instead of showing the info for the user I wanted to show info on, it only shows the info from the last user in the list.