The ListAgent has the following two functions:
Neither of these functions appear to be implemented
So my question is how would I get a list of the Sale Types?
I assume this is CRMScript, for me both these provide results
NSSaleType saleType = agent.GetAllSaleType();
for(Integer i = 0; i < saleType.length();i++)
NSSaleTypeEntity saleTypeEntity = agent.GetAllSaleTypeEntities(false);
for(Integer j = 0; j < saleTypeEntity.length();j++)
thanks for the reply it's not with the NSListAgent in CRM Script it is using the SuperOffice.CRM.Services.ListAgent
apart from the "NS" though my code would be exactly the same as yours
Really should not be any different as this is just exposed to CRMscript.
Same as calling thru REST API: http://<hostname>/SuperOffice/api/v1/List/SaleType/Items?includeDeleted=False
What services version are you targeting? (the services<number> part of the RemoteBaseUrl), could be that the version that you are targeting doesn't have those methods. Latest stable version is services87.
you are correct I had copied over an old config file and it was pointing to services 80
Thanks for the assistance - I'll go through all old config files and update them!!!
LukkDette nettstedet bruker informasjonskapsler. SuperOffice bruker informasjonskapsler hovedsaklig for å overvåke trafikken på nettstedet, og for å forbedre innholdet. Fortsett å bruke nettstedet hvis du samtykker til at vi bruker informasjonskapsler. Les mer: Personvernerklæring