<?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: update  Xpath in Message mapping using Custom functions. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812627#M4811375</link>
    <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;amit023&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Could you please elaborate a little more on the comment? I didn't quite understand what you really want to achieve. Perhaps if you give a more concrete example it would help.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Ivan&lt;/P&gt;</description>
    <pubDate>Tue, 03 Oct 2023 18:15:26 GMT</pubDate>
    <dc:creator>Ivan-Mirisola</dc:creator>
    <dc:date>2023-10-03T18:15:26Z</dc:date>
    <item>
      <title>update  Xpath in Message mapping using Custom functions.</title>
      <link>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaq-p/12812620</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;is it possible to update the Xpath of Element in message mapping using custom functions instead of using context in SAP BTP.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 13:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaq-p/12812620</guid>
      <dc:creator>amit023</dc:creator>
      <dc:date>2023-09-22T13:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: update  Xpath in Message mapping using Custom functions.</title>
      <link>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812621#M4811369</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;amit023&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;How about entering your logic on a Groovy Script component and that would set some iflow context variables that would be used by the xpath for data extraction. Your script would be able to dynamically set what the xpath should gather from the payload.&lt;/P&gt;&lt;P&gt;Have you tried it?&lt;/P&gt;&lt;P&gt;If that doesn't work, I would simply add xpath extraction rules for all attributes in the payload, So I would be able to mapp whatever I wanted.&lt;/P&gt;&lt;P&gt;BTW, did you know you can convert your payload into OpenAPI syntax, upload it to Cloud Integration and use it to viasually map the inbound/outbound attributes?&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2020/09/16/sap-cloud-integration-swagger-openapi-spec-json-in-message-mapping/" target="test_blank"&gt;https://blogs.sap.com/2020/09/16/sap-cloud-integration-swagger-openapi-spec-json-in-message-mapping/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Ivan&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 18:23:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812621#M4811369</guid>
      <dc:creator>Ivan-Mirisola</dc:creator>
      <dc:date>2023-09-22T18:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: update  Xpath in Message mapping using Custom functions.</title>
      <link>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812622#M4811370</link>
      <description>&lt;P&gt;Hello AR,&lt;/P&gt;&lt;P&gt;you can also refer to the below blog:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2021/09/16/sap-cloud-integration-cpi-hci-writing-groovy-scripts-_-with-basic-examples/" target="test_blank"&gt;https://blogs.sap.com/2021/09/16/sap-cloud-integration-cpi-hci-writing-groovy-scripts-_-with-basic-examples/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lakshmi.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 19:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812622#M4811370</guid>
      <dc:creator>Vishalakshmi</dc:creator>
      <dc:date>2023-09-22T19:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: update  Xpath in Message mapping using Custom functions.</title>
      <link>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812623#M4811371</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;Below might help you and there are functions which will help you to handle contexts within script. But changing XPATH might not be possible using custom functions but you can pass different values as inputs and consider one based on some condition.&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2021/04/25/udfnodepool-functions-for-sap-cpi-with-groovy-scripting/" target="_blank"&gt;https://blogs.sap.com/2021/04/25/udfnodepool-functions-for-sap-cpi-with-groovy-scripting/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sriprasad Shivaram Bhat&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 04:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812623#M4811371</guid>
      <dc:creator>Sriprasadsbhat</dc:creator>
      <dc:date>2023-09-25T04:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: update  Xpath in Message mapping using Custom functions.</title>
      <link>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812624#M4811372</link>
      <description>&lt;P&gt;none helped.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 13:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812624#M4811372</guid>
      <dc:creator>amit023</dc:creator>
      <dc:date>2023-10-03T13:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: update  Xpath in Message mapping using Custom functions.</title>
      <link>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812625#M4811373</link>
      <description>&lt;P&gt;That's a biggest problem working with context.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 13:12:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812625#M4811373</guid>
      <dc:creator>amit023</dc:creator>
      <dc:date>2023-10-03T13:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: update  Xpath in Message mapping using Custom functions.</title>
      <link>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812626#M4811374</link>
      <description>&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;       question is more about pathetically designed message mapping component which has nothing inbuilt and for everything you have to write functions. &lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 13:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812626#M4811374</guid>
      <dc:creator>amit023</dc:creator>
      <dc:date>2023-10-03T13:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: update  Xpath in Message mapping using Custom functions.</title>
      <link>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812627#M4811375</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;amit023&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Could you please elaborate a little more on the comment? I didn't quite understand what you really want to achieve. Perhaps if you give a more concrete example it would help.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Ivan&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 18:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-xpath-in-message-mapping-using-custom-functions/qaa-p/12812627#M4811375</guid>
      <dc:creator>Ivan-Mirisola</dc:creator>
      <dc:date>2023-10-03T18:15:26Z</dc:date>
    </item>
  </channel>
</rss>

