Hi All,
I am using getcontentobjectdetailsbyid to get the content of a folder which is present in the KC . Strangely this method works fine in my code in Dev environment but when i am trying to use it in Test environment , it is throwing me an error i.e Expression evaluation error at function 'getcontentobjectdetailsbyid': String index out of range: -1. Please help me with this .
Discussion posts and replies are publicly visible
Not sure, If you are trying to use the same folder id as in dev. The folder ids change from environment to environment. I suggest you use folder constant and then get a dynamic folder id.
i am just passing id to this function to get content from that environment , i am not hard coding anything here .
shangloos - Are you using the same id's as that of dev? How are you passing the id's? Where are you obtaining them from?