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

Retrieve OrganizationServiceSettings via SOAP

Accepted answer
5
Views
1
Comments
edited Jun 8, 2022 11:59AM in General Technical Discussions 1 comment

Content

I'm having a difficult time 'get'ing the OrganizationServiceSetting data.

I've done similar with getting the custom fields but when I get the populated object back, the OrganizationServiceSettings is always null and the tracking variable is set to false.
 
There must clearly be something I'm missing, any direction would be greatly appreciated. 

Version

Connect Web Services 17d

Code Snippet

             ID id = new ID();
id.setId(orgid);

Organization org = new Organization();
org.setID(id);
org.setServiceSettings(new OrganizationServiceSettings()); 

orgs[0] = org;

try
{
    RNObjectsResult getResults = _rightnow.getService().get(orgs, _rightnow.getGetOptions(), _rightnow.getClientInfo(), apiAccessReqeustHeader);

    orgs = getResults.getRNObjects();
    org = (Organization) orgs[0];
}
catch (RemoteException | RequestErrorFault | APIAccessErrorFault | UnexpectedErrorFault | ServerErrorFault | RequestErrorFaultDetail e)
{
    e.printStackTrace();
} 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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