English 中文(简体)
糖业 《SOAP》规定:联系人与探矿者之间的相互关系
原标题:SugarCRM SOAP set_relationship between Contacts and Prospect lists bug
  • 时间:2010-06-17 10:00:03
  •  标签:
  • php
  • sugarcrm

我试图在一份探矿清单(目标清单)和一份联系人之间建立某种关系。

I create a new contact and get the id of a prospect list all using classes I created which are just wrappers for the soap api calls sugar provides. But the code boils down to this soap call:

$this->_sugarsoap->client->__soapCall( set_relationship , array($this->getSessionid(),$relationship));

1 D-1, 1 D-1, 1 D-1, 1 P-5, 1 P-4, 1 P-3, 1 P-2, 1 GS(OL), 1 GS(OL) 1. 届会的会期和薪金等级是一阵列,可以:

array
  0 => string  ProspectLists  (length=13)
  1 => string  180ab1f5-cf7e-d386-50f8-4c18a790e016  (length=36)
  2 => string  Contacts  (length=8)
  3 => string  76323942-8cbb-3224-f18a-4c19efa80a1b  (length=36)

在我尝试这一错误之后,我总是会发现这一错误:(我确实是一var一 call一声的回落价值。)

object(stdClass)[5]
  public  number  => string  20  (length=2)
  public  name  => string  Module Does Not Exist  (length=21)
  public  description  => string  This module is not available on this server  (length=43)

这似乎像甘蔗园一样,因为我确实有接触模块和探矿清单模块。 我知道这一事实,因为我通过大跃电话增加联系,并通过大跃式电话检索探矿清单的复制件。

我在甘蔗论坛上发现this thread,但我的确在食糖论坛上尝试过该守则,但我仍然有同样的错误。

任何人都有解决办法? 我确实需要通过大跃式电话联系一份探矿清单(目标清单)。

我正在使用5.5.0(我还用甘蔗第5.5.2号手法审判,并照搬同样的错误)在布图服务器上使用我的舱。

感谢!

EDIT:

奥基斯·我与我的fix子一道工作,稍加改正。 在一阵列中,我确实必须使用以下格式:

  module1  =>  modnameA ,
  module1_id  =>  modidA ,
  module2  =>  modnameB ,
  module2_id  =>  modidB

希望有助于:

问题回答

守则将有助于确保:

$relationship = array(
   session  => $session_id, //session id that comes after login by soap
   set_relationship_value =>array(
     module1  =>  Prospect ,  // your module name
     module1_id  => "$ProspectID", // your first module id
     module2  =>  Contact , // your second module
     module2_id  => "$ContactId", // send module id
  )
);

使用这一阵列。 希望这将有助于你。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签