Added sample use case of trigger API