Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

count the number of attachments

Avatar

Level 4

Hello how do I count the number of attachments in a pdf file?

1 Accepted Solution

Avatar

Correct answer by
Level 4

solved

// Decalre some variables

var myDoc = event.target;

// Get the attachments

if(myDoc.dataObjects!=null){

        app.alert("yes");

}

else{

    app.alert("no");

}

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

solved

// Decalre some variables

var myDoc = event.target;

// Get the attachments

if(myDoc.dataObjects!=null){

        app.alert("yes");

}

else{

    app.alert("no");

}