Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. CreateCustomerNoteRequest createCustomerNotesRequestInfo = new CreateCustomerNoteRequest();
  2.  
  3. //FIRST WRITING NOTE TO OLD ACCOUNT TO SAY ITS BEEN COMPRIMISED AND SHOW NEW CUSTOMER NUMBER:
  4. createCustomerNotesRequestInfo.UserName = username;
  5. createCustomerNotesRequestInfo.Password = password;
  6. createCustomerNotesRequestInfo.SystemToken = "sysToken";
  7. createCustomerNotesRequestInfo.Note = new CustomerNote();
  8. createCustomerNotesRequestInfo.Note.CustomerNumber = cloneCustomerNumber;
  9. createCustomerNotesRequestInfo.Note.Category = new CustomerServiceWSDL.LookupItem();
  10. createCustomerNotesRequestInfo.Note.Category.Code = "GEN";
  11. createCustomerNotesRequestInfo.Note.Details = "Account Takeover – Fraud. Acc – " + customerNumberTextBox.Text + " closed as compromised and new account " + newCloneCustomerNumber + " created matching existing data";
  12.  
  13. createCustomerNotesResponse = soapClient.CreateCustomerNote(createCustomerNotesRequestInfo);
  14.  
  15. try
  16. {
  17. for (int i = 0; i <= notesCount; i++)
  18. {
  19. customerNotesArrayList.Add(getCustomerNotesResponse.Notes.Items[i]);
  20. //i++;
  21. }
  22. }
  23.  
  24. CreateCustomerNoteRequest createCustomerNotesRequestInfo = new CreateCustomerNoteRequest();
  25.  
  26. for (int i=0; i<=notesCount;i++)
  27. {
  28. CreateCustomerNoteRequest a[i] = new CreateCustomerNoteRequest();
  29. }
  30.  
  31. CreateCustomerNoteRequest[] a = new CreateCustomerNoteRequest[notesCount];
  32. for (int i = 0; i <= notesCount; i++)
  33. {
  34. a[i] = new CreateCustomerNoteRequest();
  35. }
  36.  
  37. // now you can use the array outside the loop as well
  38.  
  39. for (int i = 0; i <= notesCount; i++)
  40. {
  41. CreateCustomerNoteRequest request = new CreateCustomerNoteRequest();
  42. var response = soapClient.CreateCustomerNote(request);
  43. customerNotesArrayList.Add(response .Notes.Items[i]);
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement