/ Forums / Advansys Formativ / Creating Solutions with Formativ / Passing Custom Parameters to Non-Custom Items / Reply To: Passing Custom Parameters to Non-Custom Items

#6974
Support 1a
Participant

    Thank you for your enquiry below.

    The optimal way to assign user-defined data to a message is to use the GroupWise custom field mechanism. Unfortunately, this only works for messages that already exist in the message store. When you are composing a new message, the message does not yet exist in the message store, and therefore you cannot use any of the Object API methods to add a custom field.

    You do have a couple of options none the less. You could add an attachment to the message being composed that contained the classification information. You could also insert the classification information somewhere in the body (or subject).

    You could also force the user to save the message into Work in Progress. This forces the message to be saved into the message store, at which point you could then add a custom field to the message that stored your classification information.

    To answer your last question, pre-built Formativ functions cannot be overloaded to take different parameters. You would need to write your own extended methods, then call the original Formativ method at the appropriate time.

    I hope this helps.

    Advansys Support