• subhajit13
  • NEWBIE
  • 10 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 7
    Replies
Hi,

Can send can send attachment(s) from Salesforce to and external system using WSDL or HTTP Callout? If yes, is there any limit of size of file can be sent?

From what I found out so far, it seems.. attachment (blob) can not be sent using WSDL call..

The following data types are only supported when used as call ins, that is, when an external Web service calls an Apex Web service method. These data types are not supported as callouts, that is, when an Apex Web service method calls an external Web service.
•             blob
•             decimal
•             enum

Can we use HTTPRequest method setBodyAsBlob (to an EndPoint URL) and set MIME type and send the file instead in case WSDL based callout does not support it?

Please suggest, would really appriciate any help/input, thanks in advance.

Regards,
Subhajit

Hi can anyone point me to any product documentation link where it specifically says that workbench queries/send API calls in Salesoforce org's database directly and do not store any data locally? Thanks for your help in advance!

 

Workbench - https://workbench.developerforce.com/login.php

 

Regards,

Subhajit

I am having issue to assign a map from<apex:attribute type="map" assignedTo={!method}

 

Getting the below error message:

 Error: Type mismatch for <apex:attribute assignTo>. Value binding to a property of type MAP<Object,Object> is required, property specified is of type MAP<String,String>.

 

Below is the code snipet I am using:

VF Component:

    <apex:attribute name="leftOptions" description="Map for left Picklist" type="map" required="true" assignTo="{!test}"/>

Definition in Controller:

public Map<String,String> test {get;set;}

 

Note: the same errot comes for below definitions as well -

public Map<Account,Contact> test {get;set;}

public Map<sObject,sObject> test {get;set;}

 

Please let me know anyone need more information to help. Thanks in advance.

 

 

I am facing an issue in Mail Merge Template:

 

When I use "{ DATE \@ “dd’/’MMMM’/’yyyy” \*MERGEFORMAT }" to get Todays date - I am getting output as: "11/July/2012"

 

Now the problem is, for users with differnt language, the month part (July) is not getting translated into User language, its coming in English only.

 

Can anyone please give some input about how we can achive the Translation with dynamic date?

 

Regards,

Subhajit

 

 

Hi, I am trying to make root call (or any other call like query as well), I am getting the below error:

 

System.HttpResponse[Status=Bad Request, StatusCode=400]

 Below is the code snippet, please let me know what am I missing here. 

 

Http http = new Http();
HttpRequest req = new HttpRequest();
HttpResponse res = new HttpResponse();

req.setEndpoint('https://login.salesforce.com/services/data/v24.0');
req.setMethod('GET');
System.debug('Token in root() - '+token); //Getting this value from "https://login.salesforce.com/services/oauth2/token" call
String authVal = 'OAuth '+token;
req.setHeader('Authorization',authVal);
// Invoke web service call
String result = '';
try {
res = http.send(req);
result = res.getBody();
} catch(System.CalloutException e) {
 System.debug(res.toString());
}

Can we seamlessly make a hybrid site using Site.com (for unauthenticated pages) and Force.com sites (for authenticated pages, e.g. registration, authentication, shopping cart kind of functionality etc)?

 

If yes, how we can maintain the session in case we nagivate to a Site.com page and come back to a Force.com site page after user already logged in?

 

Any idea on this line will help very much, thanks in advance.

 

 

I am trying to programmatically create a User Queue record that can own Lead records via a trigger . According to the documentation available for Group object

 

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_group.htm#topic-title

 

setting Group.Type = ‘Lead’  should achieve this . But, this is throwing an exception at runtime

 

Apex trigger insertSalesTeam caused an unexpected exception, contact your administrator: insertSalesTeam: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, Type: bad value for restricted picklist field: Lead: [Type]: Trigger.insertSalesTeam: line 33, column 9

 

If , however , I give  Group.Type  =  ‘Queue’ , it perfectly creates a Queue record as expected , but I have to set ‘Lead’ as ‘Supported Object’ manually .

 

Have any of you faced this problem ? can you please let us know if there is some work around for this .

Hi,

Can send can send attachment(s) from Salesforce to and external system using WSDL or HTTP Callout? If yes, is there any limit of size of file can be sent?

From what I found out so far, it seems.. attachment (blob) can not be sent using WSDL call..

The following data types are only supported when used as call ins, that is, when an external Web service calls an Apex Web service method. These data types are not supported as callouts, that is, when an Apex Web service method calls an external Web service.
•             blob
•             decimal
•             enum

Can we use HTTPRequest method setBodyAsBlob (to an EndPoint URL) and set MIME type and send the file instead in case WSDL based callout does not support it?

Please suggest, would really appriciate any help/input, thanks in advance.

Regards,
Subhajit
Hi,

Can send can send attachment(s) from Salesforce to and external system using WSDL or HTTP Callout? If yes, is there any limit of size of file can be sent?

From what I found out so far, it seems.. attachment (blob) can not be sent using WSDL call..

The following data types are only supported when used as call ins, that is, when an external Web service calls an Apex Web service method. These data types are not supported as callouts, that is, when an Apex Web service method calls an external Web service.
•             blob
•             decimal
•             enum

Can we use HTTPRequest method setBodyAsBlob (to an EndPoint URL) and set MIME type and send the file instead in case WSDL based callout does not support it?

Please suggest, would really appriciate any help/input, thanks in advance.

Regards,
Subhajit

Hi can anyone point me to any product documentation link where it specifically says that workbench queries/send API calls in Salesoforce org's database directly and do not store any data locally? Thanks for your help in advance!

 

Workbench - https://workbench.developerforce.com/login.php

 

Regards,

Subhajit

I am having issue to assign a map from<apex:attribute type="map" assignedTo={!method}

 

Getting the below error message:

 Error: Type mismatch for <apex:attribute assignTo>. Value binding to a property of type MAP<Object,Object> is required, property specified is of type MAP<String,String>.

 

Below is the code snipet I am using:

VF Component:

    <apex:attribute name="leftOptions" description="Map for left Picklist" type="map" required="true" assignTo="{!test}"/>

Definition in Controller:

public Map<String,String> test {get;set;}

 

Note: the same errot comes for below definitions as well -

public Map<Account,Contact> test {get;set;}

public Map<sObject,sObject> test {get;set;}

 

Please let me know anyone need more information to help. Thanks in advance.

 

 

Hi, I am trying to make root call (or any other call like query as well), I am getting the below error:

 

System.HttpResponse[Status=Bad Request, StatusCode=400]

 Below is the code snippet, please let me know what am I missing here. 

 

Http http = new Http();
HttpRequest req = new HttpRequest();
HttpResponse res = new HttpResponse();

req.setEndpoint('https://login.salesforce.com/services/data/v24.0');
req.setMethod('GET');
System.debug('Token in root() - '+token); //Getting this value from "https://login.salesforce.com/services/oauth2/token" call
String authVal = 'OAuth '+token;
req.setHeader('Authorization',authVal);
// Invoke web service call
String result = '';
try {
res = http.send(req);
result = res.getBody();
} catch(System.CalloutException e) {
 System.debug(res.toString());
}

Can we seamlessly make a hybrid site using Site.com (for unauthenticated pages) and Force.com sites (for authenticated pages, e.g. registration, authentication, shopping cart kind of functionality etc)?

 

If yes, how we can maintain the session in case we nagivate to a Site.com page and come back to a Force.com site page after user already logged in?

 

Any idea on this line will help very much, thanks in advance.

 

 

I'm having a number of problems with CSS in siteforce: 

 

  • if I set the main panel to use an ID #main and hit apply, when I go back later, siteforce has converted from the CSS #main to an inline definition - is this expected? 
  • I can't use selectors of the form div#main - no a big deal, but that is a standard syntax
  • NONE of the combinators work - that's a real pain and will require a significant re-write of my existing stylesheets. In particular the decendent combinator doesn't appear to be supported! 

I wholeheartedly agree with the documentation - use CSS instead of the inline styles - but siteforce is NOT making this easy!!!!! 

 

Am I missing something? Is there an option or some syntax in the Style Pane I'm missing? 

 

BTW: I can understand why the product doesn't do this - it's not easy getting this right. But it would be nice to know if this is pilot error or if planned for a future release. 

  • October 28, 2011
  • Like
  • 0