Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CreateCustomerNoteRequest createCustomerNotesRequestInfo = new CreateCustomerNoteRequest();
- //FIRST WRITING NOTE TO OLD ACCOUNT TO SAY ITS BEEN COMPRIMISED AND SHOW NEW CUSTOMER NUMBER:
- createCustomerNotesRequestInfo.UserName = username;
- createCustomerNotesRequestInfo.Password = password;
- createCustomerNotesRequestInfo.SystemToken = "sysToken";
- createCustomerNotesRequestInfo.Note = new CustomerNote();
- createCustomerNotesRequestInfo.Note.CustomerNumber = cloneCustomerNumber;
- createCustomerNotesRequestInfo.Note.Category = new CustomerServiceWSDL.LookupItem();
- createCustomerNotesRequestInfo.Note.Category.Code = "GEN";
- createCustomerNotesRequestInfo.Note.Details = "Account Takeover – Fraud. Acc – " + customerNumberTextBox.Text + " closed as compromised and new account " + newCloneCustomerNumber + " created matching existing data";
- createCustomerNotesResponse = soapClient.CreateCustomerNote(createCustomerNotesRequestInfo);
- try
- {
- for (int i = 0; i <= notesCount; i++)
- {
- customerNotesArrayList.Add(getCustomerNotesResponse.Notes.Items[i]);
- //i++;
- }
- }
- CreateCustomerNoteRequest createCustomerNotesRequestInfo = new CreateCustomerNoteRequest();
- for (int i=0; i<=notesCount;i++)
- {
- CreateCustomerNoteRequest a[i] = new CreateCustomerNoteRequest();
- }
- CreateCustomerNoteRequest[] a = new CreateCustomerNoteRequest[notesCount];
- for (int i = 0; i <= notesCount; i++)
- {
- a[i] = new CreateCustomerNoteRequest();
- }
- // now you can use the array outside the loop as well
- for (int i = 0; i <= notesCount; i++)
- {
- CreateCustomerNoteRequest request = new CreateCustomerNoteRequest();
- var response = soapClient.CreateCustomerNote(request);
- customerNotesArrayList.Add(response .Notes.Items[i]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement