Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. var fromArray = [];
  2.  
  3. var PhoneCall = {
  4. from: fromArray,
  5. to: toArray,
  6. Subject: "Create a phonecall record",
  7. OwnerId: fromArray,
  8. PhoneNumber: phoneNumber
  9. }
  10.  
  11.  
  12. CrmRestKit.Create("PhoneCall", PhoneCall)
  13. .fail(function (xhr, status, errorThrown)
  14. {
  15. console.log(JSON.stringify(xhr, null, 4));
  16. console.log(JSON.stringify(status, null, 4));
  17. console.log(JSON.stringify(errorThrown, null, 4));
  18.  
  19. })
  20. .done(function (data, status, xhr) {
  21. console.log(JSON.stringify(data, null, 4));
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement