Chat transcript: Create/Update with set_entry

Hi Team, 

I am trying to create a Chat Transcript with the set_entry method.
I have tried to create Calls and it works perfect.

But I cant manage to create a Chat transcript.
The singular and plural names are the same chat transcript

My XML request
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:ns4="https://{domain}.sugarondemand.com/sugarcrm"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">;
<SOAP-ENV:Body>
<ns4:set_entry>
<session xsi:type="xsd:string">2srjdvg2lkahrthicbeqksi694</session>
      <module_name xsi:type="xsd:string">chat transcript</module_name>
      <name_value_list xsi:type="soapenc:Array" soapenc:arrayType="xsd:string">
        <Item >
          <name>new_with_id</name>
          <value>true</value>
        </Item>
        <Item >
          <name>name</name>
          <value>Called by test999</value>
        </Item>
        <Item >
          <name>duration_minutes</name>
          <value>0</value>
        </Item>
        <Item >
          <name>date_start</name>
          <value>2015-05-28</value>
        </Item>
        <Item >
          <name>status</name>
          <value>BUSY</value>
        </Item>
         <Item >
          <name>transcript</name>
          <value>C3LRSU-kJQhX
Hi there
03:07:21.8370555


test999
&lt;font color=&quot;#000000&quot; style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;Hi Softworks&lt;/font&gt;
03:07:30.9895784


</value>
        </Item>
      </name_value_list>
      <url xsi:type="xsd:string">https://{domain}.sugarondemand.com/service/v4_1/rest.php</url>;
      <method xsi:type="xsd:string">set_entry</method>
</ns4:set_entry>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Please provide me some suggestion, I am working with sugar 7 but I do not find any helpful material for this module.
I have tried the module names as
Chat transcript
Chat transcripts
Chat_transcript
Chat_transcripts
chat transcript and so on but i still cant figure this out
Parents
  • Hello,

    You must include the Module Builder Package Key when making a call via the API to a custom module.  You can confirm the full module name by navigating to the module and observing the address bar:

    In Sugar 6.x the URL should be similar to: /index.php?module={Full Module Name}&action=index
    In Sugar 7.x a SideCar URL should be: /#{Full Module Name}/
    In Sugar 7.x a Legacy module the URL should be: /#bwc/index.php?module={Full Module Name}&action=index

    You'll need to extract the full module name information from the URL based on the above.

    Also, if the instance is running Sugar 7.x, I strongly recommend creating all API scripts using REST v10, rather than REST/SOAP v4_1 and earlier.

    Regards,

    Dan Kallish
    Advanced Support Engineer
    SUGARCRM

    Learning Resources: http://support.sugarcrm.com | http://university.sugarcrm.com | http://community.sugarcrm.com
  • Dan,

    I have an issue with creating the Lead Chat One to many relation

    this is the snippet of the relationshipname



    and this is the xml

    <?xml version="1.0" encoding="utf-8"?><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soapenc="http://www.w3.org/2003/05/soap-encoding"; xmlns:tns="http://www.sugarcrm.com/sugarcrm"; xmlns:types="http://www.sugarcrm.com/sugarcrm/encodedTypes"; xmlns:rpc="http://www.w3.org/2003/05/soap-rpc"; xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">;
      <soap12:Body soap12:encodingStyle="http://www.w3.org/2003/05/soap-encoding">;
        <tns:set_relationship>
          <session>{SessionId}</session>
          <module_name >Leads</module_name>
          <module_id>{leadid}</module_id>
          <link_field_name>LCHAT_ChatTranscript</link_field_name>
          <related_ids xsi:type="soapenc:Array">
            <item>{chatId}</item>
          </related_ids>
          <name_value_list xsi:type="soapenc:Array">
            <Item>
              <name>lchat_chattranscript_leads</name>
              <value>other</value>
            </Item>
          </name_value_list>
          <url xsi:type="xsd:string">https://{domain}.sugarondemand.com/service/v4_1/rest.php</url>;
          <method xsi:type="xsd:string">set_relationship</method>
        </tns:set_relationship>
      </soap12:Body>
    </soap12:Envelope>

    But it does not set the relationship.
    Please help me out here as I am new to Sugar and the custom objects
Reply Children
No Data