Programatically adding Company - Interests

Dear All,

I am needing to import programatically new Company interests into Superoffice v8 and then assign these interests to the appropriate companies.

I have gone through the v8 SDK documentation and it has left me confused as to how to proceed. 

Does anyone have any starting pointers they could give me please ?

Thanks in advance

Dave Hayzen

 

 

RE: Programatically adding Company - Interests

A.f.a.i.k. the Win client has no API for adding list items.
New interests can be imported using SoAdmin.
But I think it is quite limited. Only the Interest.Name field can be imported.
(Tooltip wil be Auto-import and rank will be 0)

You can add/remove existing company or contact interests links to/from any company or person using the COM API's IInterests collection object. For Add, you will need to know the correct id of the newly imported interest. You can look it up by name with IDataBase.GetListItemByName( 70, "Some newly imported interst name" ).

You may instead want to look into the Netserver APIs. I know nothing about these but my guess is that they might have come much further. Tony knows I am sure.

Conrad

Af: Conrad Weyns 14. jul 2017

RE: Programatically adding Company - Interests

Hi Conrad,

Thanks for your reply.

Yes, it does seem that the COM API doesn't allow for adding Company Interests.

I think Netserver API's are the way forward, but have struggled with the documentation.

Hopefully Tony will respond, or should I post in a different group ?

Dave.

Af: Dave Hayzen 14. jul 2017

RE: Programatically adding Company - Interests

Hi Dave,
Yes I expect some non-window group would be better.
Tony is on vacation and so are many others.
Conrad

Af: Conrad Weyns 15. jul 2017

RE: Programatically adding Company - Interests

We made a utility for importing different sorts of info into SO using NetServer, including Contact Interests.  Josip will post some code here shortly .

Af: Inge Simon Thorbjørnsen 15. jul 2017

RE: Programatically adding Company - Interests

Many thanks for the responses.

Some example code would be fabulous. 

Af: Dave Hayzen 17. jul 2017

RE: Programatically adding Company - Interests

Many thanks for the responses.

Some example code would be fabulous. 

Af: Dave Hayzen 17. jul 2017