Problem creating contact with custom CRM

Status
Not open for further replies.

PabloGesplanet

Forum User
Joined
Sep 28, 2020
Messages
3
Reaction score
0
Hi, i am developing my own CRM and i have the next problem:

<Scenario Id="CreateContactRecord" Type="REST">
<Request SkipIf="[CreateContactEnabled]!=True" Url="http://localhost/prueba_3cx/crearContacto.php?number=[Number]" MessagePasses="0" Message="" RequestContentType="application/json" RequestEncoding="Json" RequestType="Post" ResponseType="Json">
<PostValues Key="">
<Value Key="firstname" Passes="2" Type="String">[CreateContactFirstName]</Value>
<Value Key="lastname" Passes="2" Type="String">[CreateContactLastName]</Value>
<Value Key="number" Passes="1" Type="String">[Number]</Value>
</PostValues>
</Request>
<Rules>
<Rule Type="Any">contact.id</Rule>
</Rules>
<Variables>
<Variable Name="ContactID" Path="contact.id">
<Filter />
</Variable>
<Variable Name="FirstName" Path="contact.firstname">
<Filter />
</Variable>
<Variable Name="LastName" Path="contact.lastname">
<Filter />
</Variable>
<Variable Name="CompanyName" Path="contact.company">
<Filter />
</Variable>
<Variable Name="Email" Path="contact.email">
<Filter />
</Variable>
<Variable Name="PhoneBusiness" Path="contact.businessphone">
<Filter />
</Variable>
<Variable Name="PhoneBusiness2" Path="contact.businessphone2">
<Filter />
</Variable>
<Variable Name="PhoneMobile" Path="contact.mobilephone">
<Filter />
</Variable>
<Variable Name="PhoneMobile2" Path="contact.mobilephone2">
<Filter />
</Variable>
<Variable Name="CustomValue" Path="contact.custom">
<Filter />
</Variable>
<Variable Name="ContactUrl" Path="contact.url">
<Filter />
</Variable>
</Variables>
<Outputs Next="CreateContactRecord" AllowEmpty="false">
<Output Type="ContactID" Passes="0" Value="[ContactID]" />
<Output Type="FirstName" Passes="0" Value="[FirstName]" />
<Output Type="LastName" Passes="0" Value="[LastName]" />
<Output Type="CompanyName" Passes="0" Value="[CompanyName]" />
<Output Type="Email" Passes="0" Value="" />
<Output Type="PhoneBusiness" Passes="0" Value="[PhoneBusiness]" />
<Output Type="PhoneBusiness2" Passes="0" Value="[PhoneBusiness2]" />
<Output Type="PhoneMobile" Passes="0" Value="[PhoneMobile]" />
<Output Type="PhoneMobile2" Passes="0" Value="[PhoneMobile2]" />
<Output Type="CustomValue" Passes="0" Value="[CustomValue]" />
<Output Type="ContactUrl" Passes="0" Value="[ContactUrl]" />
</Outputs>
</Scenario>

This is the part of contact creation of my XML. It has an URL that is working perfectly if i call it directly, but in the template generator i tried to right click on "Parameter Values" and select "Contact Lookup" option and only perform the call but not the registration of the contact.

I guess im missing something.
 
Status
Not open for further replies.

Forum statistics

Threads
111,972
Messages
590,065
Members
164,886
Latest member
784