• wfresch
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
I'm attempting to complete the Trailhead lesson at this URL - https://developer.salesforce.com/trailhead/en/heroku_enterprise_baiscs/your_first_deployment (yes, basics is misspelled in the url).

This command doesn't work:
heroku ps:scale web=0 -a <your app’s name>

I'm using the correct app name, but it says, "Couldn't find that formation".
 

I've seen this example to build and send an attachment to Salesforce in Java, but how is this accomplished in C#?

 

I'm also using this page as a reference, but I still don't know how to finish the last part where I try to create and save the attachment.

 

SoapClient client =newSoapClient();
LoginResult lr = client.login(newLoginScopeHeader(), username, password);

FileInfo
fileInfo =newFileInfo(myFileLocation);
FileStream stream =File.OpenRead(myFileLocation);
byte[] byteArray =newbyte[fileInfo.Length];
stream.Read(byteArray,0, byteArray.Length);

Attachment
attachment =newAttachment();
attachment.Body= byteArray;attachment.Name= myFileName +".txt";attachment.IsPrivate=false;

SaveResult saveResult = client.create(new sObject[]{ attachment })[0];
 

I've seen this example to build and send an attachment to Salesforce in Java, but how is this accomplished in C#?

 

I'm also using this page as a reference, but I still don't know how to finish the last part where I try to create and save the attachment.

 

SoapClient client =newSoapClient();
LoginResult lr = client.login(newLoginScopeHeader(), username, password);

FileInfo
fileInfo =newFileInfo(myFileLocation);
FileStream stream =File.OpenRead(myFileLocation);
byte[] byteArray =newbyte[fileInfo.Length];
stream.Read(byteArray,0, byteArray.Length);

Attachment
attachment =newAttachment();
attachment.Body= byteArray;attachment.Name= myFileName +".txt";attachment.IsPrivate=false;

SaveResult saveResult = client.create(new sObject[]{ attachment })[0];