Navigate to edit page after creation

#1

What I would like to do is navigate straight to the edit page of a newly created entity once it has been committed to the database. I cannot figure how to ascertain the Id of the new record once it is created to navigate straight to the edit page rather than redirect to the entity listings page.

Can you help? Thanks.

0 Likes

#2

The new item should be returned in the ${result} of the createXXX data source method - you should be able to use it from the Then event of the Invoke data source method action.

0 Likes

#3

Ah, yes, I should know this. Thank you. I think I tried this and it didn't work. I probably tried to use ${result.Id} rather than ${result.id}. I'm learning more about debugging the post requests and should really know this nuance.

Thanks again for the wonderful support.

0 Likes