cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Token in Mail Template

Former Member
0 Kudos

Hi experts,

We have a requirement wherein we have to send the Auctions bid start

time to vendor via mail , when I tried to achieve this by customizing

the mail template , I found that there are no tokens available for

fetching the bid start time for auction. I also tried to use custom

template 1 and wrote script to fetch the value to be placed in the

tokens provided in custom template 1 , but there is no getmethod in

Auction API to fetch the value for Bid Start time though the value is

present in schema PREBID_STARTDATE_DATETIME

please help me to resolve this.

Accepted Solutions (1)

Accepted Solutions (1)

kushagra_agrawal
Active Participant
0 Kudos

Hi Vishal,

Use this: preDate=doc.getFieldMetadata("PREBID_STARTDATE").get(doc);

I think your problem would be resolved.

Let me know if it works.

Thanks,

Kushagra A

Former Member
0 Kudos

Hi Kushagra,

Thanks a lot for your input. It did work.I appreciate.

regards,

Vishal Goel

Answers (1)

Answers (1)

former_member190023
Contributor
0 Kudos

For fields that do not have methods designed you can use the superclass method getFieldMetadata.

Regards,

Bogdan

Former Member
0 Kudos

Hi Bogdan,

Thanks for the input.It was useful.I appreciate.

regards,

Vishal Goel