This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Makedecision from VB.NET script

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?

  • So, when the GRANTED event has been generated the approval was processed.

    Maybe your approval workflow has some more steps to process?

    Did you check the entries in the table PWODecisionHistory pointing to your PersonWantsOrg entry? Are sure that no new entry has been created?