0

我们正在开发 C#.Net4.0 桌面应用程序,用户输入 Netsuite CRM Credtianls 并点击登录按钮。我们能够使用护照身份验证验证用户登录详细信息。有什么方法或 api 可用,我们可以检索列表成功登录后来自 Netsuite CRM 的对象(联系人、客户等)

4

3 回答 3

0

为了让客户使用 CustomerSearchBasic

http://tellsaqib.github.io/NSPHP-Doc/dd/d21/class_customer_search_basic.html

同样对于联系人使用 ContactSearchBasic

http://tellsaqib.github.io/NSPHP-Doc/dc/d48/class_contact_search_basic.html

于 2013-04-19T10:49:59.927 回答
0

您需要使用搜索来获取这些 Customer、Contact 等。这是Customer Search的示例代码

            CustomerSearch custSearch = new CustomerSearch();
            CustomerSearchBasic custSearchBasic = new CustomerSearchBasic();
            SearchStringField entityId = null;
            if (!customerEmailId.Equals(""))
            {
                entityId = new SearchStringField();
                entityId.@operator = SearchStringFieldOperator.contains;
                entityId.operatorSpecified = true;
                entityId.searchValue = "abc";
                custSearchBasic.email = entityId;
            }                
            custSearch.basic = custSearchBasic;

            SearchPreferences preferences = new SearchPreferences();
            preferences.bodyFieldsOnly = false;
            NetsuiteSession.session.searchPreferences = preferences;

            SearchResult result = NetsuiteSession.session.search(custSearch);

同样,您可以使用搜索来搜索您想要的联系人和其他记录。

于 2013-09-05T05:33:42.460 回答
0

看看SuiteTalk Schema Browser

在 Schema 浏览器中,您可以找到 NetSuite API 的完整定义。

UI 不是那么漂亮,但您会在那里找到所有可能的 API 内容。

例如要查找联系人或客户搜索,请在记录下找到Relationship.xsd 并将其展开。

于 2013-12-30T13:57:53.113 回答