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

How to create "Prolongate" request for PWO from script?

I'm trying to create "Prolongate" request for PWO via script.

It should be as simple as 

Dim obj As ISingleDbObject = Connection.CreateSingle("PersonWantsOrg", <UID_PersonWantsOrg>)
Dim res As Object = obj.Custom.CallMethod("Prolongate", DateAdd("d", 123, Now.Date()) )

but it does not work. Exception is not thrown, but "res" variable is null and renewal process is not created.

I tried to run this script from Designer, Object Browser, process. No luck.

If I run "Prolongate" method for the same PWO in Object Browser,  new renewal process is created.

We are using 8.0