﻿{"id":782,"date":"2022-03-30T13:37:28","date_gmt":"2022-03-30T08:07:28","guid":{"rendered":"https:\/\/blogs.infosys.com\/infosys-cobalt\/?p=782"},"modified":"2022-03-30T13:37:28","modified_gmt":"2022-03-30T08:07:28","slug":"anaplan-connect","status":"publish","type":"post","link":"https:\/\/blogs.infosys.com\/infosys-cobalt\/cloud-applications\/oracle\/anaplan\/anaplan-connect.html","title":{"rendered":"Anaplan Connect"},"content":{"rendered":"<p>Data Integration plays an important role ensuring model performance, accuracy &amp; reliability. Anaplan provides various integration options like Anaplan Connect, Third Party Connectors (like MuleSoft, Informatica, Dell Bhoomi), Anaplan APIs etc. All of them have certain advantages &amp; disadvantages, hence it\u2019s up to individual businesses to select the correct option as per their requirements.<\/p>\n<p>&nbsp;<\/p>\n<p>Generally, businesses prefer a tool which can provide multiple integration options, easy to use, automation, and competitive pricing. \u00a0Anaplan Connect provides you the platform to integrate with multiple source system, automate, easy to use, and it\u2019s completely free. No middleware license is required.<\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #333399\"><strong>What is Anaplan Connect?<\/strong><\/span><\/h3>\n<p>&nbsp;<\/p>\n<p>Anaplan Connect is an on-premises Java utility that automates and runs integration scripts for imports and exports. You can simply install it on your local computer or server, and start creating command line scripts to execute various Anaplan Actions (like includes Import, Exports, Process etc.)<\/p>\n<p><span style=\"color: #333333\"><strong>Some Key Features<\/strong><\/span><\/p>\n<ol>\n<li>Ability to execute Anaplan actions like Import, Export, Process, and Delete<\/li>\n<li>Support flat files and JDBC connectors<\/li>\n<li>Support Transactional APIs to read to data from saved views, lists without the need to create any Export\u00a0 action<\/li>\n<li>Enhanced security with CA certificates for authentication<\/li>\n<li>Running API queries to fetch workspace\/models related details for better maintenance<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>Anaplan Connects works with Anaplan APIs (Application Programming Interface) to perform all tasks, hence its useful to know about these Anaplan APIs and most used HTTPs Verbs<\/p>\n<ul>\n<li>GET &#8211; Retrieves information from the application<\/li>\n<li>POST &#8211; Create new items\/values in the application<\/li>\n<li>PUT \u2013 Update existing item\/values in the application<\/li>\n<li>DELETE &#8211; Delete items\/values from the application<\/li>\n<\/ul>\n<h3><\/h3>\n<h3><span style=\"color: #333399\">Basic Authentication vs Certificate Authority (CA) Certificates<\/span><\/h3>\n<p>&nbsp;<\/p>\n<p>Preventing unauthorized users from accessing &amp; executing script files is very important from a security standpoint.<\/p>\n<p>Anaplan Connects works with Basic Authentication and CA Certificates. It is widely believed that CA certificates are more secure as compared to \u201cBasic Authentication\u201d as there are some drawbacks with\u00a0 \u201cBasic Authentication\u201d<\/p>\n<ul>\n<li>The username and password are visible in form of \u201cText\u201d to any person who has access to the scripts<\/li>\n<li>As per Anaplan password policy, the user credentials must be updated every 3 months which means that the scripts need to be amended every 3 months increasing the maintenance workload<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>CA Certificates are valid until the end of the certificate validity. Hence, no regular maintenance of integration scripts is required<\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #333399\">Anaplan Bulk APIs and Transactional APIs<\/span><\/h3>\n<p>&nbsp;<\/p>\n<p><strong>Bulk APIs<\/strong><\/p>\n<p>Most of us are aware of Anaplan Actions like Import, Export, Process etc. &amp; how to execute these actions manually. Now, imagine if we could perform the same activities automatically &amp; remotely without accessing the application at all.<\/p>\n<p>This is where Anaplan Connect comes into the picture. Using Bulk APIs, you can perform all these Anaplan Actions using command line scripts. For example &#8211;<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Upload and Download Files &#8211;<\/strong> You can upload data files from your local computer, or any external database using JDBC connector into Anaplan<\/li>\n<li><strong>Execute Anaplan Actions \u2013<\/strong> You can execute any Anaplan actions like Import, Export, Process or Delete remotely by running command line scripts. Make sure these Actions already exist in the application otherwise it will not work<\/li>\n<li><strong>Model to Model Import \u2013<\/strong> You can perform Model-to-Model Import using command line scripts using Bulk APIs as well<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #333333\"><em>A quick question \u2013 What are these \u201ccommand line scripts\u201d which we are referring to so many times?<\/em><\/span><\/strong><\/p>\n<p>These are batch files which you can create and execute to perform Anaplan Actions.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #999999\"><em>The below example is a \u201cBatch\u201d file showcasing how you can upload a file and at the same time execute an Import Action. Notice, the HTTP verb used over here \u201cPUT\u201d<\/em><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-788 size-full\" src=\"https:\/\/blogs.infosys.com\/infosys-cobalt\/storage\/2022\/03\/bulk.jpg\" alt=\"\" width=\"515\" height=\"285\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Transactional APIs<\/strong><\/p>\n<p>What are Transactional APIs?<\/p>\n<p>In simple terms, if you want to change\/modify anything at the transactional level, be it a specific List or a specific Module, you can use Transactional APIs. <strong>Transactional APIs allows you to interact with the application without the need to create any Action items.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Like Bulk APIs, you can create command line scripts for Transaction APIs to run your query. You can create different types of queries to interact with the application, for example &#8211;<\/p>\n<ul>\n<li>Get information about lists of workspaces, models, space allocated, and space used<\/li>\n<li>Get a complete list of modules and saved views within your model<\/li>\n<li>Display data from saved views without using export actions<\/li>\n<li>Add new items to Model Lists<\/li>\n<li>Update existing items or Upsert (add and update combined) items to Model<\/li>\n<li>Delete items from Model Lists<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #999999\"><em>The below example reflects how you can export List details without using any \u201cExport\u201d Action. Notice, the HTTP verb used over here \u201cGET\u201d<\/em><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-792 size-full\" src=\"https:\/\/blogs.infosys.com\/infosys-cobalt\/storage\/2022\/03\/tran1.jpg\" alt=\"\" width=\"440\" height=\"135\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-791 size-full\" src=\"https:\/\/blogs.infosys.com\/infosys-cobalt\/storage\/2022\/03\/tran-2.jpg\" alt=\"\" width=\"720\" height=\"115\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>JDBC Connectors<\/strong><\/p>\n<p>We have already talked about how you could upload data files manually from your local computer &amp; execute Import Action using command line scripts. However, what if you could extract the data from an external database &amp; execute the Import Action automatically. JDBC connectors provides you that capability to extract data from an external database like SAP S4 HANA, Oracle Database, Snowflake etc. &amp; import the files automatically into Anaplan.<\/p>\n<p>&nbsp;<\/p>\n<p>JDBC connection requires a \u201cProperties\u201d file. A \u201cProperties\u201d file stores all database related information like database connection path, access credentials, query details, parameters etc.<\/p>\n<p><span style=\"color: #999999\"><em>Below example reflects a \u201cProperties\u201d file. Over here, we are trying to establish connection with SAP S4 HANA database.<\/em><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-789 size-full\" src=\"https:\/\/blogs.infosys.com\/infosys-cobalt\/storage\/2022\/03\/jd1.jpg\" alt=\"\" width=\"575\" height=\"216\" \/><\/p>\n<p><span style=\"color: #999999\"><em><span style=\"color: #999999\">Your batch file should include \u201cProperties\u201d file details which you have created earlier. In this case, we are updating the JDBC &#8220;Properties&#8221; in our batch file. The objective of this batch file is to extract the data from SAP S4 HANA database and import it into Anaplan\u00a0<\/span><\/em><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-790 size-full\" src=\"https:\/\/blogs.infosys.com\/infosys-cobalt\/storage\/2022\/03\/jd2.jpg\" alt=\"\" width=\"692\" height=\"324\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>There are certain limitations with batch files like for example, Anaplan Connect does not provide any in-built scheduler to run these scripts automatically. Hence, you have to use Windows \u201cTask Scheduler\u201d to run these scripts automatically.<\/p>\n<h3><\/h3>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #333399\">Conclusion<\/span><\/h3>\n<p>&nbsp;<\/p>\n<p>Anaplan Connect works very well with Bulk and Transactional APIs along with JDBC connectors. Your data integration requirements can be fulfilled using Anaplan Connect.<\/p>\n<p>&nbsp;<\/p>\n<p>Anaplan Connect works well with data extraction &amp; load if that is your only requirement from a business standpoint. However, if you wish to transform the extracted data before loading it into Anaplan, then you will have to use other data integration tools like MuleSoft, Dell Bhoomi etc., as Anaplan Connect doesn\u2019t support any data transformation option. Hence, we can safely assume that Anaplan Connect works well with EL (Extract &amp; Load) methodology.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Data Integration plays an important role ensuring model performance, accuracy &amp; reliability. Anaplan provides [&hellip;]<\/p>\n","protected":false},"author":127,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[85],"tags":[84,90],"coauthors":[83],"class_list":["post-782","post","type-post","status-publish","format-standard","hentry","category-anaplan","tag-anaplan","tag-data-integration"],"acf":[],"_links":{"self":[{"href":"https:\/\/blogs.infosys.com\/infosys-cobalt\/wp-json\/wp\/v2\/posts\/782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.infosys.com\/infosys-cobalt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.infosys.com\/infosys-cobalt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.infosys.com\/infosys-cobalt\/wp-json\/wp\/v2\/users\/127"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.infosys.com\/infosys-cobalt\/wp-json\/wp\/v2\/comments?post=782"}],"version-history":[{"count":8,"href":"https:\/\/blogs.infosys.com\/infosys-cobalt\/wp-json\/wp\/v2\/posts\/782\/revisions"}],"predecessor-version":[{"id":793,"href":"https:\/\/blogs.infosys.com\/infosys-cobalt\/wp-json\/wp\/v2\/posts\/782\/revisions\/793"}],"wp:attachment":[{"href":"https:\/\/blogs.infosys.com\/infosys-cobalt\/wp-json\/wp\/v2\/media?parent=782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.infosys.com\/infosys-cobalt\/wp-json\/wp\/v2\/categories?post=782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.infosys.com\/infosys-cobalt\/wp-json\/wp\/v2\/tags?post=782"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blogs.infosys.com\/infosys-cobalt\/wp-json\/wp\/v2\/coauthors?post=782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}