CXDev Toolbox 2.0 Now Available

The CXDev Toolbox 2.0 is now available. Learn more about the update from the announcement article, or visit the CXDeveloper Store for more information.

Discussion Board

encrypt() not working

Posted by prashant on Monday, March 20, 2017 - 1:46am
prashant's picture

I am using CPHP (Connect PHP) for this encryption.

$iv = "0000000000000000";
$cipher = new Crypto\AES();
$cipher->Mode->LookupName = 'CBC';
$cipher->IV->Value = $iv;
$cipher->KeySize->LookupName = '128_bits';
$cipher->Padding->ID = 1;
$cipher->Key = $key;
$cipher->Text = $string;

For the last line ($cipher->encrypt()) I am getting the output as :

Customer webservice Security (Controller)

Posted by venkat on Saturday, March 18, 2017 - 11:06am

I am looking for creation of custom web service in Service Cloud that can be invoked from external applications. This has been achieved using CP controller feature.

My requirement is service cloud has multiple validations across different objects.. All these validations are included in CP model and same in exposed in CP controller so that external application makes calls to this CP controller before creating new records into service cloud.

Can you please share if there is any code snippet for security in controller

Using PSLog Library within CPM

Posted by methomas on Thursday, March 16, 2017 - 2:36pm
methomas's picture


I have an interesting situation....

I am using a CPM to try and write to PSLog.

While I am able to instantiate the class from the /cp/lib directory and call the methods I am unable to produce an entry in the logs.

The ID will increment but the row is not visible.

If I attempt to log something from the CP Pages; everything works perfectly fine.....

Any ideas?

API - REST or SOAP - Bulk Create Contacts

Posted by monish on Tuesday, January 17, 2017 - 3:03am


My requirement is to fetch data from CSV file and create contacts.


OSvC: February 2016

CPHP: V1_3

Rows in CSV file: 99500

I have build a custom script which process all rows from CSV file and create contacts using Connect PHP, but here I am getting memory error:

"DB API Error SQL Fcn: execute() [SQLStatement.cpp: 641] 
       Error: Unable to allocate sufficient storage for queryPointer!"

After 4000 rows, script stops automatically.

How to call an External survey and give Customer contact details as parameter to external survey page

Posted by yadavajai7 on Friday, January 13, 2017 - 1:21pm
yadavajai7's picture

i would like to redirect external survey (Survey which hosted on external webpage) when chat disconnected and provide Chat ID, Customer Name, Email Address to that external page?
we have close_redirect_url attribute to redirect page when click disconnect button but not sure how to send contact detail to this page, can anyone help me on this.

Thanks in Advance.


Zircon - This is a contributing Drupal Theme
Design by WeebPal.