Hello,
We have an Add-On we have already created and I am trying to add the ability to add User Defined Fields, Tables and Objects. I want to do this either at Install time or the first time this AddOn is run on another system. It seems simpler to do this the first time it is run but I will do it which ever way works.
I was using the UserFieldsMD Object and in a Stand Alone project this works so I am pretty sure this part of the code is valid. But when I add the code to my AddOn it gives me a strange error. It errors on the .Add method and says that the Object is not a valid reference, but it still creates the UDF???. If the UDF already exists it returns a -1 with but no error.
I've checked what I could and this is the first thing it does right after I connect to the company so no other objects are open(which I am aware does cause problems). So I am not even sure if this is the proper or a valid time to do this.
Is there something I am missing in doing this or is there other alternate methods I could use to do this?
Thank You in Advance for any Help
Paul.