{"id":956,"date":"2022-03-22T19:59:13","date_gmt":"2022-03-23T00:59:13","guid":{"rendered":"https:\/\/asberry.org\/blog_tech\/?p=956"},"modified":"2024-05-14T09:13:25","modified_gmt":"2024-05-14T14:13:25","slug":"tcc-emailing-import-errors","status":"publish","type":"post","link":"https:\/\/asberry.org\/blog_tech\/?p=956","title":{"rendered":"TCC &#8211; Emailing Import Errors"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This is for when you need to have the results file sent to you if there are errors in said results file. This can be a little tricky because you will not get a file if all elements were successful although you can probably do something about that with the trigger rule.<br>In any case this is the last custom step of the post process and assuming you have the mail host set properly in the config boards, you should be golden.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; auto-links: false; light: false; title: ; toolbar: true; notranslate\" title=\"\">\n&lt;cli:CustomStep&gt;\n\t&lt;cli:JavaClass&gt;com.taleo.integration.client.customstep.mail.SendEmailPostStep&lt;\/cli:JavaClass&gt;\n\t&lt;cli:Parameters&gt;\n\t\t&lt;cli:Parameter&gt;\n\t\t\t&lt;cli:Name&gt;active&lt;\/cli:Name&gt;\n\t\t\t&lt;cli:Value&gt;true&lt;\/cli:Value&gt;\n\t\t&lt;\/cli:Parameter&gt;\n\t\t&lt;cli:Parameter&gt;\n\t\t\t&lt;cli:Name&gt;SMTPHost&lt;\/cli:Name&gt;\n\t\t\t&lt;cli:Value&gt;&#x5B;MAIL_HOST]&lt;\/cli:Value&gt;\n\t\t&lt;\/cli:Parameter&gt;\n\t\t&lt;cli:Parameter&gt;\n\t\t\t&lt;cli:Name&gt;from&lt;\/cli:Name&gt;\n\t\t\t&lt;cli:Value&gt;&#x5B;ALERTING_MAIL_FROM]&lt;\/cli:Value&gt;\n\t\t&lt;\/cli:Parameter&gt;\n\t\t&lt;cli:Parameter&gt;\n\t\t\t&lt;cli:Name&gt;to&lt;\/cli:Name&gt;\n\t\t\t&lt;cli:Value&gt;&#x5B;ALERTING_MAIL_ON_ERROR_TO]&lt;\/cli:Value&gt;\n\t\t&lt;\/cli:Parameter&gt;\n\t\t&lt;cli:Parameter&gt;\n\t\t\t&lt;cli:Name&gt;subject&lt;\/cli:Name&gt;\n\t\t\t&lt;cli:Value&gt;Reporting - Subject\/Object of Integration&lt;\/cli:Value&gt;\n\t\t&lt;\/cli:Parameter&gt;\n\t\t&lt;cli:Parameter&gt;\n\t\t\t&lt;cli:Name&gt;messageTemplate&lt;\/cli:Name&gt;\n\t\t\t&lt;cli:Value&gt;$file.content()&lt;\/cli:Value&gt;\n\t\t&lt;\/cli:Parameter&gt;\n\t\t&lt;cli:Parameter&gt;\n\t\t\t&lt;cli:Name&gt;sendAttachment&lt;\/cli:Name&gt;\n\t\t\t&lt;cli:Value&gt;true&lt;\/cli:Value&gt;\n\t\t&lt;\/cli:Parameter&gt;\n\t\t&lt;cli:Parameter&gt;\n\t\t\t&lt;cli:Name&gt;triggeringRule&lt;\/cli:Name&gt;\n\t\t\t&lt;cli:Value&gt;$logic.greaterThan($file.errorCount(),0)&lt;\/cli:Value&gt;\n\t\t&lt;\/cli:Parameter&gt;\n\t&lt;\/cli:Parameters&gt;\n&lt;\/cli:CustomStep&gt;\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>This is for when you need to have the results file sent to you if there are errors in said results file. This can be a little tricky because you will not get a file if all elements were successful although you can probably do something about that with the trigger rule.In any case this [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-956","post","type-post","status-publish","format-standard","hentry","category-tcc","author-aron"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4bBkH-fq","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=956"}],"version-history":[{"count":1,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/956\/revisions"}],"predecessor-version":[{"id":957,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/956\/revisions\/957"}],"wp:attachment":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}