<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Field mapping string field to reference field in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/field-mapping-string-field-to-reference-field/m-p/1638593#M295519</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;in the field map script you need to parse the JSON&lt;/P&gt;
&lt;P&gt;also while returning you need to return value which is stored in &lt;STRONG&gt;u_gen_prod_info&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2022 03:41:01 GMT</pubDate>
    <dc:creator>Ankur Bawiskar</dc:creator>
    <dc:date>2022-05-16T03:41:01Z</dc:date>
    <item>
      <title>Field mapping string field to reference field</title>
      <link>https://www.servicenow.com/community/developer-forum/field-mapping-string-field-to-reference-field/m-p/1638591#M295517</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have JSON data in the Staging table field.&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/192148iD96ED1EF7BEB2391/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have to map with reference field in table.&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/192149iED89846D30B9A339/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But transformation is not working as anticipated. Could someone help me ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've also referred other community questions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=b8f93179db0c67c01cd8a345ca9619eb&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=83ed1ac4db2c90104819fb2439961950&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2022 22:27:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/field-mapping-string-field-to-reference-field/m-p/1638591#M295517</guid>
      <dc:creator>Sathiskumar_D</dc:creator>
      <dc:date>2022-05-15T22:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Field mapping string field to reference field</title>
      <link>https://www.servicenow.com/community/developer-forum/field-mapping-string-field-to-reference-field/m-p/1638592#M295518</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="ng-binding"&gt;Sathish,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-binding"&gt;The function should return the value to enter into the field.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;answer = (function transformEntry(source) {
  var accnttype = JSON.parse(source.u_gen_prod_info);
  if (accntType.product == 'Mortgage') {
    return lprod;
  }
})(source);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 May 2022 01:47:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/field-mapping-string-field-to-reference-field/m-p/1638592#M295518</guid>
      <dc:creator>Hitoshi Ozawa</dc:creator>
      <dc:date>2022-05-16T01:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Field mapping string field to reference field</title>
      <link>https://www.servicenow.com/community/developer-forum/field-mapping-string-field-to-reference-field/m-p/1638593#M295519</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;in the field map script you need to parse the JSON&lt;/P&gt;
&lt;P&gt;also while returning you need to return value which is stored in &lt;STRONG&gt;u_gen_prod_info&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 03:41:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/field-mapping-string-field-to-reference-field/m-p/1638593#M295519</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2022-05-16T03:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Field mapping string field to reference field</title>
      <link>https://www.servicenow.com/community/developer-forum/field-mapping-string-field-to-reference-field/m-p/1638594#M295520</link>
      <description>&lt;P&gt;Hi Ankur,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But TYpe of Account (mapping field) has to refer "Loan product" but not u_gen_product_info.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 12:03:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/field-mapping-string-field-to-reference-field/m-p/1638594#M295520</guid>
      <dc:creator>Sathiskumar_D</dc:creator>
      <dc:date>2022-05-16T12:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Field mapping string field to reference field</title>
      <link>https://www.servicenow.com/community/developer-forum/field-mapping-string-field-to-reference-field/m-p/1638595#M295521</link>
      <description>&lt;P&gt;please return the value which you wish to be searched in the field &lt;SPAN class="ng-scope"&gt;&lt;STRONG&gt;u_gen_prod_info &lt;/STRONG&gt;of the table being referred by Type of Account field&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 03:55:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/field-mapping-string-field-to-reference-field/m-p/1638595#M295521</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2022-05-17T03:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field mapping string field to reference field</title>
      <link>https://www.servicenow.com/community/developer-forum/field-mapping-string-field-to-reference-field/m-p/1638596#M295522</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/192142iD00596874DB47267/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 14:35:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/field-mapping-string-field-to-reference-field/m-p/1638596#M295522</guid>
      <dc:creator>Sathiskumar_D</dc:creator>
      <dc:date>2022-05-18T14:35:48Z</dc:date>
    </item>
  </channel>
</rss>

