Trouble pulling Case information using OData web service.

Good afternoon all. 

Right now I'm doing some implementations from BPM to our platforms and I'm trying to get some cases based on the StatusId. In order to do so, I created a request and tried it on Postman using the $filter attached to the address. 

Currently it is written as: $filter=StatusId eq ''

and I'm getting this message: "Operator 'eq' incompatible with operand types 'Edm.Guid' and 'Edm.String'". I tried removing the quote marks and a lot different ways. 

How can I convert this GUI type to String into the request so I can avoid this message. 

Thanks in advance. 

Like 0

Like

3 comments

Hello Ramon,

Change the filter to specify the string is a guid like this:

$filter=StatusId eq guid'<id_status>'

(Note: there is no space between the guid label and the quoted guid string)

Ryan

Hello.

The above answer is correct. You can find more details in the academy article below:

https://academy.bpmonline.com/documents/technic-sdk/7-13/examples-reque…

Matt

Ryan, Matt, it's working as expected. Thank you very much for your help. 

Show all comments