Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Product_for_Sample_Literature__c> ProductLineItems =[SELECT id,Sample_Literature_Request__c,Batch_Information__c,Detail__c,Product__r.Name,Quantity__c,Product_APN__c from Product_for_Sample_Literature__c WHERE Sample_Literature_Request__c ='a0Eb0000001UVLF'];
- If list size has one, the XMl should like this.And assign the values of list to below elements
- <Items>
- <SFDCLineID>1</SFDCLineID>
- <Material>ProductLineItems.Batch_Information__c</Material>
- <Quantity>ProductLineItemsQuantity__c</Quantity>
- </Items>
- If list size has two, the XMl should like this.
- <Items>
- <SFDCLineID>1</SFDCLineID>
- <Material>ProductLineItems.Batch_Information__c</Material>
- <Quantity>ProductLineItemsQuantity__c</Quantity>
- </Items>
- <Items>
- <SFDCLineID>2</SFDCLineID>
- <Material>ProductLineItems.Batch_Information__c</Material>
- <Quantity>ProductLineItemsQuantity__c</Quantity>
- </Items>
- the list size has 3 ,
- <Items>
- <SFDCLineID>1</SFDCLineID>
- <Material>ProductLineItems.Batch_Information__c</Material>
- <Quantity>ProductLineItemsQuantity__c</Quantity>
- </Items>
- <Items>
- <SFDCLineID>2</SFDCLineID>
- <Material>ProductLineItems.Batch_Information__c</Material>
- <Quantity>ProductLineItemsQuantity__c</Quantity>
- </Items>
- Items>
- <SFDCLineID>3</SFDCLineID>
- <Material>ProductLineItems.Batch_Information__c</Material>
- <Quantity>ProductLineItemsQuantity__c</Quantity>
- </Items>
Add Comment
Please, Sign In to add comment