Salesforce

How Do I Retrieve the Current Time? (Magic xpi 4.14)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

How Do I Retrieve the Current Time? (Magic xpi 4.14)

Getting the current time in Magic xpi is done using the Time() function. Time() returns the system time, as it exists on the machine Magic xpi is running on.

Using the Time() function:

The Time() function is often used in the Data Mapper. This will enter the current time for the delivery date, and is also useful for setting timestamps for when a record was created or modified.

To use it, you just type Time(). At runtime, the function will be replaced by the current time.

For an even more precise time, use the mTime function.

Reference
Attachment 
Attachment