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

Move forward a request (personWantsorg) throught the approval workflow by script

Hi all,

I'm in a migration step from old system to 1IM where I have all requestd with their approval workflow in the old system.

I'd like to update the status of the request created with the approval workflow step where they are in the old system ( I have custom precessing status) is it possible? How can I achieve this with script?

Parents
  • I execute the floow script from job server, it doesn't return any error but nothing happen. no Personwatsorg is created.

    Public Sub CCC_Import_Request
    Dim pBag As New PropertyBag

    pBag.PutValue("UID_Org", "87818304-b6b8-4d8b-898a-881ed18003cf") 'uid_accproduct
    pBag.PutValue("UID_PersonOrdered", "cbf1bf27-09a8-48cc-a2b6-175d934025b3") 'uid_person
    pBag.PutValue("OrderState", "Assigned")
    Dim dbPwO As ISingleDbObject = Connection.CreateSingle("PersonWantsOrg")
    dbPwO.Custom.CallMethod("FillOrder", pBag)
    End Sub

    I miss something?

    I put in UID_ORG the uid of accproduct connected to UNSGROUPB i want to order is it correct?

Reply
  • I execute the floow script from job server, it doesn't return any error but nothing happen. no Personwatsorg is created.

    Public Sub CCC_Import_Request
    Dim pBag As New PropertyBag

    pBag.PutValue("UID_Org", "87818304-b6b8-4d8b-898a-881ed18003cf") 'uid_accproduct
    pBag.PutValue("UID_PersonOrdered", "cbf1bf27-09a8-48cc-a2b6-175d934025b3") 'uid_person
    pBag.PutValue("OrderState", "Assigned")
    Dim dbPwO As ISingleDbObject = Connection.CreateSingle("PersonWantsOrg")
    dbPwO.Custom.CallMethod("FillOrder", pBag)
    End Sub

    I miss something?

    I put in UID_ORG the uid of accproduct connected to UNSGROUPB i want to order is it correct?

Children
No Data