PureEngage On-Premises

 View Only

Sign Up

  • 1.  Outbound SDK: RequestGetCampaignStatus

    Posted 08-07-2014 20:05
    I will eventually be writing a custom application to load campaigns onto the Outbound Contact Server.  I'm just playing around with the SDK to do something very simple.  Unfortunately, the Documentation for the for the Outbound SDK is very basic (opens and closes a protocol) (http://docs.genesys.com/Documentation/PSDK/latest/Developer/OutboundContactServer) and doesn't show how to do something more elaborate.

    So far, I'm just trying to build off this basic example by trying to get a campaign's status.  Currently, I just receive "EvenError" when I request the campaign status.  Can someone explain to me how to get back a real status or show me some more complex examples using Outbound?

    Here is my running code (c#):
    ---------------------------------------------------------------------------------
    string ocsHost = "ocs";

    int ocsPort = 7000;

    Endpoint ocsEndpoint = new Endpoint("outboundCallServer", ocsHost, ocsPort);

    OutboundServerProtocol ocsProtocol = new OutboundServerProtocol(ocsEndpoint);
    ocsProtocol.UserName = "*****"; // Contains real user name, just *** out here for security reasons
    ocsProtocol.UserPassword = "****"; // Contains real password, just *** here for security reasons

    ocsProtocol.Open();

    RequestGetCampaignStatus getCampaignStatusRequest = RequestGetCampaignStatus.Create();

    // Set the campaign ID
    getCampaignStatusRequest.CampaignId = 109;  //pcsc_CABQWelcome

    try
    {
        // Send the request syncronously
        IMessage response = ocsProtocol.Request(getCampaignStatusRequest);

        // Code always returns EventError    
        if (response.Id == EventError.MessageId)
        {
            Debug.Print("There was an error getting this event response:  " + response.Name);
        }
        else
        {
            Debug.Print("Campaign Status:  " + response.Name);
        }

    }
    catch (Exception ex)
    {
        Debug.Print("Exception:  " + ex.Message.ToString());
    }
               
    ocsProtocol.Close();



  • 2.  RE: Outbound SDK: RequestGetCampaignStatus

    Posted 08-21-2014 17:43
    Becky,  

    Given the amount of detail required, we recommend you open a case for your question.

    Thanks,
    Roger


  • 3.  RE: Outbound SDK: RequestGetCampaignStatus

    Posted 08-22-2014 03:21
    Hi Becky,

    Any response from case? if yes, please post the answer. I am also lost with Outbound SDK.

    Thanks & Regards


  • 4.  RE: Outbound SDK: RequestGetCampaignStatus

    Posted 08-22-2014 14:10
    No responses other than the one above recommending that I open a case for my question.  I've been working on a couple of different projects and have been focusing on the Platform SDK (Configuration SDK).  I learned quite a bit about that API so will probably move back to working on the Outbound sometime next week.  I have a few ideas to try and will post something if I get it working.

    There aren't as many examples for the Outbound SDK.  I will let you know if/when I get something working.

    Thanks


  • 5.  RE: Outbound SDK: RequestGetCampaignStatus

    Posted 10-27-2014 14:01
    Hi,

    Don't know if you have an answer yet but you need to set more properties of the request. In java it lookes like this

                request.setCampaignId(153); //dbid of campaign
                request.setGroupId(642); //dbid of agent group connected to campaign group
                request.setSessionId(125); //dbid of campaign group.

    That will generate the following:

    >>LOGGING REQUEST

    'RequestGetCampaignStatus' (12) attributes:
        GSW_CM_AttrSessionID [int] = 125
        CM_AttrCampaignID [int] = 153
        CM_AttrGroupID [int] = 642
    ************************************

    >>LOGGING EVENT 

    Incoming Message: 'EventCampaignStatus' (24) attributes:
        CM_AttrCampaignID [int] = 153
        CM_AttrDialMode [int] = 3 [Preview]
        CM_AttrGroupID [int] = 642
        CM_AttrReferenceID [int] = 2
        CM_AttrGroupCampStatus [int] = 5 [Running]
        CM_AttrOptimizeGoal [int] = 80
        CM_AttrProperties [bstr] = KVList: 
    'camp_group_data' [lst] = KVList:
        'CSGUID' [bstr] = 
           0x68 0x97 0x9e 0x6e 0x57 0x04 0x47 0x9b 0x82 0x98
           0xfd 0xe6 0x7e 0xd9 0x05 0xa5 0x00 0x00 0x00 0x03
        CM_AttrOptimizeBy [int] = 1 [BusyFactor]
    ************************************

    Hope that helps.

    /Oskar