How to check attachments in flow designer

chanikya
Kilo 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 Janos,

Sorry to say this.

Honestly to say i m very much confused now.

How to move attachments to record.?

is PART 1 is correct ? here 

find_real_file.png

 

can you do some modification in my PDI? if you are with that.

 

 

 

Well, if that is what you want, move attachments to the target record, there is an action that does just that. It is called "Move Email Attachments to Record" and all you need is the Email Record that is there by default as a Trigger data pill and the Target record which in your case seems to be the case record:

find_real_file.png

I Request you kindly check my attachments and comments  please.

 

Regarding that COUNT calculation of Your steps working successfully. 

I already added "Move email attachments to record", every thing is working fine. Except that error message .

find_real_file.png

 

While doing continues Testing ,some times getting error message what i have stated below.

just need solution for that please.

find_real_file.png

Moving this into a new thread, it's too thin already.

Sure Janos.

https://community.servicenow.com/community?id=community_question&sys_id=c342335bdb33bc50a5388263059619bb