<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Sugar API - create contact, quote</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/6133/sugar-api---create-contact-quote</link><description>Hello, on one of my client&amp;#39;s websites, we are using Zapier + SugarCRM (Zapier sends requests to Sugar in given situations). Now we want to get rid of the Zapier layer and send requests directly from the website to SugarCRM to create Contacts or Cases</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Sugar API - create contact, quote</title><link>https://sugarclub.sugarcrm.com/thread/27998?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 13:47:24 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:8074f8a2-dfe5-4faa-9bbc-d9a3517983e4</guid><dc:creator>Jakub Dreksler</dc:creator><description>&lt;p&gt;Thanks &lt;a href="/members/aserrazina"&gt;Andre Serrazina&lt;/a&gt;, this is working great! You saved me lots of time.&lt;/p&gt;
&lt;p&gt;Thank you as well for the hint about checking the request payload, that should solve all my problems in the future when working with other modules.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sugar API - create contact, quote</title><link>https://sugarclub.sugarcrm.com/thread/27992?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 17:13:03 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:b085d189-df26-4fe3-b3db-950ace7723ec</guid><dc:creator>Andre Serrazina</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="/members/jakubdreksler332249"&gt;Jakub Dreksler&lt;/a&gt;,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Email Address&lt;/em&gt;&amp;nbsp;is actually a separate module.&amp;nbsp;&lt;br /&gt;An easy way to double-check how to format the requests is to&amp;nbsp;&lt;span&gt;peek&lt;/span&gt; at how Sugar GUI does it and copy it for your request.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you check the network tab in the browser developer&amp;nbsp;console&amp;nbsp;when adding a new Contact you can see how Sugar formats the request.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://www.screencast.com/t/DOAKNiARyaC9"&gt;https://www.screencast.com/t/DOAKNiARyaC9&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In this case, would be something like this:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="json"&gt;{  &amp;quot;first_name&amp;quot;:&amp;quot;John&amp;quot;,
   &amp;quot;last_name&amp;quot;:&amp;quot;Doe API2&amp;quot;,
   &amp;quot;email&amp;quot;:[{&amp;quot;email_address&amp;quot;:&amp;quot;apitest6@test.com&amp;quot;,&amp;quot;primary_address&amp;quot;:true,&amp;quot;opt_out&amp;quot;:false}]
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Let me know if this works for you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Andr&amp;eacute;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sugar API - create contact, quote</title><link>https://sugarclub.sugarcrm.com/thread/27988?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 14:29:46 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:a7af6255-ae98-4221-bc4d-17dba66a848f</guid><dc:creator>Jakub Dreksler</dc:creator><description>&lt;p&gt;Thanks &lt;a href="/members/aserrazina"&gt;Andre Serrazina&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I managed to tweak a bit and got it working but currently, I got a problem with passing an email field for the &amp;quot;Contacts&amp;quot; module, maybe you will be able to help.&lt;/p&gt;
&lt;p&gt;Email field there is not a regular text/input, it&amp;#39;s some kind of &amp;quot;repeater&amp;quot; field, where I can put more than one email.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/1000x750/__key/communityserver-discussions-components-files/54/pastedimage1673274434524v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;I tried to post a regular string for the &amp;quot;email&amp;quot; field in my request but that apparently does not work (email field is not set with any value)&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/1000x750/__key/communityserver-discussions-components-files/54/pastedimage1673274519575v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Are you able to tell me what is the proper way to set this field with a request?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sugar API - create contact, quote</title><link>https://sugarclub.sugarcrm.com/thread/27987?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 13:14:44 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:40b0cd9c-c037-4095-9bb0-d9e9ccbd1eae</guid><dc:creator>Andre Serrazina</dc:creator><description>&lt;p&gt;Hello &lt;a href="/members/jakubdreksler332249"&gt;Jakub Dreksler&lt;/a&gt;,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;That&amp;#39;s it. If you want to list all the endpoints available you can navigate to:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&amp;lt;yoursugarinstanceurl&amp;gt;rest/v11/help&lt;br /&gt;&lt;br /&gt;The one that you are looking for is the &lt;a href="https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_12.2/Integration/Web_Services/REST_API/Endpoints/module_POST/"&gt;/&amp;lt;module&amp;gt; POST&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sugar API - create contact, quote</title><link>https://sugarclub.sugarcrm.com/thread/27985?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 12:20:11 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:b8f29e37-1736-446f-856b-e174b825de9a</guid><dc:creator>Jakub Dreksler</dc:creator><description>&lt;p&gt;Okey I think what I was looking for was covered here -&amp;nbsp;&lt;a href="https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_12.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/"&gt;https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_12.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>