Advertisement
Guest User

Untitled

a guest
Jan 30th, 2017
28
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (sourceValue('$.data.source') == "abalobi_sample") {
  2.     steps(
  3.         create("Ablb_Monitor_Sample__c", fields(
  4.             // field("usertype__c", sourceValue("$.data.usertype")),
  5.             // field("permission_local_assistant__c", sourceValue("$.data.permission_local_implementer"))
  6.         ))
  7.     )
  8. } else if (dataValue('source') == "abalobi_catch") {
  9.     steps(
  10.         create("Ablb_Monitor_Sample__c", fields(
  11.             // field("usertype__c", sourceValue("$.data.usertype")),
  12.             // field("permission_local_assistant__c", sourceValue("$.data.permission_local_implementer"))
  13.         ))
  14.     )
  15. } else if (dataValue('source') == "abalobi_boat") {
  16.     steps(
  17.         create("Ablb_Monitor_Sample__c", fields(
  18.             // field("usertype__c", sourceValue("$.data.usertype")),
  19.             // field("permission_local_assistant__c", sourceValue("$.data.permission_local_implementer"))
  20.         ))
  21.     )
  22. } else if (dataValue('source') == "abalobi_monitor") {
  23.     steps(
  24.         create("Ablb_Monitor_Sample__c", fields(
  25.             // field("usertype__c", sourceValue("$.data.usertype")),
  26.             // field("permission_local_assistant__c", sourceValue("$.data.permission_local_implementer"))
  27.         ))
  28.     )
  29. }
Advertisement
RAW Paste Data Copied
Advertisement