Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How do I add a CC in a "regular button" script

Avatar

Avatar
Boost 1
Level 1
celisna
Level 1

Likes

2 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
celisna
Level 1

Likes

2 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
celisna
Level 1

21-11-2016

Hello, I have the below script, which works perfectly fine except that it doesn't read the cCC. Anyone know what I am doing wrong? Event type: Click Object type: Button with control type Regular var subject = CC_request.REQUEST.DD_tool.rawValue + " " + CC_request.REQUEST.GEN_document_number.rawValue + " " + CC_request.REQUEST.GEN_document_type.rawValue; var myDoc = event.target; try {     myDoc.mailDoc({         bUI: false,         cTo: 'nancy.caroline@gmail.com', // Replace with actual receiver mail address.         cCC: "nancy.caroline@gmail.com",         cSubject: subject,         cSubmitAs: "PDF"     }); } catch (e) {     // exception handling... } thanks in advance. Kr, Nancy

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,686 posts

Correct Reply

490 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,686 posts

Correct Reply

490 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

30-11-2016

Hi,

try this script:

var subject = "Test E-Mail";

event.target.mailDoc({

  bUI: false,

  cTo: 'receiver1@domain.org',

  cCc: '',

  cBcc: 'receiver2@domain.org',

  cSubject: subject,

  cMsg: 'Test'

});