Post

2 followers Follow
0
Avatar

Query all notes via Rest API

In our organization, we create Note item at Customer level as well as Project level. We create a custom field which is used to link a Project item to an existing Customer item. I'd like to retrieve all notes which either attached to Customer or Project belongs to the same Customer, how do I achieve this via Rest API? Please help. Thanks.

Michael Trang Answered

Please sign in to leave a comment.

2 comments

0
Avatar

Something along these lines will do the work:

POST it to /services//data/EntityQuery

{

"typeName": "Note",

"fields": [ "Comment"],

"where": {

"leftExpression": {

"fieldName": "AttachedTo"

},

"operator": "Equal",

"rightExpression": {

"value": "/Project/<InsertProjectIdHere>"

},

}

}

Eyal Post 0 votes
Comment actions Permalink