• krishna Bidwai 54
  • NEWBIE
  • 5 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies

I have installed npm and the andriod studio as mentioned in the trailhead step

I am trying to create hybrid_local app but not able to do so.  

please let me know if I am missing something.

User-added image

I am facing following issue in step 9 of this super badge.

There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: An error occurred while connecting to the external system. Please try again, or contact your administrator. Attempted to reach this URL: https://sb-integration-is.herokuapp.com/odata/invoices?$top=2&$inlinecount=allpages&$select=id. Error received from the external system: 500: Internal Server Error

Any help will be appreciated!!

Hello everyone, has anyone tried to Display mini Page Layout with Lightning view without any code as we do in classic using 
<apex:inputfield>
Hi,
I want to integrate Salesforce with Drop box.
Please any one help me to do that. or can anyone share any dropbox integration link Document link
Thank you
Hi All,                    
           When End User Click the Command button need to genearte the dynamic CSV File using apex and uploading into DropBox account.how can i acheive this.  

Please advice.
Thanks,
Vivek.K
Hi All,

VF Page:

<apex:page controller="DropboxController">
<apex:form>
    <apex:pageblock>
        <apex:commandbutton action="{!DropAuth}" value="Dropbox Authentication">
    </apex:commandbutton></apex:pageblock>
</apex:form>
</apex:page>

apex:-

public class DropboxController
{
    //Fetched from URL
    String code ;
    
    public DropboxController()
    {
        code = ApexPages.currentPage().getParameters().get('code') ;
        //Get the access token once we have code
        if(code != '' && code != null)
        {
            AccessToken() ;
        }
    }
    
    public PageReference DropAuth()
    {
        //Authenticating
        PageReference pg = new PageReference('https://www.dropbox.com/1/oauth2/authorize?response_type=code&client_id=vaabb5qz4jv28t5&redirect_uri=https://c.ap1.visual.force.com/apex/DropboxPage&state=Mytesting') ;
        return pg ;
    }
    
    public void AccessToken()
    {
        //Getting access token from dropbox
        String tokenuri = 'https://api.dropbox.com/1/oauth2/token?grant_type=authorization_code&code='+code+'&redirect_uri=https://c.ap1.visual.force.com/apex/DropboxPage'; 
        HttpRequest req = new HttpRequest();
        req.setEndpoint(tokenuri);
        req.setMethod('POST');
        req.setTimeout(60*1000);
          
        Blob headerValue = Blob.valueOf('vaabb5qz4jv28t5' + ':' + 'dpmmll522bep6pt');
        String authorizationHeader = 'BASIC ' + EncodingUtil.base64Encode(headerValue);
        req.setHeader('Authorization', authorizationHeader);
        Http h = new Http();
        String resp;
        HttpResponse res = h.send(req);
        resp = res.getBody();
        
        System.debug(' You can parse the response to get the access token ::: ' + resp);
   }
}


I got the key,secrete and redirect url from dropbox , and set it in the above code
Now i got the response as a access token from debug log

Example:-
{"access_token": "fdNB-pM_uYsAAAAAAAAANrefVrISVc9rcvRdrUmHqq46W26cDanUSzgzUwIQHr_", "token_type": "bearer", "uid": "282967343"}

but i did not get user profile infomation and app details from dropbox,

Please help me i am new for integration
as well as please explain about how to pass endpoint url with example.

Thanks
Satheesh