locked
Create/update relationship Entities in MDS RRS feed

  • Question

  • Hi,
    I'm new to MDS. We have created 2 entities. 

    Customer[Code,CustomerID,CustomerName] 

    CustomerAddress[Code,CustomerID,AddressID,Address]

    CustomerID is Domain based attribute in Customer table. 

    User enters both customer and address from a single screen. Currently I'm using doing 2 service calls to achieve both these inserts.

    1) First Create Customer member and get the inserted new customer code from InsertedMembers.

    Collection<MemberIdentifier> InsertedMembers =  mdsProxy.EntityMembersCreate(international, entityMembersCustomer, true, out operationResult);
    string strNewTypeCode = InsertedMembers[0].Code;//New Customer ype Code

    2) Again another insert to CustomerAddress entity through another service call

    mdsProxy.EntityMembersCreate(international, entityMembersAddress, true, out operationResult);


    By anyway, if I this 2 service calls for this operation can be done with single EntityMembersCreate()?

    Please guide me an optimum way to achieve this operation. I'm ready to change the Entity structure is needed.

    We will do the same operation for Update too.

    Thank you!


    - ANAND

    Wednesday, December 7, 2016 3:14 PM

All replies