- 0
Database update Custom server module help with customfields values database updating
-
Similar Content
-
- 2 replies
- 699 views
-
Unable to retrieve Service through CustomFieldValue
By Jackson Tong,
- whmcs8
- customfields
- (and 1 more)
- 0 replies
- 794 views
-
provisioning Provisioning - Posting customfields to external DB
By Jeronk,
- customfields
- custom
- (and 4 more)
- 1 reply
- 994 views
-
- 5 replies
- 3293 views
-
Need to change customfields and clientdetails for an invoice
By Esi,
- invoice
- customfields
- (and 1 more)
- 4 replies
- 1993 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
RstsTeam
``` } catch (Exception $e) { // Record the error in WHMCS's module log. logModuleCall( 'vps', __FUNCTION__, $params, $e->getMessage(), $e->getTraceAsString() ); return $e->getMessage(); } return 'success'; } /* testing code $data = array( 'error' => 'Custom error testing', 'success' => 'success', 'data' => $data ); return $data; } */
/* use WHMCS\Database\Capsule; ``` It's Lavarel framework https://developers.whmcs.com/advanced/db-interaction/
Hello,
I'm building custom server module for automatic vps setup based on client order.
Main part is finished when order is accepted server building is started and everything is working great. Now I want to extend and improve module with new functions.
1. On module _Create i would like to update automatically generated service username and password and update that generated values to customfield values in database.
How to do that and if it's even possible?
2. I have an issue where I can't get custom return in latest WHMCS update. Earlier you could return success or custom message. Now custom message is not accepted for some reason only success or error is . Question is how to get custom errors or custom return messages back from remote script. Only success is accepted as whmcs solution or I'm missing something.
Thank you in advance
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.