salesforce

unterminated string literal error in salesforce

匆匆过客 提交于 2020-01-25 02:52:08
问题 I am trying to get a value from salesforce class into a javascript variable. I am able to get the value if its a single line value, but if its multiline textarea it gives a unterminated string literal error caseUpdate.Description = "{!ac__c.C_Info__c}"; After googling for sometime i came to know we can have a workaround for this by having a hidden field and using DOM storing it using the document.getElement.Id. But i am calling this code on a button click so i would not be able to create a

Salesforce Bulk Job CSV Upload via Google Apps Script UrlFetchApp

梦想的初衷 提交于 2020-01-25 00:25:10
问题 I'm attempting to use Google Apps Script to access Salesforce's Bulk API 2.0 and upload the CSV data to a job, however Salesfore is returning [{"errorCode":"METHOD_NOT_ALLOWED","message":"HTTP Method 'GET' not allowed. Allowed are PUT"}] Given my experience with the Salesforce API, I highly doubt the issue is actually with the method type, but that there is some other validation which is causing this error. However, upon inspection of the request body and comparing it to what I successfully

In Visualforce pages, is it possible to use the command line in the Firebug console?

与世无争的帅哥 提交于 2020-01-24 20:43:07
问题 On Visualforce pages, commands run in the Firebug console command line don't seem to work. For example $(".myClass").show(); returns TypeError: $(".moreInfo") is null . I think this is because the Visualforce is all inside an iframe, so my jQuery is included inside the iframe and all the elements I'm trying to select are also inside this iframe. I'm looking for a workaround if anyone knows of one. 回答1: If the user viewing the Visualforce page is in development mode, the Visualforce page will

Call a apex method from a custom button

末鹿安然 提交于 2020-01-17 08:43:13
问题 i want to call a apex method from a custom Button I realise we can achieve this 2 ways Calling a VF page which in turn calls the method on the page attribute <apex:page standardController="Opportunity" extensions="oppExt" action="{!changeStatus}"/> use javascript to call the webservices method The question i have is on the which is best practice to it for this scenario. Thanks 回答1: It depends on your use case. The API supports both Controllers and Extensions and JavaScript Remoting or

Salesforce Api implementation on iPhone

﹥>﹥吖頭↗ 提交于 2020-01-17 07:12:35
问题 I am implementing salesforce api in my project. I downloaded code from the below link https://github.com/developerforce/Force.com-Toolkit-for-iOS But the problem is that i want this api on iPhone not on iPad. When i am going to convert it on iPhone. I am fail. It is typical to convert it because of difference of code like split view etc. I dont want split view just simple api. If you guys source code of it then share. Thanks. (Note: I am using xcode not phonegap) 回答1: I think you're confusing

How to send multiple documents for signature DocuSign for Salesforce

為{幸葍}努か 提交于 2020-01-17 05:43:09
问题 Please can someone assist me. I am new to DocuSign. I have a project I am working on whereby the customer wants to be able to send multiple documents to a recipient for signature. From the standard DocuSign set up, you can add documents upon envelope creation but I am looking for a way to automate this. For instance I created a custom button that automatically sends the envelope to a recepient. But it seems I can only add one document template there. Could someone please advise me on what to

Unsupported Grant Type Salesforce OAUTH2

南楼画角 提交于 2020-01-16 18:21:30
问题 I am using VBA to get authorization in Salesforce and then ultimately want to run a Salesforce report and dump the results in Excel. I have written the following to handle the authorization, but I am getting an unsupported_grant_type error. The code I have so far: Dim XMLHTTP As New MSXML2.XMLHTTP60 Dim username As String Dim password As String Dim PasswordnUsername As String Dim argumentString As String username = "myUsername" password = "myPassword" PasswordnUsername = password & ":" &

CSS Modal window and iFrame

两盒软妹~` 提交于 2020-01-15 10:59:12
问题 The following CSS opens a modal window within the iframe as it should. But I would like the modal popup to overlay the parent and not just within the ifram. Is there a way to modify the CSS to get the popup to overlay the parent? Just as a side note, the id of the iFrame may change, so I won't be able to rely on a specific id. All suggestions are appreciated, I'd even consider another tool such as javascript. <iframe frameborder="no" height="200px" id="066E0000001KmQ9" marginheight="0"

Salesforce(apex) Query select with Where toLowerCase

大城市里の小女人 提交于 2020-01-15 05:56:08
问题 I using Salesforce (apex), I need to Query with a WHERE statement with toLowerCase ,i.e. I have a list (MyNames_list) with LowerCase values but the table values are not lowerCase. In my Query when I check the Name in MyNames_list it will make toLowerCase value and then check it in the MyNames_list. Something like this: Name | LastName BOBY | Testovich1 DANY | Testovich2 Ron | Testovich3 and in my list: MyNames_list :boby,dany,ron That still will return me all rows, because WHERE statement

[转帖]曝谷歌或2500亿美元天价收购Salesforce!AWS霸主难保?

白昼怎懂夜的黑 提交于 2020-01-13 23:08:44
曝谷歌或2500亿美元天价收购Salesforce!AWS霸主难保? https://mp.weixin.qq.com/s/ZeBckg4CVn2Uuxli6T_5hA    【新智元导读】 谷歌又出大手笔,欲 2500 亿美元收购 Saleforce,谷歌希望通过这笔并购一改云业务上的颓势,一举超过微软 Azure,直逼亚马逊 AWS,稳稳坐上世界第二的位置。   谷歌又出大手笔收购,这次的目标是 CRM 巨头 Salesforce,看重的正是后者蓬勃增长的云业务。收购额可能高达 2500 亿美元。   2019 年底,谷歌云平台内部的高管对其工程师和开发人员提出了相当严峻的挑战:公开声明谷歌不仅希望在 2023 年之前巩固其在最大竞争对手中的市场地位,同时预计花费三年时间来击败云计算巨头 AWS 和 Azure。   就目前而言,在不断增长的云市场中, AWS 保持了最大份额,约占可用市场份额的 47%; 而微软的 Azure 则紧随其后,占 16% 的份额。 二者均远远甩开了只占了4% 市场份额的谷歌。   但是,目前有猜测称,谷歌云首席执行官托马斯·库里安(Thomas Kurian)可能会一直坚持其看似宏大的预测,并可能寻求收购行业领先的 CRM 服务提供商 Salesforce,以此来加速谷歌云计算部门的发展。   尽管有新报告强调了在不久的将来,微软 Azure