Sales, Marketing, and Territories Apps - EBS (MOSC)

MOSC Banner

Groovy Script to retrive roles

edited Jun 30, 2021 4:45PM in Sales, Marketing, and Territories Apps - EBS (MOSC) 1 commentAnswered

Hi all,

i want to retrive roles related to my account, i used this code:

def vo = newView('Resource');

def vc = vo.createViewCriteria()

def vcr = vc.createRow()

def vci1 = vcr.ensureCriteriaItem('PartyId')

vci1.setOperator('=')

vci1.setValue(adf.util.getUserPartyId())

vc.insertRow(vcr)

vo.appendViewCriteria(vc)

vo.executeQuery()


if(vo.hasNext()) 

{

def r = vo.next()

def x = r?.Roles.toString()

println(x); 


 }


The value of x is 'Channel Account Manager,Channel Sales Manager' but i have also other roles, why i can retrive only these roles??


Can you kindly help me?Thanks

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

EBS Sales Tags

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center