Set IsVolatile in custom function
Refer to the following example code to see how to make custom function volatile.