<?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>Can´t pass the value of a relationship field in a process model</title><link>https://community.appian.com/discussions/f/process/29234/can-t-pass-the-value-of-a-relationship-field-in-a-process-model</link><description>Hi, I would want to ask how can I use the related fields (record relationship fields) in a process model. Now I&amp;#180;m passing a null value 
 The relation appears in the &amp;quot;Write Record Inputs&amp;quot; 
 
 
 And these are the outputs: 
 
 
 Then, I have a XOR to put</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Can´t pass the value of a relationship field in a process model</title><link>https://community.appian.com/thread/115674?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 22:15:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ea4994a-854c-433b-a7f7-2b755837b96c</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Not sure what&amp;#39;s wrong with your query. Looks fine from what I can see. What is the error?&lt;/p&gt;
&lt;p&gt;For the custom record field, you can use a customFieldDefaultValue to access the related record field.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/pastedimage1688595063227v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/pastedimage1688595162527v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can´t pass the value of a relationship field in a process model</title><link>https://community.appian.com/thread/115670?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 20:15:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b7981167-a066-4c7b-bcba-23b3e536806b</guid><dc:creator>carlosp5114</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1688587341753v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I uploaded a pic of the code. On the other hand, is it possible to add a custom record of a related field?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1688587924345v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;How can I do this step by step? It says that I must use a custom record field function&lt;/p&gt;
&lt;p&gt;Thank you so much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can´t pass the value of a relationship field in a process model</title><link>https://community.appian.com/thread/115669?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 19:56:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:22042d23-74ae-43ca-8a48-09409bc919aa</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;I have to admit that perhaps the copy pasting of record types could be improved. That is hard to read &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I would suggest either referring to whatever original query you had somewhere in your process model.&lt;/p&gt;
&lt;p&gt;The only alternative would be to create a custom record field and have your XOR process that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can´t pass the value of a relationship field in a process model</title><link>https://community.appian.com/thread/115667?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 19:12:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f58ead6d-f7a9-4cd0-b613-a956f0cfda14</guid><dc:creator>carlosp5114</dc:creator><description>&lt;p&gt;I could not solve the problem, with my query expression an error called &amp;quot;rank&amp;quot; appeared. probably there are some errors:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;=
    a!queryRecordType(
      recordType: &amp;#39;recordType!{51d44df6-c727-4443-8114-aef8a7509b41}CPF Maestro Facturas&amp;#39;,
      fields: {
        &amp;#39;recordType!{51d44df6-c727-4443-8114-aef8a7509b41}CPF Maestro Facturas.relationships.{42ee17b1-73d1-4012-b242-1356c590c856}cpfMaestroPedidos.fields.{7309402c-2312-4a4e-bdaa-5654789bffb2}idPedido&amp;#39;
},
pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 1),
filters: a!queryFilter(
  field: &amp;#39;recordType!{51d44df6-c727-4443-8114-aef8a7509b41}CPF Maestro Facturas.relationships.{42ee17b1-73d1-4012-b242-1356c590c856}cpfMaestroPedidos.fields.{7309402c-2312-4a4e-bdaa-5654789bffb2}idPedido&amp;#39;,
operator: &amp;quot;=&amp;quot;,
value: pv!recordFact[&amp;#39;recordType!{51d44df6-c727-4443-8114-aef8a7509b41}CPF Maestro Facturas.fields.{e8009662-ca1c-43da-9c72-2840463214be}id_pedido&amp;#39;]
        )
        ).data[&amp;#39;recordType!{51d44df6-c727-4443-8114-aef8a7509b41}CPF Maestro Facturas.relationships.{42ee17b1-73d1-4012-b242-1356c590c856}cpfMaestroPedidos.fields.{7309402c-2312-4a4e-bdaa-5654789bffb2}idPedido&amp;#39;]


&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is there any other way to solve the problem and pass the relationship values in a correct way to the process model?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can´t pass the value of a relationship field in a process model</title><link>https://community.appian.com/thread/115666?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 18:11:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:57075f7d-51d8-4ac0-a22d-9296ff9cc49f</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Yes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can´t pass the value of a relationship field in a process model</title><link>https://community.appian.com/thread/115665?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 18:08:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:435a74f7-39cc-4c59-8ceb-07dc6b077214</guid><dc:creator>carlosp5114</dc:creator><description>&lt;p&gt;and which is the expression structure? a!queryRecordType() ???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can´t pass the value of a relationship field in a process model</title><link>https://community.appian.com/thread/115664?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 18:04:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cea483b4-ba04-40e4-8542-290bb18bd0e0</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Yes, that is the correct area. Initial record query that includes the related record fields.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can´t pass the value of a relationship field in a process model</title><link>https://community.appian.com/thread/115662?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 18:02:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a8c2c444-dc93-409a-a484-a103144ce651</guid><dc:creator>carlosp5114</dc:creator><description>&lt;p&gt;thanks for the information! Could you explain me how to&amp;nbsp;that in a more detailed way, or refer me to some tutorial?&lt;/p&gt;
&lt;p&gt;I suppose I have to write the refresh/reload query here:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1688580066046v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And which record should be the target? My initial record?&lt;/p&gt;
&lt;p&gt;Thank you so much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can´t pass the value of a relationship field in a process model</title><link>https://community.appian.com/thread/115660?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 17:44:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f078bfea-c7de-4526-a932-6b38979093cb</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Yes, this is somewhat of a limitation.&lt;/p&gt;
&lt;p&gt;I would recommend reloading the full object graph via a query on the output of your Write Records node.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>