Restrictions

You cannot assign the following types of data to a variable of imported type:
  • A value or variable belonging to a standard type (string, integer, double, boolean, field).
  • A instance of, or a variable belonging to, a different imported type (unless it is a superclass of the imported type).
  • An array of instances of objects returned by a method called on a variable of imported type.

If your macro attempts to assign one of these invalid types of values to a variable of imported type, then the Macro runtime generates a runtime error and halts the macro.