Hi All ,
I am trying to get Security roles of team using webApi . i can get result.length as 1 but am getting lenght as zero ."result[0].teamroles_association.length" . i have one security role for team.
below is the code .
query = '$expand=teamroles_association($select=name)&$filter=teamid eq ' + ownerId ;
WebApi.SDK.retrieveMultipleRecords('teams', query,
function (result) {
if (result.length > 0) {
for (var a = 0; a < result[0].teamroles_association.length; a++) {
var teamroles_association_name = result.teamroles_association[a]["name"];
}
}
},
function (error) {
alert(error.message);
NmErrorLogger.log(error, 'Library_CommonFunction.js: isPartOfOpportunitySplitPilot');
// Error Handler
},
function () {
},
false, null
);
Please Suggest .
Thanks ,
Waseem.
*This post is locked for comments