Need sample addon code which accepts parameters

Hi Team,

I would like to gain access to sample addon Java code which accepts parameters. I have looked everywhere but not able to find anything apart from clear fields examples.

My utlimate goal is to create addon for reading latest email from gmail or outlook, for this user will be passing all the required parameter values like host,port,email id,password etc.

This link has helped. Also published addon “Mail Checker”.

1 Like

Hi @harsh.sengar ,

You can use “@Parameter” to define the parameters for your addon.

Example:
@Parameter
public String myEmail;

Sample Code:

Regards,
Ram…

1 Like