AnsweredAssumed Answered

Translating Script - Equivalent of Set Field

Question asked by azriley on Jun 18, 2014
Latest reply on Jun 19, 2014 by azriley

Title

Translating Script - Equivalent of Set Field & Commit in API?

Post

     Have a script that registers students. Can someone please tell me the equivalents of `Set Field` & `Commit Records/Requests`?

     Thank in advance :)

     Aaron

      

     Highlights of that script are provided below:


     # GET RELATED TABLE (FROM CONTACTS)
     Go to Related Record [From table:“Register_IndFilter_Contacts_ContID”;Using layout: “Contacts” (Contact) ]

     # UPDATE REGISTER (individual ID, contact ID)
     Set Field [Register::zk_IndividualID; Register_Individual_Filter::zk_IndividualID]
     Set Field [Register::zk_ContactID; Register_Individual_Filter::zk_ContactID]

     Commit Records/Requests

     # UPDATE REGISTER CONTACTS (last registration date)
     Set Field [Register_Contacts_ContID::zc_LastRegistrationDate_d; Get(CurrentDate)]

     Commit Records/Requests

     # UPDATE REGISTRATION ACTIVITY (registration date, status)
     Set Field [Register_Contacts_ContID::zc_LastRegistrationDate_d; Get(CurrentDate)]
     Set Field [Register_Contacts_ContID::Status; "Active"]

      

Outcomes