none
FIM web service connector - how to pass the multivalued attribute value of reference type (Full Import) RRS feed

  • Question

  • Hello,

    I have a web service, wich returns the user and it's related roles:

      [DataContract]

        public class SAP_AD_User

        {

            [DataMember]

            public Int32 UserId { get; set; }

            [DataMember]

            public string EmployeeNumber { get; set; }

            [DataMember]

            public string FirstName { get; set; }

            [DataMember]

            public string LastName { get; set; }

            [DataMember]

            public string FullName { get; set; }

            [DataMember]

            public string UserName { get; set; }

            [DataMember]

            public string JobTitle { get; set; }

            [DataMember]

            public string Company { get; set; }

            [DataMember]

            public IEnumerable<RoleID> SAPUserRoles { get; set; }

        }

        [DataContract]

        public class RoleID

        {

            [DataMember]

            public string FIMRoleId { get; set; }

        }

    I have defined two attributes: User (with refSAPUserRoles Multi-Valued attribute of Reference type) and Role (with RoleId of String type), I've also designed the Full Import workflow for webservice MA. But how to assign a value to this multi-valued attribute in CreateValueChange element?


    • Edited by freadomfee Thursday, June 13, 2013 2:55 PM
    Thursday, June 13, 2013 2:54 PM

Answers

  • You should do one CreateAttributeChange and the in the ForEach loop multiple CreateValueChange.

    Here is a screenshot from my wsconfig calling a SAP function that return users and role assignements (multivalue reference attribute).

    Kind regards, David

    • Marked as answer by freadomfee Tuesday, June 25, 2013 11:50 AM
    Friday, June 21, 2013 8:15 PM

All replies