I am trying build an outer join to display a list of contacts showing if they have a related portal user records or not.
I know you can get a list of related contacts from the user object but is it possible to go from contacts to user?
I know this works...Select u.isactive, u.Contact.name From User u but what about Select name, c.user.isactive From Contact c?
Any thoughts how I can outer join these two tables and display one list?
I started having some errors recently on my production environment and can't figure out what is going on. This is happening in a few test classes I run and by looking at the debug logs, all the tests go through everything as expected and after they are done and call test.stopTest(), the test enters managed package and things go bad. This is actually happening when entering Zendesk package, but I'm not sure if this is related to this specific package (could be some error that was being forwarded and ends up on last package or something like that).
The first thing I got was this:
Error MessageSystem.QueryException: No such column 'BillingAddress' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. Stack Trace(Zendesk)I don't make such query, Zendesk was making it when entering managed packages and doing a query with all fields of Account object. I don't know why that fails too, since "BillingAddress" does exist on Account object. Anyway, I was able to reproduce this first error on my Sandbox and commented the single test that makes this happen.
However, there was another error happening in other test classes, a NullPointerException also after the test.stopTest() is called on my test classes, then it enters managed package. This one I couldn't reproduce in sandbox, it just happens on production. These are the last lines of the debug logs for running one of the failing test classes.
I already opened a ticket on Zendesk support, but haven't received an answer yet, and since this is blocking me from deploying things, I decided to try developer forums, maybe someone had the same or similar issue and can give me some hint.
The current salesforce for zendesk integration does not allow for custom querying or flitered results that I am aware of.
Because of this I am attempting to create a custom remote access app to pull filtered results via SOQL query into a zendesk app to display in zendesk. I have connected to salesforce api using the OAUTH2.0 documentation. I am able to log in and retreive the filtered data fine using a browser with PHP. My problem is I do not want to have to log in to salesforce to authenticate. I have set my connected app to require login 'The first time they use this application' by including the 'refresh-token' option.
What I need to figure out is how to authenticate programatically, or through the zendesk app. I am curious how this is currently done with the existing salesforce for zendesk app?
I am aware of the posibility of the OAuth 2.0 username-password flow, yet am woried about the security with this method. Is this how the current integration does it or is there a safer method that I am missing?