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.

Create child task based on number of attachments in the email

poorva1
Mega Guru

Hi All,

I have a requirement where I need to create child tasks on a record, based on the number of attachments in an email.

Eg-

So if the email has 4 attachments, the parent record should have 4 child tasks.

Any inputs on how this can be done.

 

thanks!

1 ACCEPTED SOLUTION

Hi @Cheikh Ahmadou  ,

Thanks for your response. 

 

I was able to do this by using 'Look up email attachments' action and then using for each loop to create a record for each attachment. 

 

Thanks,

Poorva

View solution in original post

3 REPLIES 3

Cheikh Ahmadou
Kilo Sage

Hi @poorva1 ,

Create a flow that triggers on an Inbound Email Trigger
 and then use the action "Move Email Attachments to Record" to move the attachments from the inbound email to your record.

 

 

And use a loop to create child tasks.

Regards, 
Cheikh

 

 

Hi @Cheikh Ahmadou  ,

Thanks for your response. 

 

I was able to do this by using 'Look up email attachments' action and then using for each loop to create a record for each attachment. 

 

Thanks,

Poorva

Cheikh Ahmadou
Kilo Sage

Ok, happy to hear that.
Update the answer for others who might have the same issue.

 

Mark it as correct to help future readers find the solution faster.

Regards,
Cheikh