[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Salesforce

217

Solutions

377

Contributors

Salesforce is a Platform as a Service (PaaS) for cloud-based customer resource management that includes components for case and task management, data management and a help desk system. It also includes systems for add-on applications written in Apex, a proprietary Java-like language, and systems for human resources management, employee training and performance management.

Share tech news, updates, or what's on your mind.

Sign up to Post

SELECT id, True as "Active"  FROM Name LIMIT 1
 
I want to do this in sales force. How we do that.
0
JavaScript Best Practices
LVL 12
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

Hi Experts,
My getting following Error Message

"ie.Message      "Object reference not set to an instance of an object."      string"

Any help appriciated.
See my code below

public class SalesRecords
    {

        public List<salesProp> data { get; set; }

    }




  public class salesProp
    {
        public string Name { get; set; }  
    }  





    var  restunVal1=response.Content.ReadAsStringAsync().Result;

   SalesRecords  sr = new System.Web.Script.Serialization.JavaScriptSerializer().Deserialize<SalesRecords>(restunVal1);

                     foreach (var item in sr.data)
                     {
                         Console.WriteLine("id: {0}",item.Name);
                     }





JSON output like this
"{\n  \"totalSize\" : 1,\n  \"done\" : true,\n  \"records\" : [ {\n    \"attributes\" : {\n      \"type\" : \"Account\",\n      \"url\" : \"/services/data/v40.0/sobjects/Account/0011q000007ZPL3AAO\"\n    },\n    \"Name\" : \"Test\"\n  } ]\n}"
0
How to write the Apex test class for ConnectApi.Wave.executeQuery?
0
Using APEX how can I filter json and remove everything except records tag.

json = {
   "records":[
      {
         "Location":"US",
        "RecordType":"Fruits",
         "Productid":123,
         "Qtry":5,
         "Name":"Apple"
      },
      {
         "Location":"UK",
         "RecordType":"Fruits",
         "Productid":124,
         "Qtry":11,
         "Name":"Bananna"
      }
  ],
   "Data":[
      {
         "Location":"US",
        "RecordType":"Fruits",
         "Productid":123,
         "Qtry":5,
         "Name":"Apple"
      },
      {
         "Location":"UK",
         "RecordType":"Fruits",
         "Productid":124,
         "Qtry":11,
         "Name":"Bananna"
      }
   ]
}


string updatedjson =  json.records  only
0
Hi,

We using Salesforce with this link : https://contoso.my.salesforce.com
We have ADFS 2.0 to use the SSO on Salesforce.

ADFS 2.0 is configured to be IWA.

Problem is, on the mobile app, Salesforce for IOS or Android doesn't allow IWA (NTLM) connection. It only accept FBA.

How can I configure my ADFS or another thing to stay IWA for internal users and FBA for external users (from mobile).

Thanks in advance
0
Xls file opens extremely slowly.  This started about two weeks ago.  Staff have Office 2013 and Xlsx files open quickly as they usually do. However since about two weeks ago, the Xls file exported from Salesforce (they don't support xlsx) now takes several minutes to open and does not contain a large number of rows.  Running a repair does not resolve the issue. However, if we wait for the xls file to open and then save it as an xlsx it will open quickly as it should.

Windows updates were deployed two weeks prior to this behavior and the same types of files have been opened without issues since that time until recently. This issue occurs on any PC with Excel 2010/2013.  Does anyone have a solution to this?
0
Experts, Hi

I need step by step setup instructions on HOWTO filter on systemmodstamp column on a Salesforce object initiated by Informatica.
An informatica parameter file will supply values for systemmodstamp.
An alternate method to param file is also okay; so long I am pulling new/modified sfdc records.

Thanks in advance.
0
Salesforce use 15 character unique IDs, but also have a 18 character version of the ID.
There is an algorithm to convert from the 15 chars to the 19 chars, as explained here. https://salesforce.stackexchange.com/questions/1653/what-are-salesforce-ids-composed-of

I am looking for a Google Sheets or a Javascript function that accepts a 15 character ID and converts it to a 19 character ID using that algorithm.
0
Salesforce Lightning Action - email action not showing up

Tried the option in the link still its not showing up - https://success.salesforce.com/answers?id=9063A000000l2DkQAI
0
We are looking to put in both Service Now and Salesforce (SFDC), and need a SSO solution that fits in with both of those, and AD.

I have been looking at ADFS for SAML for SN and SFDC as we already have that setup for our intranet, but was wondering how it works in real life, and how much work is involved in using our existing ADFS setup?

i wasn't involved in the setup of the current ADFS, and have no wish to break it.

Thanks

Phil
0
Become a Microsoft Certified Solutions Expert
LVL 12
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Hello,

We want to insert clients information into salseforce.
We have all the information in an SQL Server database.
We want to use ssis to update the data in SalesForce in a daily basis.

We don't want to purshase any toolkit or ready to use component.

Can I find any  step by step tutorial to do so ? I came across some tutorials suggesting webservice option, but It didn't work in my case because of my poor knowlege in Webservices.

Any help is apprecited.

Thanks
Salma
0
I am using parser.zapier.com to "attempt to parse an email but the data in the form isn't being recognized. Any ideas? I need to set up a mail forwarder, parse, then use zapier or equivivalent to add to salesforce.

form in email to forward
after. No Bob Smith

Capture2.PNG
0
Dear Experts

We are using sales force automation sales force.com for the marketing, sales and customer support with multi channel integrations  like CTI, online chat, web2lead, face book, etc and campaign management , lead routing auto and manual , email
 marketing , opportunity management, activity management I have done the implementation and my designation is VP Sales force automation, I would like to prepare the detailed job description and provide to the management ,  sales force administration, and training please list the detailed job description so that this will be very much helpful, thanks in advance.
0
I have a long text field in Salesforce form and using Regex to validate the duplicate entries.

For example my entries are - TESTP1, TESTP2, TESTP1,

I need a regex to identify the duplicate value TESTP1.

I need to use one regex expression to have this validated.
0
Hi All,

I am having issues with testing my amazon echo Salesforce integration. I currently have two features that I need to app to do. First to search an account in the system and next to insert a custom object record into the system. I am able to query a record from the system without any issues. However I am unable to insert a custom object record into the system. I have the app set up that it should come back with any errors that happen during the insert process. When I try to run the process I run into the issue that the app says that the record was created in the system but when I look at the system I don't see the record. I have tried everything I can think of but I can't seem to find a solution. Has anyone ever run into a similar issue? If you have can you point me in the right direction so I can test to make sure everything is working correctly.

Thank you,
Dan
0
My nonprofit organization in Los Angeles is ready to migrate our current Microsoft Access database to the Salesforce and NPSP platform. I have received SOWs from three Salesforce recommended implementers, and, while I'm certain they all are very competent I don't want to break my budget for this project. Can anyone recommend an alternative company that would be able to handle this migration?  No de-duping or data cleaning is necessary as these processes have been completed.
0
 Dim path_original As String = "C:\Booking Number\Accounts\Epicor Invoices\Source\"
    Dim path_error As String = "C:\Booking Number\Accounts\Epicor Invoices\Error\"
    Dim path_success As String = "C:\Booking Number\Accounts\Epicor Invoices\Completed\"

    Dim parentId
    Dim directoryName As New DirectoryInfo(path_original)
    Dim dirFileName As IO.FileInfo() = directoryName.GetFiles()
    Dim fsize = dirFileName.Length
    'Console.WriteLine(fsize)
    If (fsize > 0) Then
        Dim dirReadFileName As IO.FileInfo
        Dim logFileName As String = String.Format("log{0}.txt", Now.ToString("MMddyyyy_hhmmss"))
        Using w As StreamWriter = File.AppendText("C:\Booking Number\Accounts\Epicor Invoices\logs\" + logFileName)
            Dim sobj As SFDC.SforceService = New SFDC.SforceService
            Try
                Dim lr As SFDC.LoginResult = sobj.login("username", "password")
                sobj.SessionHeaderValue = New SFDC.SessionHeader
                sobj.SessionHeaderValue.sessionId = lr.sessionId
                sobj.Url = lr.serverUrl
                'Dim sobject As WebReference.sObject = New WebReference.sObject
                Console.WriteLine(sobj.Url)
            Catch ex As Exception
                Console.WriteLine(ex.Message)
            End Try
            For Each dirReadFileName In dirFileName
                Try
                    Dim attachment As SFDC.Attachment = New SFDC.Attachment
                    Dim filenames = 

Open in new window

0
I am actually trying to implement text-to-speech conversion in Salesforce by hitting a third-party api.

When i send the request through Postman, i get back the proper response in .wav format. However, I'm not being able to handle this reponse programatically in salesforce end, as I am not able to store the response in any audio object.

Any assistance would be greatly appreciated.

Thanks in advance.
Abhishek.
0
I've attempted unsuccessfully to upload a file from apex code to my AWS S3 instance.  I receive the following error:

The request signature we calculated does not match the signature you provided. Check your key and signing method.

I've confirmed that both the Key and Secret are correct (tested successfully requesting a url for an existing file in the bucket), so I'm assuming the issue must be the way I am forming the signature for this particular request:

 String formattednow = System.now().formatGmt('EEE, dd MMM yyyy HH:mm:ss Z');

  String stringToSign = 'PUT\n\n' + 'application/pdf' + '\n'+formattednow+'\n/'+ 'bucketname' +'/'+ 'testFile.pdf';     

  Blob file = Blob.toPDF('Testing string to pdf.');

  HttpRequest req = new HttpRequest(); 

  String signature = make_sig(stringtosign);

  req.setMethod('PUT');
  req.setHeader('Authorization', 'AWS ' + awsKey.Key__c + ':' + signature);
  req.setHeader('Content-Type','application/pdf');
  req.setHeader('Content-Length',String.valueOf(file.size())  );
  req.setHeader('Date', formattednow);
  req.setEndpoint('https://s3.amazonaws.com/' );   
  req.setBody( EncodingUtil.base64Encode(file) );

  Http http = new Http();
  HTTPResponse res = http.send(req);

Open in new window


Where am I going wrong? Any help will be greatly appreciated!  A fix using AWS Signature V4 would also work.

P.S. The make_sig function:
	private static String make_sig(string canonicalBuffer) {
		String macUrl ;
		String signingKey = EncodingUtil.base64Encode(Blob.valueOf(awsKey.Secret__c));
		Blob mac = Crypto.generateMac('HMacSHA1', blob.valueof(canonicalBuffer),blob.valueof(awsKey.Secret__c)); 
		macUrl = EncodingUtil.base64Encode(mac);
		return macUrl;
	}

Open in new window

0
I am a network engineer who has been tasked with rolling out a backup service for our Salesforce account and have been looking at three vendors with the assistance of our (non-IT) salesforce administrator.  This is a system that he will administer; I'm just involved to do the due diligence.

His preference is Spanning, although he also likes Backupify.  Between the two, he's stated that he'd be completely okay with either product.  We've also looked at OwnBackup.  Our salesforce admin says he could certainly "live with" OwnBackup and I shouldn't refrain from choosing them if I thought they were better, but he likes the other two better.

The sales reps from all three vendors have stated that their product is the only one that will restore all data (including metadata, related records, etc.), and that using one of the others may potentially result in significant disruption to our environment in the event of a problem.

For my part, I am only concerned with three things.  First, we need an indefinite retention period.  My team isn't yet certain what our legal requirements will be in that regard (the company is expanding rapidly, and adding offices nationwide), and we'd prefer to not have to worry about it.  Second, we want to ensure that any data transmission is encrypted (obviously).  Third, we want to ensure that any restoration actually works.  Normally, I wouldn't bother saying that third point as it would seem obvious, but each of these vendors is saying that this is not …
1

Salesforce

217

Solutions

377

Contributors

Salesforce is a Platform as a Service (PaaS) for cloud-based customer resource management that includes components for case and task management, data management and a help desk system. It also includes systems for add-on applications written in Apex, a proprietary Java-like language, and systems for human resources management, employee training and performance management.

Top Experts In
Salesforce
<
Monthly
>