License Tracking Function

I was following @mbayley’s post on setting up license tracking https://www.epiusers.help/t/log-active-licenses-function/125986/ but running into an error

I thought it was my edits so I did a copy/paste of the example code and keep getting the same error. I don’t do many functions so I may be missing something easy. I did verify Company is included, and the usings added in. I could copy the text of the errors:

Did you add the service references in the function library?

2 Likes

No but I have now added UD40 still getting the AdminSession errors, is there another service or table I need to add?

Just the Ice.BO.AdminSession service. I will update my post with this info

I added UD40 and the AdminSession services and no more errors. Now to wire it up to the UDs I created. Thanks!

1 Like

Note for future, to set a UD in the code you need to use [“”] brackets example:

["DateUsed_c"] = DateTime.Now,