Skip to Content
avatar image
Former Member

GetEntity passing multiple keys,when executing through URL

Hello,

I am calling an getEntity with two keys through the URL,I get an error invalid key predicate.

The two key are the following

  • LoioId
  • Functlocation

The url,I am executing

http://XXXX:8000/sap/opu/odata/sap/XXXX_srv_01/ImageSet('FOL31000000000004EXT39000000000035','1482')

Please help me resolve this issue.

regards

Kaushik

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 14, 2014 at 12:56 AM

    Hello Kaushik,

    Please correct the URL as below :

    U need to pass Property names as well when u have multiple keys as shown below :

    /ImageSet(Loiold='<Your_Value>',Functlocation='Your_Value')

    When your Model has only one Key say Loiold is the key, then u can pass as below :

    /ImageSet('<Your_Value>')

    GW itself will map this value to Loiold Property which is only a Key for the model.

    Regards,

    Ashwin

    Add comment
    10|10000 characters needed characters exceeded