{"id":189,"date":"2018-05-23T17:22:16","date_gmt":"2018-05-23T16:22:16","guid":{"rendered":"http:\/\/pro.timphaus.de\/?p=189"},"modified":"2021-03-26T18:30:35","modified_gmt":"2021-03-26T17:30:35","slug":"item-translation-embedded-in-d365fo","status":"publish","type":"post","link":"https:\/\/dynamiacs.com\/?p=189","title":{"rendered":"Item translation embedded in D365FO"},"content":{"rendered":"\n<p>In this\nblog post I will show you how easy it is to create powerapp that is connected\nto Dynamics 365 for Finance and operations.<\/p>\n\n\n\n<p>This app\nwill use input data from D365Fo and will pass it to a cognitive service.<\/p>\n\n\n\n<p>The first\nstep is to create the powerapp on powerapps.com.<\/p>\n\n\n\n<p>We create\na powerapp from blank.<\/p>\n\n\n\n<p>On the\nscreen1 we will set the onstart property the following formula:<\/p>\n\n\n\n<p>If(!IsBlank(Param(&#8220;EntityId&#8221;)),Set(FinOpsInput,Param(&#8220;EntityId&#8221;)),Set(FinOpsInput,&#8221;&#8221;))<\/p>\n\n\n\n<p>With this\nformular the powerapp will set an variable called &#8220;FinOpsInput&#8221; with\ndata provided from D365FO.<\/p>\n\n\n\n<p>The next\nstep is to visualize the input data from D365FO. For this we will insert a\nlabel field and set the text property to the variable &#8220;FinOpsInput&#8221;\nand rename the field to &#8220;d365input&#8221;.<\/p>\n\n\n\n<p>These are\nthe required steps to get the data from D365FO into the powerapp.<\/p>\n\n\n\n<p>The next\nin my example is to add a cognitive service to a translation of the product\nname.<\/p>\n\n\n\n<p><strong>F<\/strong><\/p>\n\n\n\n<p>For this\nwe have to add the datasource Microsoft Translator to the powerapp:<\/p>\n\n\n\n<p>In the\nView Tab we will select &#8220;Data Sources&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"646\" height=\"96\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/03\/powerapps_translation_00.png\" alt=\"\" class=\"wp-image-190\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_00.png 646w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_00-300x45.png 300w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/figure>\n\n\n\n<p>The next\nstep is to add the datasource.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"357\" height=\"222\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/03\/powerapps_translation_01.png\" alt=\"\" class=\"wp-image-191\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_01.png 357w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_01-300x187.png 300w\" sizes=\"auto, (max-width: 357px) 100vw, 357px\" \/><\/figure>\n\n\n\n<p>For this\nwe have to set a new connection and then to select the connection called\n&#8220;Microsoft Translator&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"365\" height=\"269\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/03\/powerapps_translation_02.png\" alt=\"\" class=\"wp-image-192\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_02.png 365w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_02-300x221.png 300w\" sizes=\"auto, (max-width: 365px) 100vw, 365px\" \/><\/figure>\n\n\n\n<p>Here you\nsee the connected service.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"364\" height=\"223\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/03\/powerapps_translation_03.png\" alt=\"\" class=\"wp-image-193\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_03.png 364w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_03-300x184.png 300w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/figure>\n\n\n\n<p>To use\nthe cognitive service we will add another label field and set the text property\nto MicrosoftTranslator.Translate(D365Input.Text,DE).<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>D365Input = labelfield from\n     the step above<\/li><li>The language to translate can\n     be setup direct in the formular or with a dropdown or with another label\n     field. In my example it is labelfield called &#8220;DE&#8221;.<\/li><\/ul>\n\n\n\n<p>In my\nexample I add a second label field as a translate field. But is not important\nhere at this point.<\/p>\n\n\n\n<p>That is\nall we have to do to create the powerapp. <\/p>\n\n\n\n<p>Please save and\npublish your app. <\/p>\n\n\n\n<p>Now open\nDynamics 365 for Finance and Operations (PU 14 or higher) and embed the\nPowerApp. This example only works for forms and not for workspaces.<\/p>\n\n\n\n<p>Open the\nform <em>All Products and Product Masters<\/em>:<\/p>\n\n\n\n<p>In the\nright corner you find the sign for PowerApps. Click on it and select\n&#8220;Insert a PowerApp&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"440\" height=\"230\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/03\/powerapps_translation_04.png\" alt=\"\" class=\"wp-image-194\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_04.png 440w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_04-300x157.png 300w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/figure>\n\n\n\n<p>On the\nnext screen we have to setup the connection. For this setup we need the unique\npowerapp id.<\/p>\n\n\n\n<p>&nbsp;you will find this ID in the details of the\napp powerapps.com<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"629\" height=\"834\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/03\/powerapps_translation_05.png\" alt=\"\" class=\"wp-image-195\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_05.png 629w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_05-226x300.png 226w\" sizes=\"auto, (max-width: 629px) 100vw, 629px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"482\" height=\"942\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/03\/powerapps_translation_06.png\" alt=\"\" class=\"wp-image-196\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_06.png 482w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_06-154x300.png 154w\" sizes=\"auto, (max-width: 482px) 100vw, 482px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>Name of the\n     PowerApp will use in D365FO<\/li><li>Unique App ID of the powerapp<\/li><li>Input Data for the Powerapp(\n     in my example we will use the product name)<\/li><li>Application size<\/li><li>Legal Entities where i can\n     use the Powerapp.<\/li><\/ol>\n\n\n\n<p>After\ndoing this setup we have to refresh the browser with F5 and then we can open\nthe powerapp and we will get the translation of the product name.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"518\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/03\/powerapps_translation_07-1024x518.png\" alt=\"\" class=\"wp-image-197\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_07-1024x518.png 1024w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_07-300x152.png 300w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/03\/powerapps_translation_07-768x389.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>How cool is this? <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog post I will show you how easy it is to create powerapp that is connected to Dynamics 365 for Finance and operations. This app will use input data from D365Fo and will pass it to a cognitive service. The first step is to create the powerapp on powerapps.com. We create a powerapp&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[8],"tags":[63,21,11,55,19],"class_list":["post-189","post","type-post","status-publish","format-standard","hentry","category-blog","tag-canvas-app","tag-cognitive-services","tag-dynamics-365","tag-embedded","tag-powerapp"],"taxonomy_info":{"category":[{"value":8,"label":"Blog"}],"post_tag":[{"value":63,"label":"Canvas App"},{"value":21,"label":"Cognitive Services"},{"value":11,"label":"Dynamics 365"},{"value":55,"label":"Embedded"},{"value":19,"label":"PowerApp"}]},"featured_image_src_large":false,"author_info":{"display_name":"Jan","author_link":"https:\/\/dynamiacs.com\/?author=2"},"comment_info":0,"category_info":[{"term_id":8,"name":"Blog","slug":"blog","term_group":0,"term_taxonomy_id":8,"taxonomy":"category","description":"","parent":0,"count":38,"filter":"raw","cat_ID":8,"category_count":38,"category_description":"","cat_name":"Blog","category_nicename":"blog","category_parent":0}],"tag_info":[{"term_id":63,"name":"Canvas App","slug":"canvas-app","term_group":0,"term_taxonomy_id":63,"taxonomy":"post_tag","description":"","parent":0,"count":4,"filter":"raw"},{"term_id":21,"name":"Cognitive Services","slug":"cognitive-services","term_group":0,"term_taxonomy_id":21,"taxonomy":"post_tag","description":"","parent":0,"count":4,"filter":"raw"},{"term_id":11,"name":"Dynamics 365","slug":"dynamics-365","term_group":0,"term_taxonomy_id":11,"taxonomy":"post_tag","description":"","parent":0,"count":14,"filter":"raw"},{"term_id":55,"name":"Embedded","slug":"embedded","term_group":0,"term_taxonomy_id":55,"taxonomy":"post_tag","description":"","parent":0,"count":5,"filter":"raw"},{"term_id":19,"name":"PowerApp","slug":"powerapp","term_group":0,"term_taxonomy_id":19,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts\/189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=189"}],"version-history":[{"count":1,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts\/189\/revisions"}],"predecessor-version":[{"id":198,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts\/189\/revisions\/198"}],"wp:attachment":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}