Posts

Posts

  • Julie F
    Write data from Custom Object field to Contact custom field1
    Topic posted October 7, 2019 by Julie FBronze Crown: 15,000+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST in B2C Service > Integrations and APIs for Service public
    Title:
    Write data from Custom Object field to Contact custom field
    Summary:
    Does anyone have an example of the above?
    Content:

    I have a custom object group. Lets call it GroupObject. It has a number of objects within it. Lets call those.CObject1, CObject2 etc.and they each have fields.

    In a CPM I want to write GroupObject.CObject1.time (time is one of the fields, it is not the current time) to:

    contact_data->CustomFields->c->last_saved    a contact record custom field called last_saved.

    Any example, for any part of this, would be greatly appreciated.

  • Padma Prabha Varadarajan
    CPM Error Log2
    Topic posted October 2, 2019 by Padma Prabha VaradarajanRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs in B2C Service > Integrations and APIs for Service public
    Title:
    CPM Error Log
    Summary:
    Unable to diagnose the reason behind the Error
    Content:

    Hi Team, 

    Below mentioned Error is getting logged in CPM Error logs report.

    "Uncaught exception 'RightNow\Connect\v1_3\ConnectAPIErrorFatal' with message 'Cannot save/update"

    We are unable to exactly recognize from where the error might be occuring in the script.

    what is the meaning of the exception saying: "Cannot save/update"

    Please help us here 

    Thanks In Advance

     

    Padma

    Version:
    18C
  • Sristy Arya
    Unable to download File Attachment using CURL5.0
    Topic posted September 29, 2019 by Sristy AryaBronze Trophy: 5,000+ Points, tagged Connect PHP, REST in B2C Service > Integrations and APIs for Service public
    Title:
    Unable to download File Attachment using CURL
    Content:

    Hi Everyone,

     

    I am stuck in downloading a file attachment from portal using CURL. I am able to get the response but unable to download the attachment. Anyone knows about this or has done this before can help.

     

    PFA the code .

     

    Thanks

    Code Snippet:
  • chidambaram CT
    Left Join contact with Custom ObjectAnswered1
    Topic posted September 23, 2019 by chidambaram CTBronze Trophy: 5,000+ Points, tagged Connect PHP, SOAP in B2C Service > Integrations and APIs for Service public
    Title:
    Left Join contact with Custom Object
    Summary:
    Left Join contact with Custom Object
    Content:

    I have custom object CO.EmploymentDetails with fields Branch,ContactID etc.. This custom object is related to Contact.


    select ID,Contact.CustomFields.c.membership_number,Branch from custom object from Contact C 
    where Emails.EmailList.AddressType.ID=0 and ID=163085


    Can you provide me syntax to get branch?

  • Baljeet Singh
    REST API Call Limit Per Day1
    Topic posted September 18, 2019 by Baljeet SinghRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP in B2C Service > Integrations and APIs for Service public
    Title:
    REST API Call Limit Per Day
    Summary:
    Limit to call different REST API for different end point
    Content:

    Hi,

    I am curious to know the limit of REST API call per day to service cloud. How many times we can call REST API endpoint for different objects i.e. Incident, Contact, Organization etc. We have requirement where volume of incident creation is 3 Millions per year. We have integrated OSvC with third party system. Every time incident is create in OSvC we need to call REST API end point to sync data with third party software but volume of call is more then we expected initially.  

    I believe there is per day REST API call limit.

    Does anyone knows API limits per minute , per day & number of transactions ?

    Appreciate your support

    Baljeet Singh

     

    Version:
    Oracle Service Cloud 19 B
  • Bryan Scarborough
    Custom Process Error/ConfusionAnswered4
    Topic last edited September 11, 2019 by Bryan ScarboroughBlue Ribbon: 750+ Points, tagged Connect PHP in B2C Service > Integrations and APIs for Service public
    Title:
    Custom Process Error/Confusion
    Content:

    Hello, 

    I am trying to setup my first Custom Process to create an entry in a Custom Object when an incident is saved.  I am currently running into an issue with the Setup Function in the TestHarness.  The code is below.  

    I am getting the following error on the $newPage->SentBy = $testObject->AssignedTo->Account->Name; line

    Type mismatch: Must be string

    The Custom Object field is a string and as far as can see the Name field should also be one, so why is this giving me an error?  There is an account Assigned to this Incident.

     

    Thank you

    Version:
    18D
    Code Snippet:
  • Bryan Scarborough
    Process Designer ErrorAnswered2
    Topic posted August 27, 2019 by Bryan ScarboroughBlue Ribbon: 750+ Points, tagged Connect PHP, Custom Process Models - CPMs in B2C Service > Integrations and APIs for Service public
    Title:
    Process Designer Error
    Content:

    Hello, 

    My company want to implement a solution that will be able to page our On Call techs from RightNow.  We are doing this by sending an email from RightNow to the paging company and that is working.  They also want to implement logging around this in RightNow.

    My thought was to implement a Custom Object with the Date/Time and the person triggering the page to the On-Call tech.  I was able to create the Custom Object, but I do not see a way to interact with it from the Business Rules. 

    From a previous post it was recommended that I use the Process Designer, which I have been trying to get setup.  Unfortunately, I have not found any full and functional examples in the documentation.

    I have include my current code, but when I try to test it I am getting this error "Object Event Handler create_contact\create_contact does not define class create_contact!".  However, when I setup the class I get the same error.  Can someone let me know what needs to be done to fix this, or give me a working example that I can work with.

    If there is another way to accomplish what I am looking to do, I am open to other ideas.

    Thank you

    Version:
    18D
    Code Snippet:
  • Jhamir Castiblanco
    Set task notes field using Connect PHP APIAnswered25.0
    Topic posted August 26, 2019 by Jhamir CastiblancoGreen Ribbon: 100+ Points, tagged Connect PHP, Custom Process Models - CPMs in B2C Service > Integrations and APIs for Service public
    Title:
    Set task notes field using Connect PHP API
    Content:

    Hi experts,

    I need your help. I want to set the Notes standard field that is displayed on the Task workspace using Connect PHP API but I cant find it. I was looking for it in the Connect PHP documentation, but I wasn't abble to find it's reference. I know this object have a relationship with Notes object, but i want to know if it's possible to set this field programmatically.

    Thanks in advance.

    Version:
    v1.3
    Image:
  • Vanessa Abelardo Viana Beserra
    Set date and time field in a CPM4
    Topic posted August 5, 2019 by Vanessa Abelardo Viana Beserra, tagged Connect PHP, Custom Process Models - CPMs in B2C Service > Integrations and APIs for Service public
    Title:
    Set date and time field in a CPM
    Content:
    Hi,
    I have a custom process that makes a  logs information. I use the field DATA_FINAL (type: data and time) of object CO \ LOG_LUGGO. I just want to set a date in this field. I did a lot of tests, including setting a fixed date and still can't set it.
     
    My OSvC version is 19B. 
     
    Is there any configuration I should enable to use this? 
     
    Below is a script of how I am trying to set this field in PHP.
     
    Thanks for the help!
    Version:
    19B
    Code Snippet:
  • Victor Oviedo
    queryObject with empty resultAnswered4
    Topic last edited July 29, 2019 by Victor Oviedo, tagged Connect PHP in B2C Service > Integrations and APIs for Service public
    Title:
    queryObject with empty result
    Summary:
    queryObject with empty result
    Content:

    I have developed a php script where I use a query to bring specific items of a Custom Object (Resource), when I use the following code:

    $queryResult = RNCPHP\ROQL::queryObject("select R from CO.Resource R where ID=3021 or ID=3019 or ID=3018 or ID=3015")->next(); var_dump($queryResult);

    When I execute this code this is the var_dump result:

    object(RightNow\Connect\v1_3\ROQLResult)#4 (0) { }

    Why is this happening?, it is something I should add/change/remove?

    Version:
    1_3