Post

2 followers Follow
0
Avatar

Relation query - EnhancementRequest is not supported?

I am trying to get the EnhancementRequest that is related to a project.

I am using relationQuery:

https://api.clarizen.com/V2.0/services/data/RelationQuery

I am giving the entityId for the project and requesting the relationName of EnhancementRequest:

 

{'entityId': '/Project/69uk8feup1l1toq8js7bnkj3u767',
'relationName': 'EnhancementRequest',
'fields': ['C_ProjectSize']}

 

 

The api returns to me this errorcode:

{'errorCode': 'InvalidArgument',
 'message': '\r\n            Relations query for relation EnhancementRequest is not supported for class Project\r\n            Parameter name: relationName',
 'referenceId': '17ZsYYMlGSRTj3eVcaiijh'}

 

Is it not possible to pull the reladed EnhancementRequest for a Project?

 

Jared Thompson Answered

Please sign in to leave a comment.

4 comments

0
Avatar

Roland - thank you that was it.

I am surprised it does not use the api name EnhancementRequest like the api wants in other areas.

 

I will look at the link to try to understand the reasoning - thank you.

Jared Thompson 0 votes
Comment actions Permalink
0
Avatar

Roland could you share the syntax you used to interrogate DescribeEntityRelations to get the answer you responded with?

Jared Thompson 0 votes
Comment actions Permalink
0
Avatar

Hi Jared,

Sure, here it is:

Please let me know if it helps.

Roland

Roland Pumputis 0 votes
Comment actions Permalink