• Avinash Kumar 90
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 2
    Replies
Hi All,
Currently I see the following sub tabs in Chatter feed.
 'All Updates', 'Emails','Call Logs', 'Text Posts', 'Status Change'

User-added image
Is there a way to supress some of the tabs .e.g supress 'Call Logs' tab ?

Regards,
Avinash
Hi there,
I've got a requirement that UI based flow be invoked as a pop-up/modal dialog when user clicks on a button in related list view. 
Is it possible ?

I was able to launch a flow from related list but it open in a new page of its own. 

Regards,
 Avinash
Hello All,
 Do we need to mention username and password in the code ? I got this sample code from salesforce documentation. 
Any help would be greatly appreciated. I read that if one is using OAuth then user credentials need not be mentioned in the code.

public boolean loginSample() {
   boolean success = false;
   String username = "username";
String password = "password";
String authEndPoint = "https://login.salesforce.com/services/Soap/c/24.0/";

 try {
     ConnectorConfig config = new ConnectorConfig();
      config.setUsername(username);
      config.setPassword(password);       
 
      System.out.println("AuthEndPoint: " + authEndPoint);
      config.setAuthEndpoint(authEndPoint);
 
      connection = new EnterpriseConnection(config);
 
      // Print user and session info
      GetUserInfoResult userInfo = connection.getUserInfo();
      System.out.println("UserID: " + userInfo.getUserId());
      System.out.println("User Full Name: " + userInfo.getUserFullName());
      System.out.println("User Email: " + userInfo.getUserEmail());
      System.out.println();
      System.out.println("SessionID: " + config.getSessionId());
      System.out.println("Auth End Point: " + config.getAuthEndpoint());
      System.out
            .println("Service End Point: " + config.getServiceEndpoint());
      System.out.println();
 
     success = true;
   } catch (ConnectionException ce) {
      ce.printStackTrace();
   }
    return success;
}


Regards,
 Avinash
Hi All,
In a one way ssl scenario, where salesforce is client and is making a ssl callout how does salesforce verify server certificate? 
 As per documentation, in one way SSL only server certificate is checked. I would like to understand how does salesforce checks server certificate.
 P.S.: Am a salesforce newbie and hence this basic question.

-Avinash 
Hi there,
I've got a requirement that UI based flow be invoked as a pop-up/modal dialog when user clicks on a button in related list view. 
Is it possible ?

I was able to launch a flow from related list but it open in a new page of its own. 

Regards,
 Avinash
I have to use Oauth JWT flow to got the access token but while i execute my code then it show me following error,
 
{
     "error" : "invalid_grant",
     "error_description" : "user hasn't approved this consumer"
}

I setup all the related things like create the App and upload the certificate and also create the currect JWT token as per doc Here
and post the following request for access token,
 
HttpPost httpPost = new HttpPost("https://login.salesforce.com/services/oauth2/token");
httpPost.addHeader("Content-Type", "application/x-www-form-urlencoded");
List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair("grant_type", "urn:ietf:params:oauth:grant-type:jwt-bearer"));
params.add(new BasicNameValuePair("assertion", clientAssertion));			
httpPost.setEntity(new UrlEncodedFormEntity(params));
HttpResponse response = httpClient.execute(httpPost);

And I also accept the application and related permission by following request,

https://login.salesforce.com/services/oauth2/authorize?client_id=3MVG9ZL0ppGP5UrDITkMBDGuTYGHeynoEt40ZRWCcaYsycFHYDcm2LnqukCNurLNx33LH1c.0rrfG8VrQaqri&redirect_uri=https://localhost/myapp&response_type=code     

I think I done all the things to get the access token but I M GETTING ERROR.
Could you please somebody help me for solving this problem.
Thank You.