I am tring to build reports in salesforce which need around 30 filters to be applied. Salesforce has a limit of 20 filters as per first row of this page -
https://help.salesforce.com/apex/HTViewHelpDoc?id=limits_analytics_per_edition.htm&language=en_US
Apart from writing these reports in apex/visulforce from scratch, is there any other alternative to workaround this limit?
Thank you in advance!!
Related
I have an express API application running on GAE. It is my understanding that every time someone makes a GET request to it, it creates a log. In the Logs Explorer (Operations -> Logging -> Logs Explorer), I can filter to view only GET requests from a certain source by querying:
protoPayload.method="GET"
protoPayload.referrer="https://fakewebsite.com/"
In the top-right of the Logs Explorer, I can also select a time range of 1 day to view logs from the past 24 hours.
I want to be able to see how many GET requests the app receives from a given referrer every day. Is this possible? And is there functionality to display the daily logs in a bar chart (say, to easily visualize how many logs I get every day over the period of a week)?
You can achieve this but not directly in the Cloud Logging service. You have started well: you have created a custom filter.
Then, create a sink and save the logs to BigQuery.
So now, you can perform a query to count the GET every day, and you can build a datastudio dashboard to visualise your logs.
If only the count is needed on daily basis you can create a sink to stream data directly into the BigQuery. As the data needs to be segregated on daily basis while creating a sink , a better option would be to use a partition table which can help you in two ways:
You would have a new table everyday
Based on your usage although BigQuery provide a free tier , this data is not
needed in near future storing it this way will reduce your cost and querying cost
BigQuery comes with data studio , as soon as you query on table you'll have the option to explore the result in Data studio and generate reports as needed.
I have an issue with microsoft graph api when i try to display the total users in my organisation it only show the 100 users, but in my organisation nearly 150 users are there. May i know the reason behind these issue. Thanks advance
Seems you are trying to get UserList using Microsoft Graph its depends on your request with query selection option.
You can use query parameters request like this
graph.microsoft.com/v1.0/users?$top=150 to get your 150 users by
request.
See the screen shot below:
For further details refer to official document
Hope that would help.
Im working on a custom google spreadsheet analytics dashboard.
Here's the situation, I'm trying to get specific info:
Sessions, users, pageviews pageviews/sessions, avg session duration, bouncerate and % new sessions.
The thing is I almost have all the right information except for AVG Session duration and Pageviews/sessions.
Here's a screenshot of the problem:
http://puu.sh/i2rGf/37b2dab3fb.png (its the yellow and the pink one)
Google returns the value's in seconds where you easily devide by 86400
well, I've tried that and no result.
Its kinda weird because everyone is talking about a result like 1234.1234
but mine is 1234.1234.1234.1234 ?
Ideas on where the problem might be?
Check the locale in your spreadsheet settings. It needs to be US to match the GA data being sent.
I'm making a good progress using Web2py and Google App Engine, but now I have to decide how to store images without waste GAE resources!
I have a "table" were I store products.
Each product can have a maximum of 12 picutes.
When I request the product page, lets say:
/product/7484/
I need only the product informations, without the pictures, but GAE engine get all fields from datastore! I thought that using Google App Engine Projection Queries, this could be solved and I would only fetch the fields I need!
Is that possible with Web2py or will I have to change my database to store imagens on another "table"?
I only will need fetch each picute field when they get requested by browser... but now, each picture requested cause the whole product entity being fetched from database!
We have it as an experimental feature in trunk. Perhaps you can help us test it. Nothing special to do just the usual:
db(query).select(db.table.field1, db.table.field2, etc.)
unless the query selects a single record by id, the arguments of select are converted into a projection query. Unfortunately GAE does not support projection for get_by_id().
Thanks to Christian (howesc) who pulled this off within 24 hrs from you requesting the feature. Please join us on the web2py google group if you can help testing.
I'm trying to write an app on the SalesForce platform that can pull a list of contacts from a report and send them to a web service (say to send them an email or SMS)
The only way I can seem to find to do this is to add the report results to a newly created campaign, and then access that campaign. This seems like the long way around.
Every post I read online says you can't access the reports through Apex, however most or all of these posts were written before Version 20 of the API was released last month, which introduced a new report object. I can now programmatically access info about a report (Such as the date last run etc) but I still can't seem to find a way to access the result data contained in that report.
Does anyone know if there's a way to do that?
After much research into it, I've discovered the only way to do this at the moment is indeed to scrape the CSV document. I would guess that Conga etc are using exactly this method.
We've been doing this for a while now, and it works. The only caveats are:
Salesforce username / password /
security token has to be shared to
the app connecting. If the password
changes (and by default it is changed
every 30 days or so) the token also
changes and must be re-entered.
You have to know the host of the account, which can be difficult to
get right. For instance while most european accounts would use emea.salesforce.com to access CSV, our account uses na7 (North America 7) even though we're located in
ireland. I'm currently sending the page host to the app and parsing it
to calculate the correct subdomain to use, but I think there has to be a
better way to do this.
Salesforce really needs to sort this out by supplying an API call which allows custom report results to be exported on the fly and allowing us to use OAuth to connect to it. But of course, this is unlikely to happen.
In the SalesforceSpring 11 update, it seems you can obtain more informations about the Reports:
As stated in the API for Report and ReportType, you can access via Apex the fields used in the query by the Report, reading the field "columns", as well as the field used to represent the filters called "filter".
Iterating through this objects, should allow you to build a String representing the same query of the Report. After building that string you can make a dynamic query with a Database.query(..) call.
It seems to be a little messy, but should work.. (NOT TESTED YET!)
As header states, this works only with Custom Reports!
Just to clarify for fellow rookies who will find this, when the question was asked you could access your report data programatically, but you had to use some hacky, error prone methods.
This is all fixed, you can now access your reports via the API as of Winter '14.
Documentation here - http://www.salesforce.com/us/developer/docs/api_analytics/index.htm
Go to town on those custom dashboards etc. Cross posted from the Salesforce Stack Exchange - https://salesforce.stackexchange.com/questions/337/can-report-data-be-accessed-programatically/
But Conga (appextremes) do this in their QuickMerge product, where the user specifies the report Id, and the apex script on the page runs the report to extract the results for a mail merge operation.
the v20.0 API added metadata about the reports, but no way to actually run the report and obtain the results. If this is a standard report, or a report you've defined, you can work out the equivalent SOQL query for your report and run that, but if its an end user defined report, there's no way to do this.