<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>custom connector Archives | KAISPE</title>
	<atom:link href="https://www.kaispe.com/tag/custom-connector/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kaispe.com/tag/custom-connector/</link>
	<description>Your Digital Transformation Partner</description>
	<lastBuildDate>Fri, 18 Nov 2022 01:55:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.4</generator>

<image>
	<url>https://www.kaispe.com/wp-content/uploads/2022/01/cropped-k-32x32.png</url>
	<title>custom connector Archives | KAISPE</title>
	<link>https://www.kaispe.com/tag/custom-connector/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Microsoft PowerApps &#8211; Writing custom connector for Dynamics GP</title>
		<link>https://www.kaispe.com/microsoft-powerapps-writing-custom-connector-for-dynamics-gp/</link>
		
		<dc:creator><![CDATA[jdkaispe]]></dc:creator>
		<pubDate>Wed, 13 Jan 2021 13:30:27 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[custom connector]]></category>
		<category><![CDATA[dynamics bc]]></category>
		<category><![CDATA[powerapps]]></category>
		<guid isPermaLink="false">https://www.kaispe.com/?p=2505</guid>

					<description><![CDATA[<p>Today, We will show you how to create OData web services for Microsoft Dynamics GP to consume with Microsoft Power Platform Custom Connector. Open Visual Studio. Create New Project. Select [&#8230;]</p>
<p>The post <a href="https://www.kaispe.com/microsoft-powerapps-writing-custom-connector-for-dynamics-gp/">Microsoft PowerApps &#8211; Writing custom connector for Dynamics GP</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today, We will show you how to create OData web services for Microsoft Dynamics GP to consume with Microsoft Power Platform Custom Connector.</p>
<p>Open Visual Studio.</p>
<p>Create New Project.</p>
<p>Select Web API and Create.</p>
<p><strong><img fetchpriority="high" decoding="async" class="aligncenter size-large wp-image-2515" src="https://www.kaispe.com/wp-content/uploads/2021/01/WebApi-1024x691.jpg" alt="" width="640" height="432" /></strong></p>
<p>Add ADO .NET Entity Data Model.</p>
<p>Specify the Name of the Item.</p>
<p>Select EF Designer</p>
<p><strong><img decoding="async" class="aligncenter size-full wp-image-2510" src="https://www.kaispe.com/wp-content/uploads/2021/01/EFDesigner.jpg" alt="" width="697" height="752" /></strong></p>
<p>Create New Connection with your SQL Server where your Dynamics GP Database exist.</p>
<p>Enter Server Name.</p>
<p>Select SQL Server Authentication.</p>
<p>Enter Credentials for your SQL Server.</p>
<p>Select your database name.</p>
<p><strong><img decoding="async" class="aligncenter size-full wp-image-2527" src="https://www.kaispe.com/wp-content/uploads/2021/01/sql2.jpg" alt="" width="625" height="866" /></strong></p>
<p>Afterwards, test your connection.</p>
<p><strong><img decoding="async" class="aligncenter size-full wp-image-2526" src="https://www.kaispe.com/wp-content/uploads/2021/01/connection2.jpg" alt="" width="624" height="845" /></strong></p>
<p>Click OK.</p>
<p>Set settings for now like below and Click Next.</p>
<p><strong><img decoding="async" class="aligncenter size-full wp-image-2525" src="https://www.kaispe.com/wp-content/uploads/2021/01/config2.jpg" alt="" width="696" height="754" /></strong></p>
<p>Choose Entity Framework 5.0 and Click on Next.</p>
<p>Choose tables and click on finish.</p>
<p><strong><img decoding="async" class="aligncenter size-full wp-image-2514" src="https://www.kaispe.com/wp-content/uploads/2021/01/table.jpg" alt="" width="699" height="748" /></strong></p>
<p>Now, Build Your Solution.</p>
<p>Add Controller.</p>
<p>Select Web API OData v3 Controller with actions, using Entity Framework.</p>
<p><strong><img decoding="async" class="aligncenter size-large wp-image-2509" src="https://www.kaispe.com/wp-content/uploads/2021/01/Controller-1024x707.jpg" alt="" width="640" height="442" /></strong></p>
<p>&nbsp;</p>
<p><strong><img decoding="async" class="aligncenter size-full wp-image-2518" src="https://www.kaispe.com/wp-content/uploads/2021/01/control.jpg" alt="" width="776" height="301" /></strong></p>
<p>Now copy these lines and paste them into WebApiConfig.</p>
<p style="text-align: left;"><em>using System.Web.Http.OData.Builder;</em></p>
<p style="text-align: left;"><em>using System.Web.Http.OData.Extensions;</em></p>
<p style="text-align: left;"><em>using odatacustomconnector.Models;</em></p>
<p>And on the method, paste these lines of code. We are using only one entity, you can add more according to your need.</p>
<p style="text-align: left;"><em>ODataConventionModelBuilder builder = new ODataConventionModelBuilder();</em></p>
<p style="text-align: left;"><em>builder.EntitySet&lt;PM00200&gt;(&#8220;PM00200&#8221;);</em></p>
<p style="text-align: left;"><em>config.Routes.MapODataServiceRoute(&#8220;odata&#8221;, &#8220;odata&#8221;, builder.GetEdmModel());</em></p>
<p>Your WebApiConfig file code looks like below</p>
<p><strong><img decoding="async" class="aligncenter size-large wp-image-2511" src="https://www.kaispe.com/wp-content/uploads/2021/01/FinalCode-1024x544.jpg" alt="" width="640" height="340" /></strong></p>
<p>Now, Play the app and check the odata url.</p>
<p><strong><img decoding="async" class="aligncenter size-large wp-image-2512" src="https://www.kaispe.com/wp-content/uploads/2021/01/Output-1024x588.jpg" alt="" width="640" height="368" /></strong></p>
<p>So, you can publish your app and consume OData web services to create a Custom Connector and start to play with the PowerApps app.</p>
<p>&nbsp;</p>
<p>The post <a href="https://www.kaispe.com/microsoft-powerapps-writing-custom-connector-for-dynamics-gp/">Microsoft PowerApps &#8211; Writing custom connector for Dynamics GP</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
