Setting a workflow status field in a trigger doesn't wor

Posted by Rollbase User on 15-Aug-2013 12:34

Setting a workflow status field of a related object in a trigger doesn't work as expected. I've tried setting it using its integration code and id and neither approach works. I' want to change the status in a pending_hire object from status = "Created" to status = "Not Hired" Here's the debug output. Original Formula rbv_api.println("Before = " + rbv_api.getFieldValue("pending_hire", {!R15759176.id}, "status#id")); rbv_api.println("Before Code = " + rbv_api.getFieldValue("pending_hire", {!R15759176.id}, "status#code")); rbv_api.println("Try setting by integration code"); rbv_api.setFieldValue("pending_hire", {!R15759176.id}, "status", "Not Hired"); rbv_api.println("After = " + rbv_api.getFieldValue("pending_hire", {!R15759176.id}, "status#id")); rbv_api.println("After Code = " + rbv_api.getFieldValue("pending_hire", {!R15759176.id}, "status#code")); rbv_api.println("Try setting by id"); var newId = rbv_api.getIdByCode("pending_hire", "status", "Not Hired"); rbv_api.println("New Id = "

All Replies

This thread is closed