<?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>topic parsing salesforce report analytics api results in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/parsing-salesforce-report-analytics-api-results/m-p/7572#M3276</link>
    <description>&lt;P&gt;i have created a custom action in the SF connector to read a salesforce report&lt;/P&gt;&lt;P&gt;the report data is contained in an array called datacells inside an array called rows&lt;/P&gt;&lt;P&gt;i have put the response body view and the raw json below&lt;/P&gt;&lt;P&gt;what is the easiest way for me to parse this into a list so i can import to an invoices in an external system?&lt;/P&gt;&lt;P&gt;i tried creating a for...each loop on rows but workato errors out if i try to refer to data cells[&lt;EM&gt;x&lt;/EM&gt;].label&lt;/P&gt;&lt;P&gt;i can for each on rows and then for each on data cells but then i can't tell where i am without a variable to track where i am which seems kludgy&lt;/P&gt;&lt;P&gt;the response body looks like this in workato&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="responsebody.JPG" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1537iC3B5CA75E3CF9146/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="responsebody.JPG" alt="responsebody.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the raw json looks like this&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"body": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"attributes": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"describeUrl": "/services/data/v42.0/analytics/reports/xxxx/describe",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"instancesUrl": "/services/data/v42.0/analytics/reports/xxxx/instances",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"reportId": "xxxx",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"reportName": "Invoices Import",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"type": "Report"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"allData": true,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"factMap": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"T_T": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"rows": [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"dataCells": [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"label": "Billing Company Inc.",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"value": "xxxx"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"label": "Customer Name Ltd.",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"value": "xxxx"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"label": "-",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"value": null&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"label": "Customer Name Ltd.",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"value": "xxxx"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"escapedLabel": "Customer Number",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"label": "Customer Number",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"value": "Customer Number"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;"dataCells": [&lt;BR /&gt;{&lt;BR /&gt;"label": "Billing Company 2 Inc.",&lt;BR /&gt;"value": "xxxx"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"label": "Customer Name 2 Ltd.",&lt;BR /&gt;"value": "xxxx"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"label": "-",&lt;BR /&gt;"value": null&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"label": "Customer Name 2 Ltd.",&lt;BR /&gt;"value": "xxxx"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"escapedLabel": "Customer Number 2",&lt;BR /&gt;"label": "Customer Number 2",&lt;BR /&gt;"value": "Customer Number 2"&lt;BR /&gt;},&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2024 11:27:42 GMT</pubDate>
    <dc:creator>sidjayawardena</dc:creator>
    <dc:date>2024-09-11T11:27:42Z</dc:date>
    <item>
      <title>parsing salesforce report analytics api results</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/parsing-salesforce-report-analytics-api-results/m-p/7572#M3276</link>
      <description>&lt;P&gt;i have created a custom action in the SF connector to read a salesforce report&lt;/P&gt;&lt;P&gt;the report data is contained in an array called datacells inside an array called rows&lt;/P&gt;&lt;P&gt;i have put the response body view and the raw json below&lt;/P&gt;&lt;P&gt;what is the easiest way for me to parse this into a list so i can import to an invoices in an external system?&lt;/P&gt;&lt;P&gt;i tried creating a for...each loop on rows but workato errors out if i try to refer to data cells[&lt;EM&gt;x&lt;/EM&gt;].label&lt;/P&gt;&lt;P&gt;i can for each on rows and then for each on data cells but then i can't tell where i am without a variable to track where i am which seems kludgy&lt;/P&gt;&lt;P&gt;the response body looks like this in workato&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="responsebody.JPG" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1537iC3B5CA75E3CF9146/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="responsebody.JPG" alt="responsebody.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the raw json looks like this&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"body": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"attributes": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"describeUrl": "/services/data/v42.0/analytics/reports/xxxx/describe",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"instancesUrl": "/services/data/v42.0/analytics/reports/xxxx/instances",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"reportId": "xxxx",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"reportName": "Invoices Import",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"type": "Report"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"allData": true,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"factMap": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"T_T": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"rows": [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"dataCells": [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"label": "Billing Company Inc.",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"value": "xxxx"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"label": "Customer Name Ltd.",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"value": "xxxx"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"label": "-",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"value": null&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"label": "Customer Name Ltd.",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"value": "xxxx"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"escapedLabel": "Customer Number",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"label": "Customer Number",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"value": "Customer Number"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;},&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;"dataCells": [&lt;BR /&gt;{&lt;BR /&gt;"label": "Billing Company 2 Inc.",&lt;BR /&gt;"value": "xxxx"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"label": "Customer Name 2 Ltd.",&lt;BR /&gt;"value": "xxxx"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"label": "-",&lt;BR /&gt;"value": null&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"label": "Customer Name 2 Ltd.",&lt;BR /&gt;"value": "xxxx"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"escapedLabel": "Customer Number 2",&lt;BR /&gt;"label": "Customer Number 2",&lt;BR /&gt;"value": "Customer Number 2"&lt;BR /&gt;},&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 11:27:42 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/parsing-salesforce-report-analytics-api-results/m-p/7572#M3276</guid>
      <dc:creator>sidjayawardena</dc:creator>
      <dc:date>2024-09-11T11:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: parsing salesforce report analytics api results</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/parsing-salesforce-report-analytics-api-results/m-p/8036#M3367</link>
      <description>&lt;P&gt;Hello, can you provide more details on your use case?&amp;nbsp;&lt;SPAN&gt;Do you want to loop through a nested array? You may check this sample recipe if this is what you require. &lt;A href="https://app.workato.com/recipes/54840791?st=f4124c93c64bdfac8f367d8d5218f5e6aeeff41f29a6300d445b606bea341ce4" target="_blank" rel="noopener"&gt;Here's the link&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 05:16:41 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/parsing-salesforce-report-analytics-api-results/m-p/8036#M3367</guid>
      <dc:creator>beatrice-talens</dc:creator>
      <dc:date>2024-10-16T05:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: parsing salesforce report analytics api results</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/parsing-salesforce-report-analytics-api-results/m-p/8039#M3368</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/10882"&gt;@sidjayawardena&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Here is my thoughts on the requirement.&lt;BR /&gt;1. Use Parse Json in sample document provide with above data, and for the actual document "map the actual data coming from source"&amp;nbsp;&lt;BR /&gt;2. Use the create list initialize or you can map directly to incoming parsed value from &lt;STRONG&gt;step_1. Please refer below images for the reference.&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="List_1.jpg" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1617iAC0E603791AAAC49/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="List_1.jpg" alt="List_1.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="List_2.jpg" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1618i7ED8FFBC34D5D798/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="List_2.jpg" alt="List_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;BR /&gt;Shivakumara Avadhani&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 13:42:20 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/parsing-salesforce-report-analytics-api-results/m-p/8039#M3368</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2024-10-16T13:42:20Z</dc:date>
    </item>
  </channel>
</rss>

