• Vanessa Chalem 10
  • NEWBIE
  • 25 Points
  • Member since 2018

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Background:
I have a managed package that is actively being used by other organizations. The end goal is to be able to appropriately pull app analytics from Salesforce so that I can better understand how folks are using my app.

I opened a case with Salesforce to appropriately enable app analytics. The case was appropriately worked about a week ago, so app analytics should be working now, and there should be data to query.

************
What I have tried so far:

After reviewing the documentation on AppAnalyticsQueryRequest: https://developer.salesforce.com/docs/atlas.en-us.220.0.object_reference.meta/object_reference/sforce_api_objects_appanalyticsqueryrequest.htm,

I tried to query the Salesforce SOAP API like this:
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">
   <soapenv:Header>
      <urn:PackageVersionHeader>
      </urn:PackageVersionHeader>
      <urn:QueryOptions>
      </urn:QueryOptions>
      <urn:SessionHeader>
         <urn:sessionId>[session id goes here]</urn:sessionId>
      </urn:SessionHeader>
   </soapenv:Header>
   <soapenv:Body>
      <urn:query>
         <urn:queryString>SELECT DataType, DownloadExpirationTime, DownloadUrl, EndTime, ErrorMessage, LastReferencedDate, LastViewedDate, Name, OrganizationIds, PackageIds, RequestState, StartTime FROM AppAnalyticsQueryRequest</urn:queryString>
      </urn:query>
   </soapenv:Body>
</soapenv:Envelope>


...but my query response is blank.
<queryResponse>
         <result>
            <done>true</done>
            <queryLocator xsi:nil="true"/>
            <size>0</size>
         </result>
      </queryResponse>




*********
My Question:
What are the correct steps to get analytics data back?

 

 

Parallel posted to https://salesforce.stackexchange.com/questions/276672/what-are-the-correct-steps-to-get-data-back-from-an-appanalyticsqueryrequest

Background:
I have a managed package that is actively being used by other organizations. The end goal is to be able to appropriately pull app analytics from Salesforce so that I can better understand how folks are using my app.

I opened a case with Salesforce to appropriately enable app analytics. The case was appropriately worked about a week ago, so app analytics should be working now, and there should be data to query.

************
What I have tried so far:

After reviewing the documentation on AppAnalyticsQueryRequest: https://developer.salesforce.com/docs/atlas.en-us.220.0.object_reference.meta/object_reference/sforce_api_objects_appanalyticsqueryrequest.htm,

I tried to query the Salesforce SOAP API like this:
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">
   <soapenv:Header>
      <urn:PackageVersionHeader>
      </urn:PackageVersionHeader>
      <urn:QueryOptions>
      </urn:QueryOptions>
      <urn:SessionHeader>
         <urn:sessionId>[session id goes here]</urn:sessionId>
      </urn:SessionHeader>
   </soapenv:Header>
   <soapenv:Body>
      <urn:query>
         <urn:queryString>SELECT DataType, DownloadExpirationTime, DownloadUrl, EndTime, ErrorMessage, LastReferencedDate, LastViewedDate, Name, OrganizationIds, PackageIds, RequestState, StartTime FROM AppAnalyticsQueryRequest</urn:queryString>
      </urn:query>
   </soapenv:Body>
</soapenv:Envelope>


...but my query response is blank.
<queryResponse>
         <result>
            <done>true</done>
            <queryLocator xsi:nil="true"/>
            <size>0</size>
         </result>
      </queryResponse>




*********
My Question:
What are the correct steps to get analytics data back?

 

 

Parallel posted to https://salesforce.stackexchange.com/questions/276672/what-are-the-correct-steps-to-get-data-back-from-an-appanalyticsqueryrequest

Hello everyone!
My organization is attempting to transition our code base to SFDX. One of the things I wanted to implement was an automated process that would set up a scratch org. However, I'm not sure that's possible. I am following the instructions laid out in this doc:
https://developer.salesforce.com/docs/atlas.en-us.health_cloud.meta/health_cloud/admin_install_package.htm

So, first question, I have an install link to the health cloud package, is there any way to install that package from the command line using force:package:intall? I have tried to pull the package into my local environment and then push that to a scratch org, but I get errors (field tracking isn't enbled for some objects). I'm trying to find a way to eradicate manual steps in scratch org setup.

Secondly, there is a configuration step that requires going to Account Settings in Setup and enabling 'Allow Users to relate a contact to multiple accounts'. Is it possible to somehow enable this in the SFDX projects configuration file?

Thanks so much!