The following is a sample create compound of the Quote entity with the QuoteDetails entity:
<?xml version="1.0" encoding="UTF-8"?> <is:quote.CompoundCreate xsi:schemaLocation="urn:iwaysoftware:adapter:MSCRM2011:quote:CompoundCreate CompoundCreate_request_quote.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:is="urn:iwaysoftware:adapter:MSCRM2011:quote:CompoundCreate"> <is:EntityList> <is:Entity> <is:Target>String</is:Target> <is:Params> <is:Quote> <is:Params> <is:customerid> <is:Id>E0CB7AA8-DDE2-E111-BC89-0050568845D9</is:Id> <is:LogicalName>account</is:LogicalName> </is:customerid> <is:name>QuoteForTestCompoundCreate</is:name> <is:ownerid> <is:Id>CE94241B-E8C4-E111-8BA2-0050568845D9</is:Id> <is:LogicalName>systemuser</is:LogicalName> </is:ownerid> <is:pricelevelid> <is:Id>EEEEEEEE-EEEE-EEEE-EEEE-EEEEEEEEE203</is:Id> <is:LogicalName>pricelevel</is:LogicalName> </is:pricelevelid> <is:quotenumber>QUOTE-001</is:quotenumber> <is:transactioncurrencyid> <is:Id>856A5E86-E8C4-E111-8BA2-0050568845D9</is:Id> <is:LogicalName>transactioncurrency</is:LogicalName> </is:transactioncurrencyid> </is:Params> </is:Quote>
<is:QuoteDetails> <is:quotedetail> <is:Params> <is:quantity>5</is:quantity> <is:productid> <is:Id>B95C1222-62D6-E111-BC89-0050568845D9</is:Id> <is:LogicalName>product</is:LogicalName> </is:productid> <is:uomid> <is:Id>7F921CD4-B519-43C0-A4A1-BAA5CBA20C51</is:Id> <is:LogicalName>uom</is:LogicalName> </is:uomid> </is:Params> </is:quotedetail> </is:QuoteDetails> </is:Params> </is:Entity> </is:EntityList> </is:quote.CompoundCreate>
iWay Software |