• aperillat
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

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?

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?

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?

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?

If I install my managed beta package into a new developer org the installation works fine.

 

If I install, then uninstall and re-install the installation still works fine.

 

But if I install, use "Manage" to create an org instance of a custom setting object, then uninstall and re-install the re-install fails with errors like these:

 

Apex Classes(01pA0000000i0ux) benefitclaimedactionstest.test()
System.DmlException: Insert failed. First exception on row 0;
first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY,
cvc.BenefitTrigger: execution of BeforeInsert

caused by: System.DmlException: Upsert failed. First exception on row 0;
first error: DUPLICATE_VALUE, duplicate value found:
SetupOwnerId duplicates value on record with id: 00DA0000000Y0TO: []

 

It appears the unit tests run as part of the install process are failing because of this underlying code (in this one case only):

 

 

public class CustomSettings {
    public static DateConversionFactors__c getDateConversionFactors() {
        if (DateConversionFactors__c.getOrgDefaults() == null) {
            insert new DateConversionFactors__c(SetupOwnerId = UserInfo.getOrganizationId());
        }
        return DateConversionFactors__c.getOrgDefaults();
    }
}

 

My best guess is that the uninstall is not cleaning up the data created when "Manage" was used completely and so the SetupOwnerId inserted here is being seen as a duplicate.

 

Does anyone have any experience of this problem or insight into how to avoid it?

 

Thanks,

Keith