How to submit form data to the REST 3rd party API service

Hi guys,.

It's new to me, so the sample scripts and procedures will be appreciated.

Problem:

My client has opted for a more advanced 3rd party CRM solution that uses REST APIs

They want form data entered (form join us) and submitted to the 3rd party CRM

Examples of available API CRM scripts are PHP and makes no sense to me.

It is their example of form and php script.

Issues related to the:

(1) how to convert this works in British Colombia

(2) is it possible to use liquid as a script to make the API calls server side?

(3) also would like to hide the username token and API?

Samples:

< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

< html >

< head >

< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

< style type = "text/css" >

label, input, textarea {display: block; float: left; width: 150px; margin: 5px ;}}

label {clear: left; text-align: right ;}}

input [type = 'submit'] {width: 60px banner; margin: 10px 0 0 165px; clear: left ;}}

< / style >

< / head >

< body >

Contact us < h2 > < / h2 >

<! - Edit REQUIRED with the file name of the script if different from the example - >

< do action = "Solve360ContactSave.php" method = "GET" > "

< label > (required) < / label >

< input type = "text" name = "FirstName" value = "" / > "

< label > name < / label >

< input type = "text" name = "lastname" value = "" / > "

< label > title < / label >

< input type = "text" name = "jobtitle" value = "" / > "

< label > Business email < / label >

< input type = "text" name = "businessemail" value = "" / > "

Note < label > < / label >

< name textarea = "note" cols = "4" rows = "4" > < / textarea >

< input type = "submit" value = "Save" / >

< / make >

< / body >

< / html >

PHP:

<? PHP

version 2.0

All of the placeholders like {property}, {categoryId}, {templateId} expected

be replaced by actual values without the {} brackets

REQUIRED with your email address edit

define ('USER', ' [email protected]');

Edit REQUIRED by token, workspace > my account > QAnywhere > API Token

define ('TOKEN', 'life');

Get request data

$requestData = array();

parse_str ($_SERVER ['QUERY_STRING'], $requestData);

Configure the service gateway object

need to 'Solve360Service.php ';

$solve360Service = new Solve360Service (USER, TOKEN);

//

Add the contact

//

$contactData = array)

'Name' = > $requestData ["firstname"].

'name' = > $requestData ["lastname"].

"jobtitle" = > $requestData ["jobtitle"],

'businessemail' = > $requestData ["businessemail"],

Category of OPTIONS apply tag (s) and set the owner for the contact from a group

You will find a list of identifiers for your labels, the groups and users in the workspace > my account > QAnywhere

To activate this option, delete the following text:

/*

Specify a different property for example share item

'property' = > {property},.

Add categories

'Catégories' = > array)

'Add' = > array ('category' = > array ({categoryId}, {categoryId}))

),

*/

);

$contact = $solve360Service-> addContact ($contactData);

If (isset ($contact-> error)) {}

Post yourself if errors occur

mail)

USER,

"Error when adding contact to resolve",

' Error: '. $contact-> errors-> asXml()

);

Die ('system error');

} else {}

Get the new contact params of the answer

$contactName = (string) $contact-> article-> name;

$contactId = (integer) $contact->-> id;

You post the result

mail)

USER,

"New contact added to solve."

'New contact' '. $contactName. "" with the id '. " $contactId. "has been added to Solve360.

);

}

//

OPTION add an activity

//

/*

* You can set an activity on the contact you created

* This example shows how to create a Note, to enable this feature just uncomment the following application

*/

/*

Preparation of data for the note

$noteData = array)

'details' = > nl2br ($requestData ['notes'])

);

$note = $solve360Service-> addActivity ($contactId, 'note', $noteData);

You post the result

mail)

USER,

"Note was added to" "." " $contactName. "" contact to solve ","

'Explanation '. $note-> ID "has been added to the contact with the id". $contactId

);

End of the addition of note activity

*/

//

OPTION of inserting a business model

//

/*

* You can also insert a template directly into the contact that you just created

* You will find a list of identifiers for your models in the workspace > my account > QAnywhere

* To enable this feature, just uncomment the following application

*/

/*

Beginning of the application model

$templateId = {templateId};

$template = $solve360Service-> addActivity ($contactId, 'model', array ('templateid' = > $templateId));

You post the result

mail)

USER,

"Model has been added to" "." "" $contactName. "" contact to solve ","

'Model with id '. $templateId. "has been added to the contact with the id". $contactId

);

End of the model application

*/

? >

< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

< html >

< head >

< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

< / head >

< body >

Result of < h2 > < / h2 >

Thank you < p >, < b > <? PHP echo $contactName? > < / b > < / p >

< p > your data has been successfully saved. < /p >

< / body >

< / html >

You cannot use the server host-side or liquid code on BC for this.

You need to be to have some sort of configuration to point to a 3rd party solution that sends data on them or you need to implement and solution from API to API.
A form will create a deal (or order if take payment) and you can have the BC API sends a url to the notification when cases are triggered. With your own code solution read you cases, get those to the shape you want and send the information to the 3rd part of the data structure they need.

Tags: Business Catalyst

Similar Questions

  • How can I submit form data to an external url after a purchase?

    I use BC as part of a site that sells certificates of people will buy ecommerce.  There's a developer outside creating PDF certificates with their info and a custom code.  Anyone know how I can submit form data to an external url purchase?

    Two ways.

    To move cross-site restrictions:

    -In javascript dynamically create an iframe hidden, copy the data from the form in this iframe, set on the iframe onload event, submit the form (in the iframe), once the iframe loaded, submit the form BC as usual. Google there should be examples out there.

    -Using JSONP to do the same thing, but this will use GET so that your data will not be encrypted at all (maybe it's not a concern for you and you will need to check if the outside developer making the PDF can handle this response).

  • How to NOT send some form data when the form is submitted

    Hello

    I created a PDF form with radio buttons in the Group and the boxes. When I the form of data, such as values using the submit by e-mail button to send form data as XML or merge data into a spreadsheet files, I'll see the data values for radio buttons and checkboxes.

    What I want here is to don't get the data values for some controls such as the boxes option, but no other controls like check boxes, in the XML or Excel worksheet after submission of the form. I know how to hide the controls in the form, but I have to the visible and active boxes on the form.

    Is there a way to hide or do not send form data when the form data is submitted?

    Thank you

    Sam

    Hi Kyle,.

    That's exactly what I want! Once I have not selected any data binding, the field is in shape and active, but when submitted as XML or it merge with a spreadsheet, the field is gone.

    Forgive me if I didn't my self clear in my question. Answer you is straight to the point.

    Thank you very much!

    Sam

  • How can you save data of the iCloud on an external hard drive?

    How can I record data of the iCloud on an external hard drive?

    Is not possible. iCloud requires a Wi - Fi connection to synchronize data. Cannot do it on an external drive.

  • How to submit an article to the knowledge base on the BlackBerry support community.

    How to submit an article to the knowledge base on the BlackBerry support community.

    http://supportforums.BlackBerry.com/T5/BlackBerry-App-world-development/how-to-create-your-own-Artic...

  • How to convert forms fillble to the ipad

    How to convert forms fillble to the ipad?

    Hi alusich,

    PDF forms on mobile are different form normal PDF forms, please refer to this KB doc. helps LiveCycle | Have a differentiation between Mobile Forms and PDF forms.

    If you want to create PDF forms for mobile devices, I recommend you to use LiveCycle designer helps LiveCycle | Mobile forms - developer.

    Kind regards

    Nicos

  • How to display XML data with the same form that generated?

    I am an inexperienced "developer", so bare with me please.  I just created an interactive form that my users will fill out and give me back.  I love the email button that let's them just click a button to send it - because it's so smooth.  However, all I get back is data XML that I don't know what to do with.  Is it possible that I can just open the form I send my users and have the XML data to automatically fill? Otherwise, suggestions?  I started a company - so it's just me without other resources (or fancy SQL DBs to pull this stuff, etc.).

    Hello

    You can configure a button on the form with the JavaScript next to the click event:

    xfa.host.importData ();

    This will open a window that will allow you to navigate to where you saved the returned XML file. Note that this button does not work in extended via Acrobat Forms.

    Depending on the version of Acrobat you are using (the menu changes slightly) you can go to the menu forms and select Manage form data / import data.

    Third option; You may also distribute the forms via Acrobat, which will put in place a response file, which will allow to import responses for you.

    Hope that helps,

    Niall

  • Send form data to the database with scripted button

    I know not how to connect the form to an Access database. However, I do not want the form to connect to the database until the user clicks a button. When the user completes the form and clicks the button, I need the form to connect to the database and save form data in a new record. How script button to do this?

    Any help is appreciated.

    I think that you will need to use a layer between the two.  For example, LC, you can do a process that takes your data and stores it in your database.  Your form may submit to this process through SOAP and REST.

  • Apex5: How to store field data in the Pagination of the Page

    Hello.

    We have recently started using Apex 5.0.1 on Oracle mod_plsql and 11.2.0.4.

    I have a (non-interactive) report classic, based on a collection of Apex and use g_fxx tables created by the package APEX_ITEM such as TEXT, DISPLAY_AND_SAVE, CHECKBOX2 procedures.  The report contains two checkboxes and editable and display only text fields containing data users have entered or have been extracted from the base.

    I have a button 'Add NEW LINE' that creates automatically a new line 'empty' in the report.  Clicking on it submits the page.  It is during this time submit that a process "After Submit" transfers what is in these paintings g_fxx in my collection of report.  When the number of added lines exceeds the maximum set for this report (30 lines).  The report then pages and the user will see a single line "empty."

    It all works very well.  The problem comes when the user clicks on the "Back" button  All previously entered data has disappeared leaving lines totally "empty".  Not nice.

    Someone knows how to keep the precedent of the fields in the report when content pagination to the 'Previous' or 'Next' in a report page?

    Thank you.

    Elijah

    EEG wrote:

    I'm sorry to be so long to respond.  Were flooded with more work Apex who had to do to meet a deadline.

    Your question...

    I * should * have been clearer.  The user clicks the 'next' or 'previous' links in the report when moving from one page to the next.  And "partial" page refresh is enabled on this report.  By your question, are you making reference to this partial page refresh must not be activated?

    By default, PPR is disabled on tabular forms generated by the wizard. I thought that if the same had been made in this case that Refresh complete which paging can be triggered some process of page which has affected the collection. However in this case we could probably expect No line rather than empty lines...

    I can't reproduce the problem based on the information provided. Suggest you try to demonstrate the problem on apex.oracle.com.

  • How to back up data from the iphone water damage over 6 sec.

    I dropped my iphone more than 6 s in sea water, and it seems capable of lighting (which shows a black screen). I'm trying to back up data. When I connect the iphone with the computer, the following prompt box appears on itunes. Now I'm confused. Could someone answer my questions please?

    1. This means that my iphone is still able to turn it on?

    2. that means that only the screen is broken and the motherboard still work?

    3. How can I save the data without entering the password by using the touch screen?

    Thank you very much.

    This means you should STOP PUTTING ELECTRICITY through your phone untreated, ack!

    Your phone has a display problem, but yes - it lights up.
    Perhaps your problem is just a bad screen (which is unfortunately a part of $250 to a 6 sec more now).  Apple cannot help you with other water damage that offers to sell you an iPhone refurbished for $349.

    But most likely, your problem is also on the logic board - usually fixable.

    There is no way around the need for touch operation and the image on the phone to access the data.

    In order to access the data on the phone, you need your advice to hold the power and start, (it does) you need of your screen image lines, and you need to contact work.  Ideally, you would also have your backlight lines works as well.

    Most of the phones in this condition have a pretty good shot in data recovery in this situation - touch, and line of the image problems are usually solvable if your phone can be detected by iTunes.   It is certainly not DIY work, this is a troubleshooting open-ended the microsoldering and level of card issues.

    Your only option for recovering data would be to find a good microsolderer experienced in data recovery.

    I recommend to replace any phone which has seen water, corrosion on the Board always weakens solder everywhere, so the phone is likely to have a shorter duration of life more problematic.

    Note: It may be possible to cancel your option for the swap of OOW $349 at Apple if you continue recovering data at the level of Council - although I've never seen this happen.

  • How can I recover data when the firewire and USB ports do not work?

    My MacBook Pro has been flooded by water, and no ports work. Anyone know how I can get information on the new system or hard drive and my computer?   The cost of repairs to the machine is $ 800, so I'm going to buy a new.

    Remove the hard drive in an external enclosure supporting USB or Firewire. Connect to another computer to retrieve your data. This requires that the player was not damaged.

  • A satellite will not start - how to back up data from the HARD drive?

    Hello
    My laptop won't turn. How can I take backup of internal hard drive?

    Please read my writing as soon as POSSIBLE

    If you n t have access to your saved data remove the laptop HARD drive, connect it to the other PC as external device and you should have access to all stored data if the HARD drive is not defective.

    What you need is USB 2.0 IDE 2.5 HD enclosure disk hard drive / external case/Box.

  • How to get a date to the timestamp of a file XML format

    Hello

    I'm trying to get a date from an external XML file. My XML file looks like this:


    <>http://www.NI.com/LVData">
        8.6.1
        
            Date of birth
            31/03/1983
        
     

    I can get the system to retrieve the correct XML element that shows the nested and elements , but I have no way to retrieve correctly the date. It seems as if she interprets my date seconds since 1904. I try to keep the "readable" for the end user XML, so it is important to keep this date in standard U.S. date format. I eventually uses this date to calculate the age of something. I labour code to subtract a timestamp in the format of the date to the current date and time, but I can't access it when I get back from XML.

    Starting from XML schema, it looks like the timestamp element requires a cluster... but there is no documentation on what to spend. Any ideas how to get back an XML date in this format in a simple and clean?

    Here's my current VI:

    Thank you

    Ryan

    Cambridge, MY

    Quick Tip on "bundle by name.  You don't need to consolidate all these constants where the values correspond to what is the constant of cluster at the top.  The cluster constant defines the data structure and the starting values.  Simply group the values for specific change items.

    Example of tone would be a bit cleaner.  Although the format string should use a capital T.

    As always with dealing with the time, complications could arise due to dealing with time zones and leap years.  Zones shouldn't matter for the calculation of the years since you are rounded up to years.  Although you probably want to round down rather than round at most closely. (I forgot this part in my example).  The problem with leap years when you would be only in a certain number of days of the anniversary, he would round up the age.  The number of rounded days would depend on how much on leap days that nobody has seen in their lifetime.

  • I have an Iconia One 7, how do I access data on the SD card?

    Hello

    I put data on an SD card and then inserted into the tablet... Tablet recognizes the card, now, how can I access the data from the SD card?

    Kind regards

    Larry

    on the list of applications, you just named "file manager"?

    You can browse the contents of the SD with it.

    If this isn't the case, you can download one for free:

    https://play.Google.com/store/apps/details?ID=com.EStrongs.Android.pop

  • How to keep Freecell data during the upgrade Windows XP to Windows 7

    that I upgrade from Windows XP to windows 7 Pro. I have years of freecell statistics. can that copy to the new windows 7?

    Thanks in advance...

    original title: data saved freecell

    Hi crcjetty,

    Try the method below and check if it works.

    Important: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    http://support.Microsoft.com/kb/322756

    (a) go to Start > run

    (b) type regedit and click OK

    (c) press ctrl+f

    (d) type freecell and click Next
    Look at the bottom of the screen and you should see the registry key you are is

    e) HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\FreeCell

    (f) in the top toolbar: click on register

    (g) click export a file of the registry...

    (h) in the window that opens: type the name of the file a:\Freecell.reg

    (i) check the selected branch under Export range

    (j) put a floppy disk in the A: drive

    (k) click Save

    ·         When you did a new install of Windows 7, put your floppy disk in the A: drive and double-click on the Freecell.reg file

    ·         Click Yes when asked if you are sure you want to add the information to your registry.

    ·         Click OK when advised that the information has been added.

    Windows Easy Transfer

    http://Windows.Microsoft.com/en-us/Windows7/products/features/Windows-easy-transfer

    Upgrade Windows XP to Windows 7

    http://Windows.Microsoft.com/en-us/Windows7/help/upgrading-from-Windows-XP-to-Windows-7

Maybe you are looking for

  • HD5450 card causes the video hangs in an old Slimline s3500t 180w

    

  • need battery warranty certificate

    Hello Sir / mam I speak for the nearest care of hp and they told me that I have only 1 year warranty. I talk about tem above conversation and they tell me that it must show written hp support that show that I have 3 years warranty. Please send me wri

  • Invalid ID, but still he says authentic

    I just be reformatted my computer of the partion on that recovery is, everything is fine but still noticed under computer properties it says 2 days prior to activation or activate now. I went to activate now a says that my product key is not valid...

  • Install Win7 64 bit update on the new build machine

    Initially, I bought a Dell machine with Win XP installed on it, that was obviously an OEM installation. Later, I bought an update to Win7 (boxed version containing two DVD - 1 x 32 bit and 1 x 64-bit). I looked at the product key on the System Proper

  • Updating of the ADF Table strangely after delete line

    HelloI use ADF Table with ArrayList to the model of the collection. I do not use View object< af:table var = value ' row' = "#{pageFlowScope.dataBean.collectionModel}"... "I have a SelectOnceChoice in each row of the table and bind their values to a