Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Find a contact using a user-defined field
using SuperOffice; using SuperOffice.CRM.Services; using SuperOffice.CRM.ArchiveLists using(SoSession.Authenticate( "SAL1", "" )) { using(FindAgent agent = new FindAgent()) { string[] fields = new string[1] { "contactUdef/SuperOffice:1" }; ArchiveRestrictionInfo[] restrictions = agent.GetSpecifiedCriteriaInformationWithDefaults( "Criteria", "findcontact", "associate=12345", fields, null ).Restrictions; restrictions[0].Values = new string[1] { "s" }; restrictions[0].IsActive = true FindResults find = agent.FindFromRestrictions( restrictions, "findcontact", 50, 0 ); DumpResult( find.ArchiveColumns, find.ArchiveRows ); } }
Was this page helpful?