<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SugarCRM SOAP Examples</title>
	<atom:link href="http://systemsconsciousness.com/2009/04/10/sugarcrm-soap-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://systemsconsciousness.com/2009/04/10/sugarcrm-soap-examples/</link>
	<description></description>
	<lastBuildDate>Tue, 11 May 2010 21:21:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dan</title>
		<link>http://systemsconsciousness.com/2009/04/10/sugarcrm-soap-examples/comment-page-1/#comment-1420</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 10 May 2010 06:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://deanhaddock.com/mercury/?p=370#comment-1420</guid>
		<description>Hi, I am able to create the account and contact, but cannot link the contact and account. tried a lot of things, not sure what to do here.

code below:

 array(
      &#039;user_name&#039; =&gt; &#039;xxx&#039;,
      &#039;password&#039; =&gt; md5(&#039;xxx&#039;),
    )
 );

  $login_results = $client-&gt;call(&#039;login&#039;,$auth_array);
 
  $session_id =  $login_results[&#039;id&#039;];
 
  $user_guid = $client-&gt;call(&#039;get_user_id&#039;,$session_id);
 
  // printf(&quot;\n&quot;.$auth_array[&#039;user_auth&#039;][&#039;user_name&#039;].&#039; has a GUID of &#039;  . $user_guid . &quot;\n\n&quot;);


$set_entry_params2 = array(
                       &#039;session&#039; =&gt; $session_id,
                       &#039;module_name&#039; =&gt; &#039;Accounts&#039;,
                       &#039;name_value_list&#039;=&gt;array(
				   array(&#039;name&#039;=&gt;&#039;name&#039;,&#039;value&#039;=&gt;$_POST[&#039;company_name&#039;]),
				   array(&#039;name&#039; =&gt; &#039;assigned_user_id&#039;,&quot;value&quot; =&gt; &#039;1&#039;),
				   array(&#039;name&#039; =&gt; &#039;campaign_id&#039;,&quot;value&quot; =&gt; &#039;5c707ffd-6e25-80dc-4c3a-4be375ed684b&#039;),
				   array(&#039;name&#039;=&gt;&#039;phone_office&#039;,&#039;value&#039;=&gt;$_POST[&#039;phone&#039;]),
				   array(&#039;name&#039; =&gt; &#039;team_id&#039;,&quot;value&quot; =&gt; &#039;1&#039;)
				));

$account_id = $login_results[&#039;id&#039;];

$set_entry_params = array(
                       &#039;session&#039; =&gt; $session_id,
                       &#039;module_name&#039; =&gt; &#039;Contacts&#039;,
                       &#039;name_value_list&#039;=&gt;array(
					array(&#039;name&#039;=&gt;&#039;first_name&#039;,&#039;value&#039;=&gt;$_POST[&#039;first_name&#039;]),
				   	array(&#039;name&#039;=&gt;&#039;last_name&#039;,&#039;value&#039;=&gt;$_POST[&#039;last_name&#039;]),									array(&#039;name&#039;=&gt;&#039;email1&#039;,&#039;value&#039;=&gt;$_POST[&#039;email&#039;]),
				      array(&#039;name&#039;=&gt;&#039;account_name&#039;,&#039;value&#039;=&gt;$_POST[&#039;company_name&#039;]),
	 				array(&#039;name&#039; =&gt; &#039;assigned_user_name&#039;,&quot;value&quot; =&gt; &#039;admin&#039;),
					array(&#039;name&#039; =&gt; &#039;campaign_id&#039;,&quot;value&quot; =&gt; &#039;5c707ffd-6e25-80dc-4c3a-4be375ed684b&#039;),
					array(&#039;name&#039;=&gt;&#039;phone_work&#039;,&#039;value&#039;=&gt;$_POST[&#039;phone&#039;])
				));

$contact_id = $login_results[&#039;id&#039;];


$relationship = array(&#039;module1&#039; =&gt; &#039;Contacts&#039;, &#039;module1_id&#039; =&gt; &quot;$contact_id&quot;, &#039;module2&#039; =&gt; &#039;Accounts&#039;, &#039;module2_id&#039; =&gt; &quot;$account_id&quot;);

printf(&quot;\n&quot;.$relationship.&#039; has a GUID of &#039;  . $user_guid . &quot;\n\n&quot;);

$soapArgs = array(
&#039;session&#039; =&gt; $soapSessionId,
&#039;set_relationship_value&#039; =&gt; array(
&#039;module1&#039; =&gt; &#039;Contacts&#039;,
&#039;module1_id&#039; =&gt; $contact_id,
&#039;module2&#039; =&gt; &#039;Accounts&#039;,
&#039;module2_id&#039; =&gt; $account_id
)
);

$result = $client-&gt;call(&#039;set_entry&#039;,$set_entry_params);
$result2 = $client-&gt;call(&#039;set_entry&#039;,$set_entry_params2);
$result3 = $client-&gt;call(&#039;set_relationship&#039;,$soapArgs);
$response = $client-&gt;call(&#039;set_relationship&#039;,$session_id, $relationship);
 
 // this redirects to a page specified in the previous page...
 // header(&quot;Location:  &quot; . $_POST[&#039;redirect&#039;]);

	
?&gt;</description>
		<content:encoded><![CDATA[<p>Hi, I am able to create the account and contact, but cannot link the contact and account. tried a lot of things, not sure what to do here.</p>
<p>code below:</p>
<p> array(<br />
      &#8216;user_name&#8217; =&gt; &#8216;xxx&#8217;,<br />
      &#8216;password&#8217; =&gt; md5(&#8216;xxx&#8217;),<br />
    )<br />
 );</p>
<p>  $login_results = $client-&gt;call(&#8216;login&#8217;,$auth_array);</p>
<p>  $session_id =  $login_results['id'];</p>
<p>  $user_guid = $client-&gt;call(&#8216;get_user_id&#8217;,$session_id);</p>
<p>  // printf(&#8220;\n&#8221;.$auth_array['user_auth']['user_name'].&#8217; has a GUID of &#8216;  . $user_guid . &#8220;\n\n&#8221;);</p>
<p>$set_entry_params2 = array(<br />
                       &#8217;session&#8217; =&gt; $session_id,<br />
                       &#8216;module_name&#8217; =&gt; &#8216;Accounts&#8217;,<br />
                       &#8216;name_value_list&#8217;=&gt;array(<br />
				   array(&#8216;name&#8217;=&gt;&#8217;name&#8217;,'value&#8217;=&gt;$_POST['company_name']),<br />
				   array(&#8216;name&#8217; =&gt; &#8216;assigned_user_id&#8217;,&#8221;value&#8221; =&gt; &#8216;1&#8242;),<br />
				   array(&#8216;name&#8217; =&gt; &#8216;campaign_id&#8217;,&#8221;value&#8221; =&gt; &#8216;5c707ffd-6e25-80dc-4c3a-4be375ed684b&#8217;),<br />
				   array(&#8216;name&#8217;=&gt;&#8217;phone_office&#8217;,'value&#8217;=&gt;$_POST['phone']),<br />
				   array(&#8216;name&#8217; =&gt; &#8216;team_id&#8217;,&#8221;value&#8221; =&gt; &#8216;1&#8242;)<br />
				));</p>
<p>$account_id = $login_results['id'];</p>
<p>$set_entry_params = array(<br />
                       &#8217;session&#8217; =&gt; $session_id,<br />
                       &#8216;module_name&#8217; =&gt; &#8216;Contacts&#8217;,<br />
                       &#8216;name_value_list&#8217;=&gt;array(<br />
					array(&#8216;name&#8217;=&gt;&#8217;first_name&#8217;,'value&#8217;=&gt;$_POST['first_name']),<br />
				   	array(&#8216;name&#8217;=&gt;&#8217;last_name&#8217;,'value&#8217;=&gt;$_POST['last_name']),									array(&#8216;name&#8217;=&gt;&#8217;email1&#8242;,&#8217;value&#8217;=&gt;$_POST['email']),<br />
				      array(&#8216;name&#8217;=&gt;&#8217;account_name&#8217;,'value&#8217;=&gt;$_POST['company_name']),<br />
	 				array(&#8216;name&#8217; =&gt; &#8216;assigned_user_name&#8217;,&#8221;value&#8221; =&gt; &#8216;admin&#8217;),<br />
					array(&#8216;name&#8217; =&gt; &#8216;campaign_id&#8217;,&#8221;value&#8221; =&gt; &#8216;5c707ffd-6e25-80dc-4c3a-4be375ed684b&#8217;),<br />
					array(&#8216;name&#8217;=&gt;&#8217;phone_work&#8217;,'value&#8217;=&gt;$_POST['phone'])<br />
				));</p>
<p>$contact_id = $login_results['id'];</p>
<p>$relationship = array(&#8216;module1&#8242; =&gt; &#8216;Contacts&#8217;, &#8216;module1_id&#8217; =&gt; &#8220;$contact_id&#8221;, &#8216;module2&#8242; =&gt; &#8216;Accounts&#8217;, &#8216;module2_id&#8217; =&gt; &#8220;$account_id&#8221;);</p>
<p>printf(&#8220;\n&#8221;.$relationship.&#8217; has a GUID of &#8216;  . $user_guid . &#8220;\n\n&#8221;);</p>
<p>$soapArgs = array(<br />
&#8217;session&#8217; =&gt; $soapSessionId,<br />
&#8217;set_relationship_value&#8217; =&gt; array(<br />
&#8216;module1&#8242; =&gt; &#8216;Contacts&#8217;,<br />
&#8216;module1_id&#8217; =&gt; $contact_id,<br />
&#8216;module2&#8242; =&gt; &#8216;Accounts&#8217;,<br />
&#8216;module2_id&#8217; =&gt; $account_id<br />
)<br />
);</p>
<p>$result = $client-&gt;call(&#8217;set_entry&#8217;,$set_entry_params);<br />
$result2 = $client-&gt;call(&#8217;set_entry&#8217;,$set_entry_params2);<br />
$result3 = $client-&gt;call(&#8217;set_relationship&#8217;,$soapArgs);<br />
$response = $client-&gt;call(&#8217;set_relationship&#8217;,$session_id, $relationship);</p>
<p> // this redirects to a page specified in the previous page&#8230;<br />
 // header(&#8220;Location:  &#8221; . $_POST['redirect']);</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://systemsconsciousness.com/2009/04/10/sugarcrm-soap-examples/comment-page-1/#comment-1419</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Mon, 12 Apr 2010 21:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://deanhaddock.com/mercury/?p=370#comment-1419</guid>
		<description>I&#039;m having trouble interacting with modules that were custom-made -- For instance, I have a module for Vendors. It shows up when I run the get_available_modules command, but when I try to call get_module_fields on it, I get an error saying &quot;This module is not available on this server&quot;

Anyone ever ran into this, and know the solution to accessing custom modules through SOAP?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having trouble interacting with modules that were custom-made &#8212; For instance, I have a module for Vendors. It shows up when I run the get_available_modules command, but when I try to call get_module_fields on it, I get an error saying &#8220;This module is not available on this server&#8221;</p>
<p>Anyone ever ran into this, and know the solution to accessing custom modules through SOAP?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: masbha</title>
		<link>http://systemsconsciousness.com/2009/04/10/sugarcrm-soap-examples/comment-page-1/#comment-1413</link>
		<dc:creator>masbha</dc:creator>
		<pubDate>Thu, 11 Mar 2010 05:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://deanhaddock.com/mercury/?p=370#comment-1413</guid>
		<description>can u tell me how can i create cases using this way. i tried this way but i could not got any resul</description>
		<content:encoded><![CDATA[<p>can u tell me how can i create cases using this way. i tried this way but i could not got any resul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dean</title>
		<link>http://systemsconsciousness.com/2009/04/10/sugarcrm-soap-examples/comment-page-1/#comment-1408</link>
		<dc:creator>dean</dc:creator>
		<pubDate>Wed, 10 Feb 2010 18:28:48 +0000</pubDate>
		<guid isPermaLink="false">http://deanhaddock.com/mercury/?p=370#comment-1408</guid>
		<description>Hey, thanks, Fred! Happy to help.</description>
		<content:encoded><![CDATA[<p>Hey, thanks, Fred! Happy to help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fred</title>
		<link>http://systemsconsciousness.com/2009/04/10/sugarcrm-soap-examples/comment-page-1/#comment-1407</link>
		<dc:creator>fred</dc:creator>
		<pubDate>Wed, 10 Feb 2010 18:19:39 +0000</pubDate>
		<guid isPermaLink="false">http://deanhaddock.com/mercury/?p=370#comment-1407</guid>
		<description>Fucking brilliant! Thanks mate. Saved my ass.</description>
		<content:encoded><![CDATA[<p>Fucking brilliant! Thanks mate. Saved my ass.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jerry</title>
		<link>http://systemsconsciousness.com/2009/04/10/sugarcrm-soap-examples/comment-page-1/#comment-1402</link>
		<dc:creator>jerry</dc:creator>
		<pubDate>Sat, 16 Jan 2010 16:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://deanhaddock.com/mercury/?p=370#comment-1402</guid>
		<description>Hi there, great article, but that went straight over my head! I am not a dev (as you may have guessed). However i am considering using Sugar for my new online business.  I havent had the integration into sugar specified as yet, and I am afraid the dev is gonna rip my heart out.  So I was thinking if there is already a plug in or something similar developed where the website would automatically insert the information into the CRM? ie Contact info, Order information, payment details etc...</description>
		<content:encoded><![CDATA[<p>Hi there, great article, but that went straight over my head! I am not a dev (as you may have guessed). However i am considering using Sugar for my new online business.  I havent had the integration into sugar specified as yet, and I am afraid the dev is gonna rip my heart out.  So I was thinking if there is already a plug in or something similar developed where the website would automatically insert the information into the CRM? ie Contact info, Order information, payment details etc&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dean</title>
		<link>http://systemsconsciousness.com/2009/04/10/sugarcrm-soap-examples/comment-page-1/#comment-1390</link>
		<dc:creator>dean</dc:creator>
		<pubDate>Wed, 18 Nov 2009 22:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://deanhaddock.com/mercury/?p=370#comment-1390</guid>
		<description>Hi Tanish,

Thanks for the kind words. Hopefully pt2 will be helpful, as well. It&#039;s mostly about integration with Google Charts API.

Are you happy with OSCommerce? I&#039;ve never used it, but we have a project that it may be a good fit for...

Cheers,
Dean</description>
		<content:encoded><![CDATA[<p>Hi Tanish,</p>
<p>Thanks for the kind words. Hopefully pt2 will be helpful, as well. It&#8217;s mostly about integration with Google Charts API.</p>
<p>Are you happy with OSCommerce? I&#8217;ve never used it, but we have a project that it may be a good fit for&#8230;</p>
<p>Cheers,<br />
Dean</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanish</title>
		<link>http://systemsconsciousness.com/2009/04/10/sugarcrm-soap-examples/comment-page-1/#comment-1389</link>
		<dc:creator>Tanish</dc:creator>
		<pubDate>Wed, 18 Nov 2009 12:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://deanhaddock.com/mercury/?p=370#comment-1389</guid>
		<description>Thank you very much m8
This tutorial came very much useful for me to build an integration module for OSCommerce2.2 and SugarCRM 5.2. I haven&#039;t finished it yet.

(Going to check the part-2 tomorrow which might possibly help me do the rest of this project :P)</description>
		<content:encoded><![CDATA[<p>Thank you very much m8<br />
This tutorial came very much useful for me to build an integration module for OSCommerce2.2 and SugarCRM 5.2. I haven&#8217;t finished it yet.</p>
<p>(Going to check the part-2 tomorrow which might possibly help me do the rest of this project <img src='http://systemsconsciousness.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://systemsconsciousness.com/2009/04/10/sugarcrm-soap-examples/comment-page-1/#comment-1379</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 26 Oct 2009 22:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://deanhaddock.com/mercury/?p=370#comment-1379</guid>
		<description>Dean that would be awesome, can you email me directly for assistance? We&#039;re currently using salesforce and it would be nice if once someone sumbits a form using cforms that salesforce would capture the info. ben@mcelroyfilms.com</description>
		<content:encoded><![CDATA[<p>Dean that would be awesome, can you email me directly for assistance? We&#8217;re currently using salesforce and it would be nice if once someone sumbits a form using cforms that salesforce would capture the info. <a href="mailto:ben@mcelroyfilms.com">ben@mcelroyfilms.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean Haddock</title>
		<link>http://systemsconsciousness.com/2009/04/10/sugarcrm-soap-examples/comment-page-1/#comment-1376</link>
		<dc:creator>Dean Haddock</dc:creator>
		<pubDate>Sat, 24 Oct 2009 16:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://deanhaddock.com/mercury/?p=370#comment-1376</guid>
		<description>Hi Ben--I could probably figure it out. What&#039;s up?</description>
		<content:encoded><![CDATA[<p>Hi Ben&#8211;I could probably figure it out. What&#8217;s up?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
