ServiceNow to Planview User Provisioning Integration

Joshuu
Kilo Sage

Hi All,

 

I am working on a ServiceNow to Planview user provisioning integration using soap.

 

soap message function

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.planview.com/PlanviewEnterprise/Services/UserService/2011/11/01" xmlns:ns1="http://schemas.planview.com/PlanviewEnterprise/OpenSuite/Dtos/UserDto/2013/01/">
    <soapenv:Header />
    <soapenv:Body>
        <ns:Create>
            <ns:dtos>
                <ns1:UserDto>
                    <ns1:Email>${email}</ns1:Email>
                    <ns1:Name>${name}</ns1:Name>
                    <ns1:UserId>${user_id}</ns1:UserId>
                    <ns1:RoleKey>${role}</ns1:RoleKey>
                </ns1:UserDto>
            </ns:dtos>
        </ns:Create>
    </soapenv:Body>
</soapenv:Envelope>

 

I have written a custom script in the flow designer. when I test it I am getting status code as 200 but response as below.

 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><CreateResponse xmlns="http://schemas.planview.com/PlanviewEnterprise/Services/UserService/2011/11/01"><CreateResult xmlns:a="http://schemas.planview.com/PlanviewEnterprise/OpenSuite/OpenSuiteResult/2010/01/01" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><a:Failures xmlns:b="http://schemas.planview.com/PlanviewEnterprise/OpenSuite/OpenSuiteStatus/2010/01/01"/><a:GeneralErrorMessage>Parameter 'dtos' cannot be an empty list for method 'Create'.</a:GeneralErrorMessage><a:Successes xmlns:b="http://schemas.planview.com/PlanviewEnterprise/OpenSuite/OpenSuiteStatus/2010/01/01"/><a:Warnings xmlns:b="http://schemas.planview.com/PlanviewEnterprise/OpenSuite/OpenSuiteStatus/2010/01/01"/></CreateResult></CreateResponse></s:Body></s:Envelope>

 

I don't know how to resolve this. Please assist.

 

Thanks.

1 REPLY 1

Tanushree Maiti
Kilo Patron

Hi @Joshuu ,

 

It seems your end configuration is done. Check with planview team whether record has been created there. 

If created,  ask them to send proper response body. Planview team needs to update their web service. ( it seems to be the possible case)

If not created, ask them to give proper permission to integration account so that it can create record.

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: