Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/23/2024 03:50 PM - last edited on 07/23/2024 11:44 PM by Sunil
am using the workday OOB soap update user json to update email, i tried to test the OOB json that is given in wokday document after correcting multiple errors am getting below error. anybody faced this issue.
ERROR:
JSON:
[{"REQUESTXML": "${user.email != null && user.email != '' ? ('<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:bsvc=\"urn:com.workday/bsvc\"><soapenv:Header> <wsse:Security soapenv:mustUnderstand=\"1\" xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\"><wsse:UsernameToken wsu:Id=\"UsernameToken-64DBF26FBA30D3CCB6146964280369918\"> <wsse:Username>' +USERNAME + '</wsse:Username> <wsse:Password Type=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText\">' +PASSWORD+'</wsse:Password><wsse:Nonce EncodingType=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary\">lLP+oysknDXxg0ZcnRTUXg==</wsse:Nonce></wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <bsvc:Maintain_Contact_Information_for_Person_Event_Request bsvc:Add_Only=\"false\" bsvc:version=\"v31.0\"> <bsvc:Business_Process_Parameters> <bsvc:Auto_Complete>true</bsvc:Auto_Complete> <bsvc:Run_Now>true</bsvc:Run_Now></bsvc:Business_Process_Parameters> <bsvc:Maintain_Contact_Information_Data> <bsvc:Worker_Reference bsvc:Descriptor=\"?\"><bsvc:ID bsvc:type=\"Employee_ID\">'+user.username+'</bsvc:ID> </bsvc:Worker_Reference> <bsvc:Effective_Date>'+new Date().format(DATEFORMAT)+'</bsvc:Effective_Date><bsvc:Worker_Contact_Information_Data> <bsvc:Email_Address_Data> <bsvc:Email_Address>'+user?.email+'</bsvc:Email_Address> <bsvc:Usage_Data bsvc:Public=\"true\"> <bsvc:Type_Data bsvc:Primary=\"true\"> <bsvc:Type_Reference bsvc:Descriptor=\"work\"> <bsvc:ID bsvc:type=\"Communication_Usage_Type_ID\">WORK</bsvc:ID></bsvc:Type_Reference> </bsvc:Type_Data> </bsvc:Usage_Data> </bsvc:Email_Address_Data> </bsvc:Worker_Contact_Information_Data> </bsvc:Maintain_Contact_Information_Data> </bsvc:Maintain_Contact_Information_for_Person_Event_Request> </soapenv:Body> </soapenv:Envelope>') : ''}"}]
this is my recent json still facing same error , if anyone have working updateuserjson in txt format will help. or you can validate the current attached json.
[This message has been edited by moderator to merge reply comment]
Solved! Go to Solution.
07/24/2024 10:30 PM
Hello @musthak_ahamad,
Please refer the below post,
https://forums.saviynt.com/t5/saviynt-knowledge-base/write-back-generated-email-address-for-onboarde...
Thanks,
07/28/2024 03:25 PM
it worked for me , there is nothing wrong with the json , the WSDL URL is issue , after correcting it the above json worked fine.