General Technical Discussions for Service

Get Involved. Join the Conversation.

Comments

  • Iain McKay

    That would be much appreciated. :Latest update = SOAP generated changes still not triggering. But CO and Custom Scripts proven.

    I can call Report->CustomScript->RNCPHP->Save a Standard Object (Incident) with no suppression->triggers RNCPM OK. Here the incident.source = "Connect PHP"

    I can call Report->CustomScript->RNCPHP->Save a Custom Object with no suppression->triggers RNCPM OK. Here the incident.source = "Connect PHP"

    I can call C#->SOAP API->Save a Standard Object (Incident) with no suppression->does not trigger RNCPM. Here the incident.source = "Connect Web Services - SOAP"

    Iain

     

  • Anuj Behl

    I had once tried with SOAP API and I was able to trigger CPM with Standard object. Processing options same as you mentioned, 'false' for both. I remember not able to access object's prev values though, couldn't get past this issue.

    I never tried with report's custom script. Will check and get back to you if I get anything.

  • Iain McKay

     Update: Connect for PHP generated standard objects trigger OK, but still not the SOAP API, and not custom objects.

    I can call Report->CustomScript->RNCPHP->Save a Standard Object (Incident) with no suppression->triggers RNCPM OK. Here the incident.source = "Connect PHP"

    I can call C#->SOAP API->Save a Standard Object (Incident) with no suppression->does not trigger RNCPM. Here the incident.source = "Connect Web Services - SOAP"

    I can call Report->CustomScript->RNCPHP->Save a Custom Object with no suppression->nothing triggers in the RNCPM listening.

     

     

  • Iain McKay

     Aha, if you mean when saving via the SOAP API, then no, I've not checked that.<pause>. Argh, no that's not the smoking gun, I'm saving from SOAP with:

     

     

    CreateProcessingOptions createProcessingOptions = new CreateProcessingOptions();

    createProcessingOptions.SuppressExternalEvents = false;

    createProcessingOptions.SuppressRules = false;

     

  • Iain McKay

     Thanks for taking the time to reply. I have tried a plain save() and save(RNCPHP\RNObject::SuppressAll). Both exhibit the same behaviour. When I open incidents or contacts and choose to save, the trigger caught and fields modified (visible after next refresh). But either creation or update via SOAP API doesn't seem to trigger..

  • Anuj Behl

    Hi Iain,

    Could you check that you are not suppressing external events while saving the object?

    Anuj

  • Kurt Helfrich

    Thanks, Mark.  That was the problem.  I don't recall anything explaining that in the documentation, so I thought it was MY version number.  I'll have to go back and see if I missed something.

    <soapbox>

    That brings up another (most likely rhetorical) question - RightNow (and now Oracle) doesn't seem to do much to document error messages in the KB.  I've noticed that over the years.  I work in a tech support organization, and we are pretty aggressive about providing info on error messages, especially relatively cryptic ones like this 'Must be a Note' that the developers do without providing a clue to resolution or a link to a help topic that can actually HELP.

    Just wondering why.

    </soapbox>

  • Mark Rhoads

    Be certain that the Version tag in the flower box at the top of the script matches the version used to define the RNCPHP alias.

    The Version tag specifies the version of the object instance that is passed in.  The version is considered in the Connect for PHP type system, so a new note of a version different than the containing object may be considered to be of an invalid type.

     

  • Kurt Helfrich

    Thanks, Allan, but it didn't work - same error.

    I'll keep plugging away.

  • Allan Schrum

    Would something like:

    $note = new RNCPHP\Note();
    $note->Text = "Something";
    $contact->Notes[] = $note;

    work for you? The [] operator will automatically allocate the array if necessary.

    Regards,

    -Allan

  • Charles Lickly

    I have solved my issue.  It was interesting but I got it to work perfectly.  Let me know if any of you run into a similar issue, I might be able to help now that I have resolved my own issue.

  • Anuj Behl

    Hi Eric,

    You can use a combination on RightNow's Business Rules and Mailings for your requirement.

    1. Create a Mailing template that you would like to send when contact is updated
    2. Create a Business Rule on contact
    • You can add an if condition to check if the contact's been updated through console or customer portal or to check whether a particular field has been modified in that edit
    • In the Then part, add a Send Marketing Mail action and select the previously created mailing template

     

    Tell me if it works for you

    - Anuj

  • Christopher Farmer

    Hi Alagappan,

    I'd just like to reiterate the thanks to you and Mark for this workaround. I was tearing my hair out for hours over this.

    Just to confirm to everyone, I was able to get the value of a contact custom field using ROQL instead of accessing Contact->CustomFields->c...

  • Andrew Rowse

    Hi Kevin,

    This might also be related to a commit issue + CPM's that I ran across last month when SP5 went out on 13.2.

    http://cxdeveloper.com/article/updated-sp5-cx-132-commit-bug-w-active-cpm

    An Oracle dev contacted me and was able to reproduce the issue. Sounded like they were working on a fix, but no news on when it would be implemented. In a way, what you are seeing sounds related in some way to the field access issues I was seeing.


    AR

  • Suresh Thirukoti


    Thanks varun for the quick response...... Also https://cloudcustomerconnect.oracle.com/posts/72a516af5c ...can you kindly review the solution and suggest any changes?