Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Inbound SSO Map PHP Help!!!!
We are using phptoolkit 2013. This code always throws exception "An unexpected error occurred."
global $nsendpoint, $nshost, $nsemail, $nspassword, $nsrole, $nsaccount, $partnerId;
$service = new NetSuiteService();
$role = new RecordRef();
$role->internalId = 3;
$priv_key_der = file_get_contents(APP_PATH . 'rsa-Private.der');
$priv_key_pem = chunk_split(base64_encode($priv_key_der), 64, "\n");
$priv_key_pem = "-----BEGIN RSA PRIVATE KEY-----\n" . $priv_key_pem . "-----END RSA PRIVATE KEY-----\n";
$priv_res = openssl_pkey_get_private($priv_key_pem);
$timestamp = round(vsprintf("%d%d", gettimeofday()), -3) / 1000;
$userId = $nsemail;
$ssotoken = $role->externalId . " " . $nsemail . " " . $timestamp;
openssl_private_encrypt($ssotoken, $ssotokenEnc, $priv_res);
$authToken = strtoupper(bin2hex($ssotokenEnc));