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

How to find the length of a viewIntObject

Summary:

How to find the length of a viewIntObject. Below is the code snippet. Need to find how many records this has returned, so we can avoid the while loop since the while loop execution takes too much time.

def viewIntObj1=newView('Subscription')
viewIntObj1.appendViewCriteria("SubscriptionId = '" + SubscriptionId + "'")
viewIntObj1.executeQuery()
viewIntObj1.reset()

while (viewIntObj1.hasNext()){

//other code here

}

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):



Code Snippet (add any code snippets that support your topic, if applicable):

def viewIntObj1=newView('Subscription')
viewIntObj1.appendViewCriteria("SubscriptionId = '" + SubscriptionId + "'")
viewIntObj1.executeQuery()

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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