Uploaded image for project: 'OpenICF'
  1. OpenICF
  2. OPENICF-853

Workday - mobile is not updated if telephone is set

    Details

      Description

      When updating employee without set telephone attribute, mobile attribute is correctly changed

      curl --request PUT   --url http://localhost:8080/openidm/system/workday/employee/0e44c92412d34b01ace61e80a47aaf6d   --header 'content-type: application/json'   --header 'if-match: *'   --header 'x-openidm-password: openidm-admin'   --header 'x-openidm-username: openidm-admin'   --data '{"mobile": "+1 (415) 4410111"}'
      
      {"_id":"0e44c92412d34b01ace61e80a47aaf6d","workerType":null,"birthDate":"1959-05-22-07:00","positionEffectiveDate":"2000-01-01-08:00","terminated":false,"preferredLastName":"Morgan","gender":null,"userID":"smorgan","costCenter":"Office of CEO","preferredFirstName":"Steve","managerID":"21002","email":"smorgan@workday.net","company":"Global Modern Services, Inc. (USA)","mobile":"+1 (415) 4410111","employeeID":"21002","active":true,"employee":true,"companyCode":"GMS USA","hireDate":"2000-01-01-08:00","title":"Chief Executive Officer","costCenterCode":"10000"}
      

      If employee have telephone attribute, mobile attribute is not changed and its value is null

      curl --request PUT   --url http://localhost:8080/openidm/system/workday/employee/5bb2f85ece5e018aec9e4ad0ff814a16   --header 'content-type: application/json'   --header 'if-match: *'   --header 'x-openidm-password: openidm-admin'   --header 'x-openidm-username: openidm-admin'   --data '{"mobile": "+1 (415) 1234567"}'
      
      {"_id":"5bb2f85ece5e018aec9e4ad0ff814a16","workerType":null,"birthDate":"1991-03-04-08:00","positionEffectiveDate":"2017-01-25-08:00","terminated":false,"preferredLastName":"Cronje","telephone":"+27  01 445 4550","gender":null,"userID":"bcronje","costCenter":"Global Support - EMEA","preferredFirstName":"Brendan","managerID":"21454","email":"brendan.cronje@workday.net","company":"Global Modern Services (Pty.) Ltd (South Africa)","mobile":null,"employeeID":"21457","active":true,"employee":false,"companyCode":null,"hireDate":"2017-01-25-08:00","title":"Customer Service Representative","costCenterCode":"33300"}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gael Gael Allioux
                Reporter:
                michal.orlik@profiq.cz Michal Orlik
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: