1IM version 7.0.2
Created this script (run from Designer and thru the swagger-ui)
Try
Dim dboKey As New DbObjectKey(Connection.GetSingleProperty("PersonWantsOrg","XObjectKey", String.Format("UID_PersonWantsOrg='{0}'",uidPwo)))
Dim dbObject As ISingleDbObject = Connection.CreateSingle(dboKey)
If dbObject IsNot Nothing Then
dbObject.Custom.CallMethod("MakeDecision",uidApprover,True,reason)
dbObject.Save()
End If
Catch ex As Exception
Return ex.StackTrace.ToString
End Try
But the request never is granted, the approver is valid to approve, the pwo record is in Request OrderStatus.
I enabled logs in Designer but there is a lot of info, I do see the process for sending out an email on a Granted EVENT in PWO but the record in the table never gets updated.
Am I missing something or doing something really wrong?