You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Any ability to change SurveySession results after the customer has completed their Survey?

Question
1
Views
0
Comments
edited Jun 8, 2022 8:58AM in Agent Desktop

Summary: Changing Survey results on SurveySession

Content (required): Sounds like my boss wants to fudge the numbers but its not for me to judge :D So anyone have a clue, seems I can query the results via ROQL but I cannot fetch the objects via the Connect Common Objects Model.

Version (include the version you are using, if applicable): 19D


Code Snippet (add any code snippets that support your topic, if applicable):

Theoretical concept

$surveys = RNCPHP\ROQL::query("SELECT * FROM SurveySession WHERE Contact == 30")->next();
        while($survey = $surveys->next()) {
            $survey = RNCPHP\<???SurveySession???>::fetch($survey["ID"]);
            $survey->CustomerHappyiess = "EXTREME";
            $survey->save();
        }

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!