on 10-06-2018 4:33 AM
i-flow.pngDear Experts,
i have requirement where i need to integrate the data from CRM system to C4C system. As a part of that i am having header fields and line items in the sender structure. but on target side the header fields should be mapped to one entity(ContractCollection) and line items should be mapped to another entity(ContractItemCollection) . Once the header fields are inserted into C4C it will give the response. From the response we need to capture the parent object id field which should be attached to the Contract item Collection . Otherwise we are not able to insert the line items.
I am using Hana Cloud Integration as a middleware and i am able to create the Header details. For Reference i have attached the screenshot of I-flow
Here is my Queries
1. how to capture the field and attach it to the second payload?
2. how to design my iflow?
Please Suggest me on this.
Source Structure
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://www.abc.com/abc/xxx/ServiceContract/SOAPtoOdata"> <soapenv:Header/> <soapenv:Body> <soap:ServiceContract> <ServiceContract> <!--Optional:--> <Contract> <!--Optional:--> <ProcessingTypeCode>ZISC</ProcessingTypeCode> <!--Optional:--> <ValidityStartDate>31-12-2018</ValidityStartDate> <!--Optional:--> <ValidityEndDate>31-12-9999</ValidityEndDate> <!--Optional:--> <BuyerPartyID>1000000</BuyerPartyID> <!--Optional:--> <ProductRecipientPartyID>10023</ProductRecipientPartyID> <!--Optional:--> <ExternalKey></ExternalKey> <!--Optional:--> <BuyerID></BuyerID> <!--Optional:--> <ContractLifeCycleStatusCode>1</ContractLifeCycleStatusCode> </Contract> <!--Zero or more repetitions:--> <ContractItem> <!--Optional:--> <ItemType>?</ItemType> <!--Optional:--> <Product_Type>?</Product_Type> <!--Optional:--> <ProductID>?</ProductID> <!--Optional:--> <Quantity>?</Quantity> <!--Optional:--> <SOMTechnicalID>?</SOMTechnicalID> </ContractItem> <!--Optional:--> <OrganizationalData> <!--Optional:--> <SalesOrganisationID>O 50000003</SalesOrganisationID> <!--Optional:--> <DistributionChannelCode>00</DistributionChannelCode> <!--Optional:--> <DivisionCode>05</DivisionCode> </OrganizationalData> <!--Optional:--> <InvolvedParties> <!--Optional:--> <ProductRecipientPartyID>10023</ProductRecipientPartyID> <!--Optional:--> <BillToPartyID>10023</BillToPartyID> <!--Optional:--> <PayerPartyID>10023</PayerPartyID> <!--Optional:--> <BuyerPartyID></BuyerPartyID> </InvolvedParties> </ServiceContract> </soap:ServiceContract> </soapenv:Body>
Regards
Giridhar Vegi.
Follow below -
1. In the flow, just after Start event user a Content modifier and store the input body into a header field.
2. After 1st request reply step where you are inserting header data and getting parent object id, use another Content modifier.
Store parent object id in a header field and store previously stored input request in the body.
3. Do the mapping with line item data of the second structure. Use one script to put parent object id in the final structure taking from the header field.
4. Use another request reply step to insert the data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.