Automation: Document does not exist error

I'm using @ldoguin's REST Client example to fetch some data from 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 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




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).


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.