Hi Stevie - I hope you are doing well!
I think that I would try the following, which should provide you the standard bind functionality that you are looking for in your Scheduled Report (for both Subject and Message) using :&DATE&, as an example:
from psdi.mbo import SqlFormat
def getResolvedField(m, field):
sqlf = SqlFormat(m, m.getString(field))
sqlf.setIgnoreUnresolved(True)
return sqlf.resolveContent()
def main():
if interactive:
return
mbo.setValue("EMAILSUBJECT", getResolvedField(mbo, "EMAILSUBJECT"))
mbo.setValue("EMAILCOMMENTS", getResolvedField(mbo, "EMAILCOMMENTS"))
main()
I created this with an Object Launch Point, on Initialize Value against the REPORTSCHED Object.
Good luck!
------------------------------
Aaron Paroulek
Maven Asset Management
------------------------------