Add Approver By Python Scripts after upgrade doesn't work

Add Approver By Python Scripts after upgrade doesn't work

Hi
I Upgrade SDP to 11.1 Build 11140
I work with this python script to add approver. But after upgrade it doesn't work.
I think it about json v3. could you explain to me what can i do for add approver with python script?
"I have not any error. and script Successfully run. but the i don't have the approver tab"
thanks.

  1. #List of Packages used in this Script.
    import sys
    import json
    import urllib
     
    detailsJSON1={}
    detailsJSON1['requester']=requestObj['REQUESTER']
     
    #Setting up the result operation 
    resultjson={}
    resultjson["operation"] = []
    resultjson["result"]="success"
    message = "Sample Python script for adding approvers"
    resultjson["message"]=message

    #Creating the json object for submitting Approval 
    operationJson={"INPUT_DATA":[]}
    operationJson["OPERATIONNAME"]="ADD_APPROVAL_STAGE"
    approvalArray={}
     
    approvalObject='$REPORTING_TO$' # The email will be send to whoever we setup as reporting to in the requesters settings. Alternatively use 'anyone@company.com' for fixed aprover
    approvalArray={"StageOne":[]}
    approvalArray['StageOne'].append(approvalObject);
    operationJson['INPUT_DATA'].append(approvalArray)
    operationJson["send_immediately"]="true" #When this is set to true , the approvals will be added and the mail  will be send immediately.

    resultjson['operation'].append(operationJson)
     
    print(resultjson)

    #--- End of Script----

     

                  New to ADSelfService Plus?