Fx.crm:和CRM操作相關(guān)的API
1、產(chǎn)品上架下架-product.shelf
定義:Fx.crm.product.shelf(<String 產(chǎn)品Id>,<Integer value>) value=1 上架 value=2 下架
data返回值類型:Map
例:
Fx.crm.product.shelf("e1e145095f8142c891802fa36fcbd4c6",1) //上架產(chǎn)品 Fx.crm.product.shelf("e1e145095f8142c891802fa36fcbd4c6",2) //下架產(chǎn)品
2、線索-leads
線索退回:Fx.crm.leads.giveBack(<String 線索Id>,<String 線索池Id>)
data返回值類型:Map
例:
Fx.crm.leads.giveBack("05f3f656feb9496abaa4cf50f1fa22ce", "85f454b044894f83a57e1bacfd2f1beb")
線索轉(zhuǎn)移:Fx.crm.leads.move(<String 線索Id>,<String 線索池Id>)
data返回值類型:Map
例:
Fx.crm.leads.move("05f3f656feb9496abaa4cf50f1fa22ce", "85f454b044894f83a57e1bacfd2f1beb")
線索分配:Fx.crm.leads.allocate(<String 線索Id>,<String 線索池Id>,<String 用戶Id>)
data返回值類型:String
例:
Fx.crm.leads.allocate(["3ed01dcafbe4402d99d7a521aaa4e9c3"],"85f454b044894f83a57e1bacfd2f1beb","1025")
線索收回:Fx.crm.leads.takeBack(<String 線索Id>,<String 線索池Id>)
data返回值類型:String
例:
Fx.crm.leads.takeBack(["3ed01dcafbe4402d99d7a521aaa4e9c3"],"85f454b044894f83a57e1bacfd2f1beb")
3、客戶-account
客戶轉(zhuǎn)移公海:Fx.crm.account.move(<String 客戶Id>, <String 公海Id>)
data返回值類型:Map
例:
Fx.crm.account.move("ad14bbbcede240a48dc2f65787a8763d","6c1a6a54617245fe90aae5a162eb191d")
客戶退回公海:Fx.crm.account.giveBack(<String 客戶Id>, <String 公海Id>)
data返回值類型:Map
例:
Fx.crm.account.giveBack("ad14bbbcede240a48dc2f65787a8763d", "6c1a6a54617245fe90aae5a162eb191d")
客戶領(lǐng)取:Fx.crm.account.takeOut(<List 客戶Ids>)
data返回值類型:Map
例:
Fx.crm.account.takeOut("ad14bbbcede240a48dc2f65787a8763d", "6c1a6a54617245fe90aae5a162eb191d")
客戶分配:Fx.crm.account.allocate(<List<String> 客戶Ids>,<String 公海Id>,<String 用戶Id>)
data返回值類型:String
例:
Fx.crm.account.allocate(["cd097b120f584533b627c40239ece7d0"],"0ebc054e55254b8b89f09d7ac7602972","1025")
客戶收回: Fx.crm.account.takeBack(<List<String> 客戶Ids>,<String 公海Id>)
data返回值類型:String
例:
Fx.crm.account.takeBack(["cd097b120f584533b627c40239ece7d0"],"0ebc054e55254b8b89f09d7ac7602972")