Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Script Send function

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
jpb
Participant
476 Views, 3 Replies

Script Send function

Hi,

I have difficulties getting the scriptfunction email.send to work

 

This is my script

var email = new email();

email.to = "jpb@nti.dk";
email.subject = "Response on" + item.NAME;
email.body = item.DESCRIPTION;

email.send();

 

The ERROR i get is attached.

 

item.Name & item.Description is both present in the workspace, and has data in the fields

 

Hope someone can give a hint, I have tried nearly everything. Except reset of the tenant

 

Kind regards

Jesper Brandt

3 REPLIES 3
Message 2 of 4
broepke
in reply to: jpb

Remember that JavaScript is case sensitive.  I think it's in your first line - chance email() to Email() like the example in the Wiki Help

 

var email = new Email();

email.to = item.CONTACT_EMAIL;
email.subject = 'This is the email subject';
email.body = getPrintView('Basic Item Data View');
email.send()


Brian Roepke
Director, Analytics & Insights
Message 3 of 4
michelle.stone
in reply to: jpb

Couple of other examples if you'd like using email from the 'Feature Friday' series on our blog:

 

Postal Service

E-Mail for the Masses

 

Happy scripting!

Michelle



Michelle Stone
Technical Marketing, PDM & PLM
Autodesk, Inc.
Message 4 of 4
jpb
Participant
in reply to: jpb

Hi,

thanks for the inputs.

Capital letters Hmmm!!, it works 🙂

 

/Jesper

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report