azriley

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

Discussion created by azriley on Jun 19, 2014
Latest reply on Jun 20, 2014 by azriley

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