Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to check attachments in flow designer

chanikya
Mega Sage

Hi All,

Version : PARIS PATCH10

How to check replied email has attachments Or Not in Flow designer.

find_real_file.png

 

@Ankur @Harshavardhan @Ankur Bawiskar @Anil Lande @Chuck Tomasi @Jaspal Singh @Rohila Voona 

@Michael Jones - CloudPires @Kieran Anson @Brad Bowman 
1 ACCEPTED SOLUTION

As an alternative, this could also be done with the help of an Action that can be used elsewhere too. I created a new Action, called it "Get Records Count"

Have defined a single input:

find_real_file.png

Next I have added a Script step that also has an input that looks the same as the Action input:

find_real_file.png

The code is pretty str8 fwd:

(function execute(inputs, outputs) {
  if (inputs.records && inputs.records.isValidRecord)
    outputs.count = inputs.records.getRowCount();
  else
    outputs.count = 0;
})(inputs, outputs);

And - of course - as visible in the picture, the Script Step also has an output, I named it count.

Finally the Action itself also has an output, again named the same as the Script step output:

find_real_file.png

And I have configured the Action to use the Script step's output as the Action's output value:

find_real_file.png

Once this is done and activated, I can use it as below:

find_real_file.pngOf course this will result in the Count data pill that I can use to check whether any attachments have been received:

find_real_file.png

View solution in original post

42 REPLIES 42

Hi Ankur,

thanks for your inputs on this.

kindly check my side screenshot. i can see only this one .

what i do now. please advise

find_real_file.png

Hi,

Can you share what action you are using in Step 2

Did you check the screenshot I shared?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

 

Hi,

is it Correct format ?

 

find_real_file.png 

Hi,

Please check the condition is correct

yes now use Count from this Look Up Attachment Records

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

find_real_file.png

 

kindly see resultant output, suggest me please