• Rangeshwara Kona
  • NEWBIE
  • 75 Points
  • Member since 2015

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 8
    Replies
Hello Everyone,

I'm attempting to create a VF page/component that will give me a case history so to speak. When a user creates a case I'd like a history of cases created by that user for any record type to appear in a case history list. Any ideas on how I can acheive this. I'm completely new to SF and Apex.
Hi, 
We have custom attachment which attach the files to BOX (using REST API) and rendering attachment from there when the user clicks on "View" link. But the following functionolity works on PDF and image files, they are directly opening on next tab/window but when we click on Docs or CSV, the file is downloading direclty rather opening  on new page. Please someone give me clues on this? see the following code snippet.
Apex Code: 
public String fileOpen(){
     HttpRequest req = new HttpRequest();
     req.setEndpoint(fileDownloadURL);
     req.setMethod('GET');
     Http binding = new Http();
     HttpResponse res = binding.send(req);
     Blob boxFile = res.getBodyAsBlob();
     String boxResponse = 'data:'+res.getHeader('Content-Type')+';base64,'+EncodingUtil.base64Encode(boxFile );
     return boxResponse ;
}
VisualForce Page:
<apex:page controller="BoxController" action="{!fileOpen}">
    <apex:form >
        <apex:outputText escape="false" value="{!boxResponse}"/> 
    </apex:form>
</apex:page>

Please help me on rendering doc/csv files on page rather downloading.. 

Appreciate your help..
Sumant K
 
Hello Everyone,

I'm attempting to create a VF page/component that will give me a case history so to speak. When a user creates a case I'd like a history of cases created by that user for any record type to appear in a case history list. Any ideas on how I can acheive this. I'm completely new to SF and Apex.
I have a developer account.  Trying to follow the trailhead course here: https://developer.salesforce.com/trailhead/mobile_sdk_native_ios/mobilesdk_ios_getting_started

The very first step is to create a connected app inside salesforce.  I follow the instructions, but there is no new button - see attached screenshot.

User-added image

Its no different in the new lightening experience.

Since I cannot raise a case this means I am stumped - before I can even evaluate use of salesforce.  

What am I doing wrong here ?

Thanks
Hello,

This is the trailhead questions which I am trying to solve :

Create an Apex class that returns an array (or list) of formatted strings ('Test 0', 'Test 1', ...). The length of the array is determined by an integer parameter.The Apex class must be called 'StringArrayTest' and be in the public scope.
The Apex class must have a public static method called 'generateStringArray'.
The 'generateStringArray' method must return an array (or list) of strings. Each string must have a value in the format 'Test n' where n is the index of the current string in the array. The number of returned strings is specified by the integer parameter to the 'generateStringArray' method.


Here is my code :

public class StringArrayTest {
    public static List <String> generateStringArray (Integer n) {
       List<String> List1 = new List<String> ();
        for(Integer i=0;i<n;i++) {
          List1.add('\'Test'+ i+'\'' );
  }
        System.debug(List1);
        return List1;
    } 

}


I am getting following error :

Challenge not yet complete... here's what's wrong: 
Executing the 'generateStringArray' method failed. Either the method does not exist, is not static, or does not return the proper number of strings.


I tried it many times but I am not able to solve this problem. Please help. 



 

Hello sfdc experts and guru's

 

2 Questions from my end:--

 

1)  I looked at videos of informatica cloud and have seen that we can establish a connection(data sync) between  oracle server and salesforce .if i make a change in salesforce data  that change will be in sync with oracle server ( this is ok) .now if some other user of oracle server who hasnt installed informatica cloud makes change to the same oracle database table. will this change be reflected

 

2) I would love to get a step by step process on how to integrate salesforce with Informatica without using informatica cloud. Someone pls help regarding this.

 

Thanks

kartik