• Keyur Patel
  • NEWBIE
  • 30 Points
  • Member since 2013

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 26
    Replies
I've created a visualforce page that has an embedded chatter feed in it using tag. I am able to load chatter feed in my visualforce page but i can't do anything on Topic link. For any post in chatter which having topics, Click on 'Topics' hyperlink , it does not open the list of selected and available topics. 

Surpisely,if the Edit Topics option from down arrow is clicked then the 'Topics' hyperlink works fine.

Is this limitation of chatter feed component?
 

Hello,

 

We are trying to dynamically invoke salesforce webservice without adding webreference in C#.Net. Our requirement is generate proxy based on salesforce wsdl and return method name, service name and out put automatically.

 

I am expecting same like in following URL : http://www.crowsprogramming.com/archives/66

 

We are passing following web request in c#. Net code.
====================================================
HttpWebRequest client = (HttpWebRequest)HttpWebRequest.Create("https://servername/services/wsdl/class/WebServiceName" + "?wsdl");
client.Credentials = new NetworkCredential("xyz@company.com", "test1uHN46qCxXomWqfRcEupLW9cg");
client.Method = "POST";

//client.ContentType = "application/x-www-form-urlencoded";
client.Headers.Add("Authorization" , "Basic " + loginResult.sessionId);
client.Headers.Add("SOAPAction", "");
client.ContentType = "text/xml;charset=\"utf-8\"";

HttpWebResponse wres = (HttpWebResponse)client.GetResponse();
XmlTextReader xmlreader = new XmlTextReader(wres.GetResponseStream());
serviceDescription = ServiceDescription.Read(xmlreader);
====================================================
We are getting following errors.

 

An error has occurred while opening external DTD 'http://www.w3.org/TR/html4/loose.dtd': The remote server returned an error: (500) Internal Server Error."}

 

How can i resolve this error?

Hello,

 

We are trying to dynamically invoke salesforce webservice without adding webreference in C#.Net. Our requirement is generate proxy  based on salesforce wsdl and return method name, service name and out put automatically.

 

I am expecting same like in following URL : http://www.crowsprogramming.com/archives/66

 

We are passing following web request in c#. Net code. 

====================================================

HttpWebRequest client = (HttpWebRequest)HttpWebRequest.Create("https://servername/services/wsdl/class/WebServiceName" + "?wsdl");
client.Credentials = new NetworkCredential("xyz@company.com", "test1uHN46qCxXomWqfRcEupLW9cg");
client.Method = "POST";

//client.ContentType = "application/x-www-form-urlencoded";
client.Headers.Add("Authorization" , "Basic " + loginResult.sessionId);
client.Headers.Add("SOAPAction", "");
client.ContentType = "text/xml;charset=\"utf-8\"";

 

HttpWebResponse wres = (HttpWebResponse)client.GetResponse();

XmlTextReader xmlreader = new XmlTextReader(wres.GetResponseStream());

serviceDescription = ServiceDescription.Read(xmlreader);

====================================================

We are getting following errors.

 

An error has occurred while opening external DTD 'http://www.w3.org/TR/html4/loose.dtd':  The remote server returned an error: (500) Internal Server Error."}

 

How can i resolve this error?

Hi,

 

I got following issue while share selected slides or active work book in chatter with .Net. We are integrated chatter with our .Net application.

 

Error : 

{\"message\":\"ContentDocument is not enabled for feed items of type ContentPost\",\"errorCode\":\"INVALID_FIELD\"}

 

Here is my code.

=================================

byte[] boundarybytes = System.Text.Encoding.ASCII.GetBytes("\r\n--" + Boundary + "\r\n");

HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(url);
if (this.Proxy != null)
wr.Proxy = this.Proxy;
wr.Timeout = 600000; // 10 minutes
wr.ContentType = ContentType + "; boundary=" + Boundary;
wr.Method = "POST";
wr.KeepAlive = true;
wr.ServicePoint.Expect100Continue = false;
wr.Headers.Add("Authorization: OAuth " + sessionId);
Stream rs = wr.GetRequestStream();

byte[] partBytes;
foreach (HttpMultipartRequestPart part in parts)
{
rs.Write(boundarybytes, 0, boundarybytes.Length);
partBytes = System.Text.Encoding.UTF8.GetBytes(part.ToString());
rs.Write(partBytes, 0, partBytes.Length);

if (part.BodyType == HttpMultipartRequestPart.BODY_TYPE_FILE)
part.WriteFile(rs);
else if (part.BodyType == HttpMultipartRequestPart.BODY_TYPE_BYTES)
part.WriteBytes(rs);
}

byte[] trailer = System.Text.Encoding.ASCII.GetBytes("\r\n--" + Boundary + "--\r\n");
rs.Write(trailer, 0, trailer.Length);
rs.Close();

 

Please help me to short out this issue.

 

Regards,

Keyur Patel

Hello,

 

I am trying to sending private message from my .Net application via Post method but private message is not send. I am not also getting any exception in my code.

 

 

URL and Parameter

 

URL : https://login.salesforce.com/services/data/v27.0/chatter/users/me/messages?

Parameter : "recipients=005d0000001TowVAAA&Hi this just test"

 

Here is my code.

======================

 

public

string HttpPost(string URI, string Parameters)

        {

            System.IO.

StreamReader sr = null;

           

try

            {

 

               

string InstanceURL = ApttusSessionManager.GetSessionServerUrl(true);

               

string SessionId = ApttusSessionManager.SalesForceSession.SessionHeaderValue.sessionId;

                System.Net.

WebRequest req = System.Net.WebRequest.Create(XmlAuthorUtil.GetFrontDoorURL(InstanceURL, SessionId, "/chatter/users/me/messages/"));

                req.ContentType =

"application/x-www-form-urlencoded";

                req.Method =

"POST";

               

// Add parameters to post

               

byte[] data = System.Text.Encoding.ASCII.GetBytes(Parameters);

                req.ContentLength = data.Length;

                System.IO.

Stream os = req.GetRequestStream();

                os.Write(data, 0, data.Length);

                os.Close();

               

// Do the post and get the response.

                System.Net.

WebResponse resp = req.GetResponse();

               

if (resp == null) returnnull;

                sr =

new System.IO.StreamReader(resp.GetResponseStream());

            }

 

Please let me know if anything mistake in my code

 

Regards,

Keyur Patel

Hello,

 

We are trying to dynamically invoke salesforce webservice without adding webreference in C#.Net. Our requirement is generate proxy based on salesforce wsdl and return method name, service name and out put automatically.

 

I am expecting same like in following URL : http://www.crowsprogramming.com/archives/66

 

We are passing following web request in c#. Net code.
====================================================
HttpWebRequest client = (HttpWebRequest)HttpWebRequest.Create("https://servername/services/wsdl/class/WebServiceName" + "?wsdl");
client.Credentials = new NetworkCredential("xyz@company.com", "test1uHN46qCxXomWqfRcEupLW9cg");
client.Method = "POST";

//client.ContentType = "application/x-www-form-urlencoded";
client.Headers.Add("Authorization" , "Basic " + loginResult.sessionId);
client.Headers.Add("SOAPAction", "");
client.ContentType = "text/xml;charset=\"utf-8\"";

HttpWebResponse wres = (HttpWebResponse)client.GetResponse();
XmlTextReader xmlreader = new XmlTextReader(wres.GetResponseStream());
serviceDescription = ServiceDescription.Read(xmlreader);
====================================================
We are getting following errors.

 

An error has occurred while opening external DTD 'http://www.w3.org/TR/html4/loose.dtd': The remote server returned an error: (500) Internal Server Error."}

 

How can i resolve this error?

Hello,

 

We are trying to dynamically invoke salesforce webservice without adding webreference in C#.Net. Our requirement is generate proxy  based on salesforce wsdl and return method name, service name and out put automatically.

 

I am expecting same like in following URL : http://www.crowsprogramming.com/archives/66

 

We are passing following web request in c#. Net code. 

====================================================

HttpWebRequest client = (HttpWebRequest)HttpWebRequest.Create("https://servername/services/wsdl/class/WebServiceName" + "?wsdl");
client.Credentials = new NetworkCredential("xyz@company.com", "test1uHN46qCxXomWqfRcEupLW9cg");
client.Method = "POST";

//client.ContentType = "application/x-www-form-urlencoded";
client.Headers.Add("Authorization" , "Basic " + loginResult.sessionId);
client.Headers.Add("SOAPAction", "");
client.ContentType = "text/xml;charset=\"utf-8\"";

 

HttpWebResponse wres = (HttpWebResponse)client.GetResponse();

XmlTextReader xmlreader = new XmlTextReader(wres.GetResponseStream());

serviceDescription = ServiceDescription.Read(xmlreader);

====================================================

We are getting following errors.

 

An error has occurred while opening external DTD 'http://www.w3.org/TR/html4/loose.dtd':  The remote server returned an error: (500) Internal Server Error."}

 

How can i resolve this error?

Hi,

 

I got following issue while share selected slides or active work book in chatter with .Net. We are integrated chatter with our .Net application.

 

Error : 

{\"message\":\"ContentDocument is not enabled for feed items of type ContentPost\",\"errorCode\":\"INVALID_FIELD\"}

 

Here is my code.

=================================

byte[] boundarybytes = System.Text.Encoding.ASCII.GetBytes("\r\n--" + Boundary + "\r\n");

HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(url);
if (this.Proxy != null)
wr.Proxy = this.Proxy;
wr.Timeout = 600000; // 10 minutes
wr.ContentType = ContentType + "; boundary=" + Boundary;
wr.Method = "POST";
wr.KeepAlive = true;
wr.ServicePoint.Expect100Continue = false;
wr.Headers.Add("Authorization: OAuth " + sessionId);
Stream rs = wr.GetRequestStream();

byte[] partBytes;
foreach (HttpMultipartRequestPart part in parts)
{
rs.Write(boundarybytes, 0, boundarybytes.Length);
partBytes = System.Text.Encoding.UTF8.GetBytes(part.ToString());
rs.Write(partBytes, 0, partBytes.Length);

if (part.BodyType == HttpMultipartRequestPart.BODY_TYPE_FILE)
part.WriteFile(rs);
else if (part.BodyType == HttpMultipartRequestPart.BODY_TYPE_BYTES)
part.WriteBytes(rs);
}

byte[] trailer = System.Text.Encoding.ASCII.GetBytes("\r\n--" + Boundary + "--\r\n");
rs.Write(trailer, 0, trailer.Length);
rs.Close();

 

Please help me to short out this issue.

 

Regards,

Keyur Patel

Hi guys!!

I have created the custom object from the C# code into sales force, now I want to show the details of that Custom object on my application like Custom object name, label, description I got some solution regarding that "describeobject" but its don't have any property like description,, created by and modified by how I can do that,, I want load all the fields which saleforce shows in its UI.

 

 

thanks in Advance

Does anyone know of a C# based version of the CTI Demo Adapter ?

 

I'm totally not a C++ guy, and I'll need to customize it somewhat (addiotnal right click menu options and screens etc.).

 

Thanks,

 

Barry

Hi  dev,

 

i have a scenario to update an lookup data type field using a string value . can anybody give me the idea / snippet. below i have pasted my code and also the error occur in the result of update function

 

Update = new Account[dtUpdate.Rows.Count];

UpdateItem.Id = Convert.ToString(dtUpdate.Rows[row]["Id"]);

UpdateItem.Tax_Schedule_Name__c = Convert.ToString(dtUpdate.Rows[row]["Tax_Schedule_Name__c"]);   LOOKUP FIELD

UpdateItem.Customer_ID__c = Convert.ToString(dtUpdate.Rows[row]["Customer_ID__c"]);

Update[row] = UpdateItem;

UpdateResult = SFService.update(Update);

 

Error Msg : The Update failed for above record because: Tax Schedule Name: id value of incorrect type: ABC SALES

 

"ABC SALES " IS THE VALUE I AM ASSIGNING TO IT AND ALSO THAT VALUE EXISTS IN THE TAX MASTER TABLE

Hi,

 

I am begineer in sales force development. Could you please explain the steps to bind a gridview from sales force contacts object?

 

Thanks in advance.

  • April 17, 2013
  • Like
  • 0

I want to pass a field in the query string from asp .net to Apex . I want to encrypt the value of the field and then pass it in the query string. I am not sure how to approach this, are there any example code /links for same ? Basically i want to encrypt in C# and decrypt using Apex.

 

Hi all, Is it possible to send an email as a pdf to user? how?

  • April 15, 2013
  • Like
  • 0

Hi all,
I am beginning with salesforce, I'm trying integrate app .net with salesforce,
My app show a error like this:
Please help me.

 

Server Error in '/TravelShop' Application.


Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 84: { Line 85: Line 86: txtAddress.Text = getLeadInfoResponse.City.ToString(); Line 87: txtState.Text = getLeadInfoResponse.State.ToString(); Line 88: txtZip.Text = getLeadInfoResponse.PostalCode.ToString();


  • April 04, 2013
  • Like
  • 0

Hey everyone,

 

Hello SalesForce World, first time posting!

 

I am working on a User Management C# service from our internal systems to SalesForce. 

 

I wanted to bring back the ID, Name values for sObjects using a generic function that returned the  value pair. But I wanted to just pass the sObject type as a string to a function that returns the key pair values. 

 

Has anyone done this before? I really haven't found a way myself to create an sObject with a string parameter.

 

Richard. D. James

I have managed to get feed item to all user in chatter.

 

My requirement is to send feeds as private.

 

Any ideas...!!

  • March 26, 2013
  • Like
  • 0

Hi there,

Has anyone encoded a file into base64binary in C#? I have requirement to attach a file to leads through a external site.

 

Has anyone got experience in this, if so can you please share?

 

Thanks

Manohar

Enabled and configure Chatter Answer in Customer Portal.

Chatter Answer tab is viisble in Customer portal but while clicking chatter answer tab below error is coming.

 

"Insufficient Privileges

You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. "

 

I have verified with user, user profile, Chatter answet setting but unable to find where is the permission setting is there.

Can any body help me on it.

Hi Everyone,

 

Does salesforce provide any .net sample project/code for the Salesforce Bulk API? If anyone have any sample, Please share it.

 

Thanks,

NK

  • May 30, 2012
  • Like
  • 0

Is there a way to view all of the chatter private messages by using the Apex Data Loader?

  • April 25, 2012
  • Like
  • 0