Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Aug 14 ROQL retrieve Distribution list (3 Comments)

$
0
0

Topic by Luuk

Content

Hello all,

We are testing the new ROQL way to retrieve the distribution list from Rightnow.

When I run the following code:

    $res = RNCPHP\ROQL::query("SELECT *, ClientName.* FROM DistributionEmailAddress")->next();
    while($dispentry= $res->next())
            {    
                print_r($dispentry);
            }

 

I get the following error:

Uncaught exception 'RightNow\Connect\v1_2\ConnectAPIError' with message 'Unknown table or column 'ClientName'' in ...

But when I run the code as follows:

    $res = RNCPHP\ROQL::query("SELECT * FROM DistributionEmailAddress")->next();
    while($dispentry= $res->next())
            {    
                print_r($dispentry);
            }

 

I retrieve the distribution list. The only problem with this is, that I cannot retrieve the first and last name of the contact in the distribution list.

Anyone has this same problem or found a workaround?

Please note that this is a new feature only available from August 2014 and later.

Version

Aug. 14

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles