- Joined
- Nov 18, 2016
- Messages
- 5
- Reaction score
- 3
Following this post about the same error that occurred in Hubspot, I resolved the integration with SuiteCRM, which did not allow creating a contact that was not found in the database. https://www.3cx.com/community/threads/hubspot-not-showing-all-calls.122311/#post-573343
Basically, the error is due to the fact that the variables: CreateContactEnabled, CreateContactRecord, [CreateContactFirstName], and [CreateContactLastName] no longer exist in v20. Therefore, the scenario should be as follows:
I am also attaching the complete XML; in my case, I am only interested in creating the record in Accounts
Hope it helps
Basically, the error is due to the fact that the variables: CreateContactEnabled, CreateContactRecord, [CreateContactFirstName], and [CreateContactLastName] no longer exist in v20. Therefore, the scenario should be as follows:
XML:
<Scenario Id="" Type="REST">
<Request SkipIf="[IIf([FoundRecordCount]>0,True,False)]" Url="[Domain]/Api/V8/module" RequestContentType="application/json" RequestEncoding="Json" RequestType="Post" ResponseType="Json">
<PostValues Key="" If="" SkipIf="">
<Object Key="data" If="" SkipIf="">
<Value Key="type" If="" SkipIf="" Passes="0" Type="String">Accounts</Value>
<Object Key="attributes" If="" SkipIf="">
<Value Key="tipo_c" SkipIf="" Passes="2" Type="String">prospecto</Value>
<Value Key="name" SkipIf="" Passes="2" Type="String">3CX Nuevo Prospecto</Value>
<Value Key="phone_office" SkipIf="" Passes="1" Type="String">[Number]</Value>
</Object>
</Object>
</PostValues>
</Request>
<Rules>
<Rule Type="Any" Ethalon="">data.id</Rule>
</Rules>
<Variables>
<Variable Name="ID" LookupValue="" Path="data.id"><Filter /></Variable>
</Variables>
<Outputs AllowEmpty="false">
<Output Type="CompanyName" Passes="2" Value="3CX Nuevo Prospecto" />
<Output Type="PhoneBusiness" Passes="1" Value="[Number]" />
<Output Type="ContactUrl" Passes="0" Value="[Domain]/index.php?module=Accounts&action=DetailView&record=[ID]" />
<Output Type="EntityId" Passes="0" Value="[ID]" />
</Outputs>
</Scenario>
I am also attaching the complete XML; in my case, I am only interested in creating the record in Accounts
Hope it helps