<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Is it possible to map parts of one data entity into parts of another data entity</title><link>https://community.appian.com/discussions/f/rules/5720/is-it-possible-to-map-parts-of-one-data-entity-into-parts-of-another-data-entity</link><description>Is it possible to map parts of one data entity into parts of another data entity within an expression rule? I&amp;#39;m attempting to do so using the with{} function but receive a syntax error each time. Has anyone else done something similair to this outside</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is it possible to map parts of one data entity into parts of another data entity</title><link>https://community.appian.com/thread/21817?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2015 19:11:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f22efcff-9ed5-45cd-89ca-8824eb6216d0</guid><dc:creator>Stefan Helzle</dc:creator><description>There is a plugin available to make that very easy. See &lt;a href="https://forum.appian.com/suite/tempo/records/type/components/item/i8BCLGOdlMUpdGVqT-RV7oRg74uEGJO5yIdNklp-1ZtH3F1tosyebSo7rEoKHh1XQ/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to map parts of one data entity into parts of another data entity</title><link>https://community.appian.com/thread/21802?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2015 01:21:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b7c5e375-578e-4d46-8f57-c5258449d6ad</guid><dc:creator>ashleyb</dc:creator><description>Hello Jorge! I&amp;#39;m struggling a bit with implementing this. I understand the data dictionary but not fully on how it would allow me to map parts of cdt2 into parts of cdt1. The end goal would be to return the full entity of cdt1 with the updated fields, not just the updated fields. Also to note I will need to be updating around 10 fields. &lt;br /&gt;&lt;br /&gt;Is this possible in Appian ? Is there somewhere I can read up on this topic more? Any further explanation is greatly appreciated. &lt;br /&gt;&lt;br /&gt;with(&lt;br /&gt;local!entity1: rule!getEntity1FromDB(ri!id),&lt;br /&gt;local!entity2: rule!getEntity2FromDB(ri!id),&lt;br /&gt;local!entity1.fieldOne : local!entity2.fieldTwo,&lt;br /&gt;local!entity1.fieldTwo : local!entity2.fieldFour,&lt;br /&gt;local!entity1) **Both entites have fields that aren&amp;#39;t being used, but in the end I will need to return the entire entity with the updated and non updated fields. &lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to map parts of one data entity into parts of another data entity</title><link>https://community.appian.com/thread/21743?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2015 23:36:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:802bc218-7783-4ff5-8013-3ad98b48de13</guid><dc:creator>ashleyb</dc:creator><description>Oh how nifty! I&amp;#39;ll try it, thank you! &lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to map parts of one data entity into parts of another data entity</title><link>https://community.appian.com/thread/21742?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2015 23:27:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a8577b06-7314-4479-aec2-0330bd8b08f6</guid><dc:creator>Jorge Sanchez</dc:creator><description>You can use the dictionary syntax. For example:&lt;br /&gt;ExpressionName: getMyNewType&lt;br /&gt;inputs:&lt;br /&gt;myCDT1 (Any Type),&lt;br /&gt;myCDT2 (Any Type)&lt;br /&gt;...&lt;br /&gt;Definition: ={&lt;br /&gt;  cdt1: ri!myCDT1,&lt;br /&gt;  cdt2: ri!myCDT2,&lt;br /&gt;  anotherThing: &amp;quot;This is something else&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Use:&lt;br /&gt;with(&lt;br /&gt;  local!mergedData: rule!getMyNewType(cdt1, cdt2),&lt;br /&gt;  local!mergedData.cdt1.id&lt;br /&gt;)&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>