Automation: Document does not exist error

I'm using @ldoguin's REST Client example to fetch some data from openlibrary.org upon document creation.

User goes to create a new book:

alt text

At this time, once the user clicks Create, I would like to fetch rest of the information about the book from openlibrary.org with the given ISBN.

However, there's no document being passed into my OperationMethod, resulting into Document does not exist error.

Here's my event handler:

alt text

Lastly, here's my automation:

alt text

Thanks for the help!

0 votes

1 answers

2252 views

ANSWER



Hi,

I think you should start the chain with the Fetch > Context Document(s) operation, which makes sure the current document is available for the next operation (here, ISBNQuery).

Thibaud

0 votes



This was it. Although I did try this, I had some other issues in my configurations, thus I thought it wasn't it.
05/20/2013