- learn1.3947400898749973E12
- NEWBIE
- 10 Points
- Member since 2014
-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
2Likes Given
-
10Questions
-
10Replies
JS button not working as expected why
I created a JS button to update a hidden check box and validate a checkbox. But i get the below error
Invalid or Unexpected token error
Invalid or Unexpected token error
{!REQUIRESCRIPT("/soap/ajax/31.0/connection.js")} var myquery = "SELECT Id,Hidden_Checkbox__c,Acct_Has_Oracle_Acct__c FROM SBQQ__Quote__c WHERE Id = '{!SBQQ__Quote__c.Id}' limit 1"; result = sforce.connection.query(myquery); records = result.getArray("records"); var myOpp = records[0]; var updateOpp = new Array(); var myValRev = myOpp.Hidden_Checkbox__c; var myValRev2 = myOpp.Acct_Has_Oracle_Acct__c; if(myValRev2 == 'false'){ alert('Oracle Account number is blank); } if(myValRev == 'true'){ myOpp.Hidden_Checkbox__c=false; } else { myOpp.Hidden_Checkbox__c=true; } updateOpp.push(myOpp); result = sforce.connection.update(updateOpp); if(result[0].getBoolean("success")){ window.location = "/" + "{!SBQQ__Quote__c.Id}"; }else{ alert('Could not Export : '+result); }
- learn1.3947400898749973E12
- January 15, 2019
- Like
- 0
validation rule not working as expected
There is urgent requirement .
The rule should see the Account_Shipping_Country__c and ProductCode__c of the related quote line and check the value in object Shipping_Restriction__c , If yes we need to alert the user.
I created the below rule but it triggers for all the condition, not sure why this is not working
AND(
(SBQQ__Quote__r.Account_Shipping_Country__c <> $ObjectType.Shipping_Restriction__c.Fields.Country_Code__c )
,(SBQQ__Product__r.ProductCode__c<> $ObjectType.Shipping_Restriction__c.Fields.Item_Number__c
)
)
The rule should see the Account_Shipping_Country__c and ProductCode__c of the related quote line and check the value in object Shipping_Restriction__c , If yes we need to alert the user.
I created the below rule but it triggers for all the condition, not sure why this is not working
AND(
(SBQQ__Quote__r.Account_Shipping_Country__c <> $ObjectType.Shipping_Restriction__c.Fields.Country_Code__c )
,(SBQQ__Product__r.ProductCode__c<> $ObjectType.Shipping_Restriction__c.Fields.Item_Number__c
)
)
- learn1.3947400898749973E12
- January 12, 2019
- Like
- 0
How to disable button based on a condition
{!REQUIRESCRIPT("/soap/ajax/31.0/connection.js")} var myquery = "SELECT Id,Hidden_Checkbox__c FROM SBQQ__Quote__c WHERE Id = '{!SBQQ__Quote__c.Id}' limit 1"; result = sforce.connection.query(myquery); records = result.getArray("records"); var myOpp = records[0]; var updateOpp = new Array(); var myValRev = myOpp.Hidden_Checkbox__c; if(myValRev == 'true'){ myOpp.Hidden_Checkbox__c=false; } else { myOpp.Hidden_Checkbox__c=true; } updateOpp.push(myOpp); result = sforce.connection.update(updateOpp); if(result[0].getBoolean("success")){ window.location = "/" + "{!SBQQ__Quote__c.Id}"; }else{ alert('Could not Export : '+result); }
Hi I have created a custom button to update a check box at Quote.This button should be inactive if there is no value at 'Oracle Account Number' field.
For Classic View I created JS button, But I am not sure how to make the disable button based on a condition. This is urgent reequirement, any input is appreciated
- learn1.3947400898749973E12
- January 04, 2019
- Like
- 0
create a button to update a check box and button should work for both Classic and lightning
I need to create a button that should be update the checkbox and the button should be visible based on a field value. I created the JS button but it didnt work in Lightning. I am new to lightning, Can anyone help me to handle this scenario
{!REQUIRESCRIPT("/soap/ajax/31.0/connection.js")}
var myquery = "SELECT Id,Hidden_Checkbox__c FROM SBQQ__Quote__c WHERE Id = '{!SBQQ__Quote__c.Id}' limit 1";
result = sforce.connection.query(myquery);
records = result.getArray("records");
var myOpp = records[0];
var updateOpp = new Array();
var myValRev = myOpp.Hidden_Checkbox__c;
if(myValRev == 'true'){
myOpp.Hidden_Checkbox__c=false;
}
else
{
myOpp.Hidden_Checkbox__c=true;
}
updateOpp.push(myOpp);
result = sforce.connection.update(updateOpp);
if(result[0].getBoolean("success")){
window.location = "/" + "{!SBQQ__Quote__c.Id}";
}else{
alert('Could not Export : '+result);
}
{!REQUIRESCRIPT("/soap/ajax/31.0/connection.js")}
var myquery = "SELECT Id,Hidden_Checkbox__c FROM SBQQ__Quote__c WHERE Id = '{!SBQQ__Quote__c.Id}' limit 1";
result = sforce.connection.query(myquery);
records = result.getArray("records");
var myOpp = records[0];
var updateOpp = new Array();
var myValRev = myOpp.Hidden_Checkbox__c;
if(myValRev == 'true'){
myOpp.Hidden_Checkbox__c=false;
}
else
{
myOpp.Hidden_Checkbox__c=true;
}
updateOpp.push(myOpp);
result = sforce.connection.update(updateOpp);
if(result[0].getBoolean("success")){
window.location = "/" + "{!SBQQ__Quote__c.Id}";
}else{
alert('Could not Export : '+result);
}
- learn1.3947400898749973E12
- January 02, 2019
- Like
- 0
for loop checks only the last record not the entire scope why
I am trying to update checkbox at Quote when price field at quote line items are not null. But the actual challenge is that the for loop checks only the last record not the entire scope. I mean the iteration of records not happening. Can someone pls give me some insight on this.
global class update_Quote_Chekbox implements Database.Batchable<sObject>,Database.Stateful { global List<Id> QuotelineId = new List<Id>(); global update_Quote_Chekbox(List<Id> qlid) { QuotelineId = qlid; //get the quote Id from the Quote LIne Item via trigger after record system.debug('The qlid inside batch is'+qlid); } global Database.QueryLocator start(Database.BatchableContext BC) { string query= 'select SBQQ__Quote__c,SBQQ__ListPrice__c,SBQQ__Quote__r.Oracle_Pricing_Complete__c from SBQQ__QuoteLine__c where SBQQ__Quote__c in :QuotelineId'; return Database.getQueryLocator(query); } global void execute(Database.BatchableContext BC, List<sObject> scope) { for(Sobject s : scope) { SBQQ__QuoteLine__c lstAct = (SBQQ__QuoteLine__c)s; system.debug('The scope is'+lstAct ); if(lstAct.SBQQ__ListPrice__c!=NUll) { lstAct.SBQQ__Quote__r.Oracle_Pricing_Complete__c=true; // system.debug('The query is'+acr.Oracle_Pricing_Complete__c); update lstAct.SBQQ__Quote__r; } else{ lstAct.SBQQ__Quote__r.Oracle_Pricing_Complete__c=false; update lstAct.SBQQ__Quote__r; } } } global void finish(Database.BatchableContext BC) { } }
- learn1.3947400898749973E12
- December 31, 2019
- Like
- 0
execute trigger in a batch
Hi,
I have a urgent requirement where If all the line items for a quote are successfully priced, the quote is updated with the checkbox set to true. I need need to update batch apex via trigger. I have written a trigger and I need more insight on how should I handle via batch
I have a urgent requirement where If all the line items for a quote are successfully priced, the quote is updated with the checkbox set to true. I need need to update batch apex via trigger. I have written a trigger and I need more insight on how should I handle via batch
- learn1.3947400898749973E12
- December 24, 2018
- Like
- 0
API output showing contradicting results for Records and __last_response
I sent a query through rest API, and output that came for Records Element doesn't have the "Name" field, but the "__last_response" has the "Name" field, it quite weird. I'm parsing the Records to extract the data and in this scenario, I'm missing "Name" field.
Not - if I increase the limit to 50 , then Name field comes for some Accounts inside the Records as well for the same query.
[queryLocator] => [done] => 1 [records] => Array ( [0] => stdClass Object ( [type] => Account [Id] => Array ( [0] => 001i0000008ES3hAAG [1] => 001i0000008ES3hAAG ) [any] => Array ( [0] => stdClass Object ( [latitude] => [longitude] => [city] => Mountain View [country] => [countryCode] => [postalCode] => [state] => CA [stateCode] => [street] => 345 Shoreline Park Mountain View, CA 94043 USA ) [BillingAddress] => stdClass Object ( [latitude] => [longitude] => [city] => Mountain View [country] => [countryCode] => [postalCode] => [state] => CA [stateCode] => [street] => 345 Shoreline Park Mountain View, CA 94043 USA ) [1] => <sf:ShippingStreet>345 Shoreline Park Mountain View, CA 94043 USA</sf:ShippingStreet><sf:ShippingCity xsi:nil="true"/><sf:ShippingState xsi:nil="true"/><sf:ShippingPostalCode xsi:nil="true"/><sf:ShippingCountry xsi:nil="true"/><sf:ShippingLatitude xsi:nil="true"/><sf:ShippingLongitude xsi:nil="true"/> [ShippingAddress] => stdClass Object ( [latitude] => [longitude] => [city] => [country] => [countryCode] => [postalCode] => [state] => [stateCode] => [street] => 345 Shoreline Park Mountain View, CA 94043 USA ) [2] => <sf:Phone>(650) 867-3450</sf:Phone><sf:Fax>(650) 867-9895</sf:Fax><sf:AccountNumber>CC978213</sf:AccountNumber><sf:Website>www.genepoint.com</sf:Website><sf:PhotoUrl>/services/images/photo/001i0000008ES3hAAG</sf:PhotoUrl><sf:Sic>3712</sf:Sic><sf:Industry>Biotechnology</sf:Industry><sf:AnnualRevenue>3.0E7</sf:AnnualRevenue><sf:NumberOfEmployees>265</sf:NumberOfEmployees><sf:Ownership>Public</sf:Ownership><sf:TickerSymbol xsi:nil="true"/><sf:Description>Genomics company engaged in mapping and sequencing of the human genome and developing gene-based drugs</sf:Description><sf:Rating>Cold</sf:Rating><sf:Site xsi:nil="true"/><sf:OwnerId>005i0000000OAO9AAO</sf:OwnerId><sf:CreatedDate>2013-05-06T01:55:17.000Z</sf:CreatedDate><sf:CreatedById>005i0000000OAO9AAO</sf:CreatedById><sf:LastModifiedDate>2016-04-08T15:41:52.000Z</sf:LastModifiedDate><sf:LastModifiedById>005i0000000OAO9AAO</sf:LastModifiedById><sf:SystemModstamp>2016-04-08T15:41:52.000Z</sf:SystemModstamp><sf:LastActivityDate xsi:nil="true"/><sf:LastViewedDate>2016-04-08T15:43:12.000Z</sf:LastViewedDate><sf:LastReferencedDate>2016-04-08T15:43:12.000Z</sf:LastReferencedDate><sf:Jigsaw xsi:nil="true"/><sf:JigsawCompanyId xsi:nil="true"/><sf:AccountSource xsi:nil="true"/><sf:SicDesc xsi:nil="true"/><sf:regalray1__CustomerPriority__c>Low</sf:regalray1__CustomerPriority__c><sf:regalray1__SLA__c>Bronze</sf:regalray1__SLA__c><sf:regalray1__Active__c>Yes</sf:regalray1__Active__c><sf:regalray1__NumberofLocations__c>1.0</sf:regalray1__NumberofLocations__c><sf:regalray1__UpsellOpportunity__c>Yes</sf:regalray1__UpsellOpportunity__c><sf:regalray1__SLASerialNumber__c>7324</sf:regalray1__SLASerialNumber__c><sf:regalray1__SLAExpirationDate__c>2012-12-01</sf:regalray1__SLAExpirationDate__c><sf:regalray1__Secret_Notes__c>My email address is dvdkliu+sfdc99@gmail.com!</sf:regalray1__Secret_Notes__c><sf:regalray1__CSR__c>005i0000000OAO9AAO</sf:regalray1__CSR__c><sf:regalray1__Number_of_Females__c>0.0</sf:regalray1__Number_of_Females__c><sf:regalray1__Contact_List__c xsi:nil="true"/><sf:regalray1__Match_Billing_Address__c>false</sf:regalray1__Match_Billing_Address__c> ) ) [1] => stdClass Object ( [type] => Account [Id] => Array ( [0] => 001i0000008ES3jAAG [1] => 001i0000008ES3jAAG ) [any] => Array ( [0] => stdClass Object ( [latitude] => [longitude] => [city] => Singapore [country] => [countryCode] => [postalCode] => [state] => Singapore [stateCode] => [street] => 9 Tagore Lane Singapore, Singapore 787472 Singapore ) [BillingAddress] => stdClass Object ( [latitude] => [longitude] => [city] => Singapore [country] => [countryCode] => [postalCode] => [state] => Singapore [stateCode] => [street] => 9 Tagore Lane Singapore, Singapore 787472 Singapore ) [1] => <sf:ShippingStreet>9 Tagore Lane Singapore, Singapore 787472 Singapore</sf:ShippingStreet><sf:ShippingCity xsi:nil="true"/><sf:ShippingState xsi:nil="true"/><sf:ShippingPostalCode xsi:nil="true"/><sf:ShippingCountry xsi:nil="true"/><sf:ShippingLatitude xsi:nil="true"/><sf:ShippingLongitude xsi:nil="true"/> [ShippingAddress] => stdClass Object ( [latitude] => [longitude] => [city] => [country] => [countryCode] => [postalCode] => [state] => [stateCode] => [street] => 9 Tagore Lane Singapore, Singapore 787472 Singapore ) [2] => <sf:Phone>(650) 450-8810</sf:Phone><sf:Fax>(650) 450-8820</sf:Fax><sf:AccountNumber>CD355120-B</sf:AccountNumber><sf:Website>http://www.uos.com</sf:Website><sf:PhotoUrl>/services/images/photo/001i0000008ES3jAAG</sf:PhotoUrl><sf:Sic>4437</sf:Sic><sf:Industry>Energy</sf:Industry><sf:AnnualRevenue>0.0</sf:AnnualRevenue><sf:NumberOfEmployees>3000</sf:NumberOfEmployees><sf:Ownership>Public</sf:Ownership><sf:TickerSymbol>UOS</sf:TickerSymbol><sf:Description xsi:nil="true"/><sf:Rating xsi:nil="true"/><sf:Site xsi:nil="true"/><sf:OwnerId>005i0000000OAO9AAO</sf:OwnerId><sf:CreatedDate>2013-05-06T01:55:17.000Z</sf:CreatedDate><sf:CreatedById>005i0000000OAO9AAO</sf:CreatedById><sf:LastModifiedDate>2016-03-02T03:11:32.000Z</sf:LastModifiedDate><sf:LastModifiedById>005i0000000OAOOAA4</sf:LastModifiedById><sf:SystemModstamp>2016-03-02T03:11:32.000Z</sf:SystemModstamp><sf:LastActivityDate xsi:nil="true"/><sf:LastViewedDate xsi:nil="true"/><sf:LastReferencedDate xsi:nil="true"/><sf:Jigsaw xsi:nil="true"/><sf:JigsawCompanyId xsi:nil="true"/><sf:AccountSource xsi:nil="true"/><sf:SicDesc xsi:nil="true"/><sf:regalray1__CustomerPriority__c>High</sf:regalray1__CustomerPriority__c><sf:regalray1__SLA__c>Platinum</sf:regalray1__SLA__c><sf:regalray1__Active__c>Yes</sf:regalray1__Active__c><sf:regalray1__NumberofLocations__c>6.0</sf:regalray1__NumberofLocations__c><sf:regalray1__UpsellOpportunity__c>Maybe</sf:regalray1__UpsellOpportunity__c><sf:regalray1__SLASerialNumber__c>2457</sf:regalray1__SLASerialNumber__c><sf:regalray1__SLAExpirationDate__c>2012-12-01</sf:regalray1__SLAExpirationDate__c><sf:regalray1__Secret_Notes__c>My email address is dvdkliu+sfdc99@gmail.com!</sf:regalray1__Secret_Notes__c><sf:regalray1__CSR__c>005i0000000OAO9AAO</sf:regalray1__CSR__c><sf:regalray1__Number_of_Females__c>0.0</sf:regalray1__Number_of_Females__c><sf:regalray1__Contact_List__c xsi:nil="true"/><sf:regalray1__Match_Billing_Address__c>false</sf:regalray1__Match_Billing_Address__c> ) ) ) [size] => 2 [pointer] => 0 [sf:QueryResult:private] => SforcePartnerClient Object ( [sforce:protected] => SforceSoapClient Object ( [trace] => 1 [compression] => 32 [_encoding] => utf-8 [_features] => 1 [_user_agent] => salesforce-toolkit-php/27.0 [_soap_version] => 1 [sdl] => Resource id #17 [__last_request_headers] => POST /services/Soap/u/34.0/00Di0000000Y1qE HTTP/1.1 Host: dvdkliu-dev-ed.my.salesforce.com Connection: Keep-Alive User-Agent: salesforce-toolkit-php/27.0 Accept-Encoding: gzip, deflate Content-Type: text/xml; charset=utf-8 SOAPAction: "" Content-Length: 1597 Cookie: [__last_response_headers] => HTTP/1.1 200 OK Date: Fri, 08 Apr 2016 16:13:06 GMT Content-Security-Policy-Report-Only: default-src https:; script-src https: 'unsafe-inline' 'unsafe-eval'; style-src https: 'unsafe-inline'; img-src https: data:; font-src https: data:; report-uri /_/ContentDomainCSPNoAuth?type=mydomain Set-Cookie: BrowserId=fRBGAaJjTgy2dHNcgf1yQQ;Path=/;Domain=.salesforce.com;Expires=Tue, 07-Jun-2016 16:13:06 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Type: text/xml;charset=UTF-8 Content-Encoding: gzip Transfer-Encoding: chunked [_cookies] => Array ( [BrowserId] => Array ( [0] => fRBGAaJjTgy2dHNcgf1yQQ [1] => /services/Soap/u/34.0 [2] => dvdkliu-dev-ed.my.salesforce.com ) ) [location] => https://dvdkliu-dev-ed.my.salesforce.com/services/Soap/u/34.0/00Di0000000Y1qE [__default_headers] => Array ( [0] => SoapHeader Object ( [namespace] => urn:partner.soap.sforce.com [name] => SessionHeader [data] => Array ( [sessionId] => 00Di0000000Y1qE!ARwAQLHsvlfq7pHbsVvpJOEaG.qF5f6eS3kEnQ_j7WmXhkhJbt93kAkABKJ_r0lgYCHjoXg6Zamx1FG9ypCYkNhkcIcgFACG ) [mustUnderstand] => ) ) [__last_request] => <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:partner.soap.sforce.com"><SOAP-ENV:Header><ns1:SessionHeader><ns1:sessionId>00Di0000000Y1qE!ARwAQLHsvlfq7pHbsVvpJOEaG.qF5f6eS3kEnQ_j7WmXhkhJbt93kAkABKJ_r0lgYCHjoXg6Zamx1FG9ypCYkNhkcIcgFACG</ns1:sessionId></ns1:SessionHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:query><ns1:queryString>SELECT Id , IsDeleted , MasterRecordId , Name , Type , RecordTypeId , ParentId , BillingStreet , BillingCity , BillingState , BillingPostalCode , BillingCountry , BillingLatitude , BillingLongitude , BillingAddress , ShippingStreet , ShippingCity , ShippingState , ShippingPostalCode , ShippingCountry , ShippingLatitude , ShippingLongitude , ShippingAddress , Phone , Fax , AccountNumber , Website , PhotoUrl , Sic , Industry , AnnualRevenue , NumberOfEmployees , Ownership , TickerSymbol , Description , Rating , Site , OwnerId , CreatedDate , CreatedById , LastModifiedDate , LastModifiedById , SystemModstamp , LastActivityDate , LastViewedDate , LastReferencedDate , Jigsaw , JigsawCompanyId , AccountSource , SicDesc , regalray1__CustomerPriority__c , regalray1__SLA__c , regalray1__Active__c , regalray1__NumberofLocations__c , regalray1__UpsellOpportunity__c , regalray1__SLASerialNumber__c , regalray1__SLAExpirationDate__c , regalray1__Secret_Notes__c , regalray1__CSR__c , regalray1__Number_of_Females__c , regalray1__Contact_List__c , regalray1__Match_Billing_Address__c FROM Account LIMIT 2 OFFSET 0</ns1:queryString></ns1:query></SOAP-ENV:Body></SOAP-ENV:Envelope> [httpsocket] => Resource id #20 [_use_proxy] => 0 [httpurl] => Resource id #21 [__last_response] => <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:sobject.partner.soap.sforce.com"><soapenv:Header><LimitInfoHeader><limitInfo><current>355</current><limit>15000</limit><type>API REQUESTS</type></limitInfo></LimitInfoHeader></soapenv:Header><soapenv:Body><queryResponse><result xsi:type="QueryResult"><done>true</done><queryLocator xsi:nil="true"/><records xsi:type="sf:sObject"><sf:type>Account</sf:type><sf:Id>001i0000008ES3hAAG</sf:Id><sf:Id>001i0000008ES3hAAG</sf:Id><sf:IsDeleted>false</sf:IsDeleted><sf:MasterRecordId xsi:nil="true"/><sf:Name>GenePoint</sf:Name><sf:Type>Customer - Channel</sf:Type><sf:RecordTypeId xsi:nil="true"/><sf:ParentId xsi:nil="true"/><sf:BillingStreet>345 Shoreline Park Mountain View, CA 94043 USA</sf:BillingStreet><sf:BillingCity>Mountain View</sf:BillingCity><sf:BillingState>CA</sf:BillingState><sf:BillingPostalCode xsi:nil="true"/><sf:BillingCountry xsi:nil="true"/><sf:BillingLatitude xsi:nil="true"/><sf:BillingLongitude xsi:nil="true"/><sf:BillingAddress xsi:type="address"><latitude xsi:nil="true"/><longitude xsi:nil="true"/><city>Mountain View</city><country xsi:nil="true"/><countryCode xsi:nil="true"/><postalCode xsi:nil="true"/><state>CA</state><stateCode xsi:nil="true"/><street>345 Shoreline Park Mountain View, CA 94043 USA</street></sf:BillingAddress><sf:ShippingStreet>345 Shoreline Park Mountain View, CA 94043 USA</sf:ShippingStreet><sf:ShippingCity xsi:nil="true"/><sf:ShippingState xsi:nil="true"/><sf:ShippingPostalCode xsi:nil="true"/><sf:ShippingCountry xsi:nil="true"/><sf:ShippingLatitude xsi:nil="true"/><sf:ShippingLongitude xsi:nil="true"/><sf:ShippingAddress xsi:type="address"><latitude xsi:nil="true"/><longitude xsi:nil="true"/><city xsi:nil="true"/><country xsi:nil="true"/><countryCode xsi:nil="true"/><postalCode xsi:nil="true"/><state xsi:nil="true"/><stateCode xsi:nil="true"/><street>345 Shoreline Park Mountain View, CA 94043 USA</street></sf:ShippingAddress><sf:Phone>(650) 867-3450</sf:Phone><sf:Fax>(650) 867-9895</sf:Fax><sf:AccountNumber>CC978213</sf:AccountNumber><sf:Website>www.genepoint.com</sf:Website><sf:PhotoUrl>/services/images/photo/001i0000008ES3hAAG</sf:PhotoUrl><sf:Sic>3712</sf:Sic><sf:Industry>Biotechnology</sf:Industry><sf:AnnualRevenue>3.0E7</sf:AnnualRevenue><sf:NumberOfEmployees>265</sf:NumberOfEmployees><sf:Ownership>Public</sf:Ownership><sf:TickerSymbol xsi:nil="true"/><sf:Description>Genomics company engaged in mapping and sequencing of the human genome and developing gene-based drugs</sf:Description><sf:Rating>Cold</sf:Rating><sf:Site xsi:nil="true"/><sf:OwnerId>005i0000000OAO9AAO</sf:OwnerId><sf:CreatedDate>2013-05-06T01:55:17.000Z</sf:CreatedDate><sf:CreatedById>005i0000000OAO9AAO</sf:CreatedById><sf:LastModifiedDate>2016-04-08T15:41:52.000Z</sf:LastModifiedDate><sf:LastModifiedById>005i0000000OAO9AAO</sf:LastModifiedById><sf:SystemModstamp>2016-04-08T15:41:52.000Z</sf:SystemModstamp><sf:LastActivityDate xsi:nil="true"/><sf:LastViewedDate>2016-04-08T15:43:12.000Z</sf:LastViewedDate><sf:LastReferencedDate>2016-04-08T15:43:12.000Z</sf:LastReferencedDate><sf:Jigsaw xsi:nil="true"/><sf:JigsawCompanyId xsi:nil="true"/><sf:AccountSource xsi:nil="true"/><sf:SicDesc xsi:nil="true"/><sf:regalray1__CustomerPriority__c>Low</sf:regalray1__CustomerPriority__c><sf:regalray1__SLA__c>Bronze</sf:regalray1__SLA__c><sf:regalray1__Active__c>Yes</sf:regalray1__Active__c><sf:regalray1__NumberofLocations__c>1.0</sf:regalray1__NumberofLocations__c><sf:regalray1__UpsellOpportunity__c>Yes</sf:regalray1__UpsellOpportunity__c><sf:regalray1__SLASerialNumber__c>7324</sf:regalray1__SLASerialNumber__c><sf:regalray1__SLAExpirationDate__c>2012-12-01</sf:regalray1__SLAExpirationDate__c><sf:regalray1__Secret_Notes__c>My email address is dvdkliu+sfdc99@gmail.com!</sf:regalray1__Secret_Notes__c><sf:regalray1__CSR__c>005i0000000OAO9AAO</sf:regalray1__CSR__c><sf:regalray1__Number_of_Females__c>0.0</sf:regalray1__Number_of_Females__c><sf:regalray1__Contact_List__c xsi:nil="true"/><sf:regalray1__Match_Billing_Address__c>false</sf:regalray1__Match_Billing_Address__c></records><records xsi:type="sf:sObject"><sf:type>Account</sf:type><sf:Id>001i0000008ES3jAAG</sf:Id><sf:Id>001i0000008ES3jAAG</sf:Id><sf:IsDeleted>false</sf:IsDeleted><sf:MasterRecordId xsi:nil="true"/><sf:Name>United Oil & Gas, Singaporean</sf:Name><sf:Type>Customer - Direct</sf:Type><sf:RecordTypeId xsi:nil="true"/><sf:ParentId xsi:nil="true"/><sf:BillingStreet>9 Tagore Lane Singapore, Singapore 787472 Singapore</sf:BillingStreet><sf:BillingCity>Singapore</sf:BillingCity><sf:BillingState>Singapore</sf:BillingState><sf:BillingPostalCode xsi:nil="true"/><sf:BillingCountry xsi:nil="true"/><sf:BillingLatitude xsi:nil="true"/><sf:BillingLongitude xsi:nil="true"/><sf:BillingAddress xsi:type="address"><latitude xsi:nil="true"/><longitude xsi:nil="true"/><city>Singapore</city><country xsi:nil="true"/><countryCode xsi:nil="true"/><postalCode xsi:nil="true"/><state>Singapore</state><stateCode xsi:nil="true"/><street>9 Tagore Lane Singapore, Singapore 787472 Singapore</street></sf:BillingAddress><sf:ShippingStreet>9 Tagore Lane Singapore, Singapore 787472 Singapore</sf:ShippingStreet><sf:ShippingCity xsi:nil="true"/><sf:ShippingState xsi:nil="true"/><sf:ShippingPostalCode xsi:nil="true"/><sf:ShippingCountry xsi:nil="true"/><sf:ShippingLatitude xsi:nil="true"/><sf:ShippingLongitude xsi:nil="true"/><sf:ShippingAddress xsi:type="address"><latitude xsi:nil="true"/><longitude xsi:nil="true"/><city xsi:nil="true"/><country xsi:nil="true"/><countryCode xsi:nil="true"/><postalCode xsi:nil="true"/><state xsi:nil="true"/><stateCode xsi:nil="true"/><street>9 Tagore Lane Singapore, Singapore 787472 Singapore</street></sf:ShippingAddress><sf:Phone>(650) 450-8810</sf:Phone><sf:Fax>(650) 450-8820</sf:Fax><sf:AccountNumber>CD355120-B</sf:AccountNumber><sf:Website>http://www.uos.com</sf:Website><sf:PhotoUrl>/services/images/photo/001i0000008ES3jAAG</sf:PhotoUrl><sf:Sic>4437</sf:Sic><sf:Industry>Energy</sf:Industry><sf:AnnualRevenue>0.0</sf:AnnualRevenue><sf:NumberOfEmployees>3000</sf:NumberOfEmployees><sf:Ownership>Public</sf:Ownership><sf:TickerSymbol>UOS</sf:TickerSymbol><sf:Description xsi:nil="true"/><sf:Rating xsi:nil="true"/><sf:Site xsi:nil="true"/><sf:OwnerId>005i0000000OAO9AAO</sf:OwnerId><sf:CreatedDate>2013-05-06T01:55:17.000Z</sf:CreatedDate><sf:CreatedById>005i0000000OAO9AAO</sf:CreatedById><sf:LastModifiedDate>2016-03-02T03:11:32.000Z</sf:LastModifiedDate><sf:LastModifiedById>005i0000000OAOOAA4</sf:LastModifiedById><sf:SystemModstamp>2016-03-02T03:11:32.000Z</sf:SystemModstamp><sf:LastActivityDate xsi:nil="true"/><sf:LastViewedDate xsi:nil="true"/><sf:LastReferencedDate xsi:nil="true"/><sf:Jigsaw xsi:nil="true"/><sf:JigsawCompanyId xsi:nil="true"/><sf:AccountSource xsi:nil="true"/><sf:SicDesc xsi:nil="true"/><sf:regalray1__CustomerPriority__c>High</sf:regalray1__CustomerPriority__c><sf:regalray1__SLA__c>Platinum</sf:regalray1__SLA__c><sf:regalray1__Active__c>Yes</sf:regalray1__Active__c><sf:regalray1__NumberofLocations__c>6.0</sf:regalray1__NumberofLocations__c><sf:regalray1__UpsellOpportunity__c>Maybe</sf:regalray1__UpsellOpportunity__c><sf:regalray1__SLASerialNumber__c>2457</sf:regalray1__SLASerialNumber__c><sf:regalray1__SLAExpirationDate__c>2012-12-01</sf:regalray1__SLAExpirationDate__c><sf:regalray1__Secret_Notes__c>My email address is dvdkliu+sfdc99@gmail.com!</sf:regalray1__Secret_Notes__c><sf:regalray1__CSR__c>005i0000000OAO9AAO</sf:regalray1__CSR__c><sf:regalray1__Number_of_Females__c>0.0</sf:regalray1__Number_of_Females__c><sf:regalray1__Contact_List__c xsi:nil="true"/><sf:regalray1__Match_Billing_Address__c>false</sf:regalray1__Match_Billing_Address__c></records><size>2</size></result></queryResponse></soapenv:Body></soapenv:Envelope> ) [sessionId:protected] => 00Di0000000Y1qE!ARwAQLHsvlfq7pHbsVvpJOEaG.qF5f6eS3kEnQ_j7WmXhkhJbt93kAkABKJ_r0lgYCHjoXg6Zamx1FG9ypCYkNhkcIcgFACG [location:protected] => https://dvdkliu-dev-ed.my.salesforce.com/services/Soap/u/34.0/00Di0000000Y1qE [version:protected] => 27.0 [namespace:protected] => urn:partner.soap.sforce.com [callOptions:protected] => [assignmentRuleHeader:protected] => [emailHeader:protected] => [loginScopeHeader:protected] => [mruHeader:protected] => [queryHeader:protected] => [userTerritoryDeleteHeader:protected] => [sessionHeader:protected] => SoapHeader Object ( [namespace] => urn:partner.soap.sforce.com [name] => SessionHeader [data] => Array ( [sessionId] => 00Di0000000Y1qE!ARwAQLHsvlfq7pHbsVvpJOEaG.qF5f6eS3kEnQ_j7WmXhkhJbt93kAkABKJ_r0lgYCHjoXg6Zamx1FG9ypCYkNhkcIcgFACG ) [mustUnderstand] => ) [allowFieldTruncationHeader:protected] => [localeOptions:protected] => [packageVersionHeader:protected] => [client_id:protected] => )
- learn1.3947400898749973E12
- April 08, 2016
- Like
- 0
Salesforce integration Sample codes
Hi All,
Could you please provide links for salesforce interation with java applications with example code.
Thank you.
- learn1.3947400898749973E12
- August 08, 2014
- Like
- 0
Trigger samples
Hi All,
I am new to salesforce..please give some trigger exampes with questions.
Thank you.
- learn1.3947400898749973E12
- August 07, 2014
- Like
- 0
Update A Contact Check Box when a Task is created with a specific picklist value
I can't understand why the trigger below is not working. All I am wanting to do is update a Contact checkbox when a Task is created with a custom picklist field has a specific value:
trigger UsefulActivity on Task (after insert, after update)
{
for(Task t : trigger.new)
{
for(Contact c : [select Id, Had_Useful_Activity__c from Contact where Id=:t.WhatID])
{
if(t.Result__c == 'Meeting')
{
c.Had_Useful_Activity__c = true;
}
}
}
}
trigger UsefulActivity on Task (after insert, after update)
{
for(Task t : trigger.new)
{
for(Contact c : [select Id, Had_Useful_Activity__c from Contact where Id=:t.WhatID])
{
if(t.Result__c == 'Meeting')
{
c.Had_Useful_Activity__c = true;
}
}
}
}
- learn1.3947400898749973E12
- March 13, 2014
- Like
- 1
Update A Contact Check Box when a Task is created with a specific picklist value
I can't understand why the trigger below is not working. All I am wanting to do is update a Contact checkbox when a Task is created with a custom picklist field has a specific value:
trigger UsefulActivity on Task (after insert, after update)
{
for(Task t : trigger.new)
{
for(Contact c : [select Id, Had_Useful_Activity__c from Contact where Id=:t.WhatID])
{
if(t.Result__c == 'Meeting')
{
c.Had_Useful_Activity__c = true;
}
}
}
}
trigger UsefulActivity on Task (after insert, after update)
{
for(Task t : trigger.new)
{
for(Contact c : [select Id, Had_Useful_Activity__c from Contact where Id=:t.WhatID])
{
if(t.Result__c == 'Meeting')
{
c.Had_Useful_Activity__c = true;
}
}
}
}
- learn1.3947400898749973E12
- March 13, 2014
- Like
- 1
JS button not working as expected why
I created a JS button to update a hidden check box and validate a checkbox. But i get the below error
Invalid or Unexpected token error
Invalid or Unexpected token error
{!REQUIRESCRIPT("/soap/ajax/31.0/connection.js")} var myquery = "SELECT Id,Hidden_Checkbox__c,Acct_Has_Oracle_Acct__c FROM SBQQ__Quote__c WHERE Id = '{!SBQQ__Quote__c.Id}' limit 1"; result = sforce.connection.query(myquery); records = result.getArray("records"); var myOpp = records[0]; var updateOpp = new Array(); var myValRev = myOpp.Hidden_Checkbox__c; var myValRev2 = myOpp.Acct_Has_Oracle_Acct__c; if(myValRev2 == 'false'){ alert('Oracle Account number is blank); } if(myValRev == 'true'){ myOpp.Hidden_Checkbox__c=false; } else { myOpp.Hidden_Checkbox__c=true; } updateOpp.push(myOpp); result = sforce.connection.update(updateOpp); if(result[0].getBoolean("success")){ window.location = "/" + "{!SBQQ__Quote__c.Id}"; }else{ alert('Could not Export : '+result); }
- learn1.3947400898749973E12
- January 15, 2019
- Like
- 0
validation rule not working as expected
There is urgent requirement .
The rule should see the Account_Shipping_Country__c and ProductCode__c of the related quote line and check the value in object Shipping_Restriction__c , If yes we need to alert the user.
I created the below rule but it triggers for all the condition, not sure why this is not working
AND(
(SBQQ__Quote__r.Account_Shipping_Country__c <> $ObjectType.Shipping_Restriction__c.Fields.Country_Code__c )
,(SBQQ__Product__r.ProductCode__c<> $ObjectType.Shipping_Restriction__c.Fields.Item_Number__c
)
)
The rule should see the Account_Shipping_Country__c and ProductCode__c of the related quote line and check the value in object Shipping_Restriction__c , If yes we need to alert the user.
I created the below rule but it triggers for all the condition, not sure why this is not working
AND(
(SBQQ__Quote__r.Account_Shipping_Country__c <> $ObjectType.Shipping_Restriction__c.Fields.Country_Code__c )
,(SBQQ__Product__r.ProductCode__c<> $ObjectType.Shipping_Restriction__c.Fields.Item_Number__c
)
)
- learn1.3947400898749973E12
- January 12, 2019
- Like
- 0
create a button to update a check box and button should work for both Classic and lightning
I need to create a button that should be update the checkbox and the button should be visible based on a field value. I created the JS button but it didnt work in Lightning. I am new to lightning, Can anyone help me to handle this scenario
{!REQUIRESCRIPT("/soap/ajax/31.0/connection.js")}
var myquery = "SELECT Id,Hidden_Checkbox__c FROM SBQQ__Quote__c WHERE Id = '{!SBQQ__Quote__c.Id}' limit 1";
result = sforce.connection.query(myquery);
records = result.getArray("records");
var myOpp = records[0];
var updateOpp = new Array();
var myValRev = myOpp.Hidden_Checkbox__c;
if(myValRev == 'true'){
myOpp.Hidden_Checkbox__c=false;
}
else
{
myOpp.Hidden_Checkbox__c=true;
}
updateOpp.push(myOpp);
result = sforce.connection.update(updateOpp);
if(result[0].getBoolean("success")){
window.location = "/" + "{!SBQQ__Quote__c.Id}";
}else{
alert('Could not Export : '+result);
}
{!REQUIRESCRIPT("/soap/ajax/31.0/connection.js")}
var myquery = "SELECT Id,Hidden_Checkbox__c FROM SBQQ__Quote__c WHERE Id = '{!SBQQ__Quote__c.Id}' limit 1";
result = sforce.connection.query(myquery);
records = result.getArray("records");
var myOpp = records[0];
var updateOpp = new Array();
var myValRev = myOpp.Hidden_Checkbox__c;
if(myValRev == 'true'){
myOpp.Hidden_Checkbox__c=false;
}
else
{
myOpp.Hidden_Checkbox__c=true;
}
updateOpp.push(myOpp);
result = sforce.connection.update(updateOpp);
if(result[0].getBoolean("success")){
window.location = "/" + "{!SBQQ__Quote__c.Id}";
}else{
alert('Could not Export : '+result);
}
- learn1.3947400898749973E12
- January 02, 2019
- Like
- 0
DML operation Update not allowed
Hi All, I am getting error "DML operation Update not allowed on" while updating custom metadata type record through my apex class. Please let me know if we can update custom metadata type records or not?
- Vishal Ranjan 14
- January 02, 2019
- Like
- 0
execute trigger in a batch
Hi,
I have a urgent requirement where If all the line items for a quote are successfully priced, the quote is updated with the checkbox set to true. I need need to update batch apex via trigger. I have written a trigger and I need more insight on how should I handle via batch
I have a urgent requirement where If all the line items for a quote are successfully priced, the quote is updated with the checkbox set to true. I need need to update batch apex via trigger. I have written a trigger and I need more insight on how should I handle via batch
- learn1.3947400898749973E12
- December 24, 2018
- Like
- 0
how to pull specific object record value when there is no relationship
Hi All,
I have Opportunity object having a field called Control(text). Another object Control with fields Control(Number) and State(text). Both are not related to eachother. Now my requirement is when opportunity control is updated, i need to search that value in Control object and pull specific state value on to opportunity. Please suggest how to achieve this.
Thanks.
I have Opportunity object having a field called Control(text). Another object Control with fields Control(Number) and State(text). Both are not related to eachother. Now my requirement is when opportunity control is updated, i need to search that value in Control object and pull specific state value on to opportunity. Please suggest how to achieve this.
Thanks.
- Chubby
- December 24, 2018
- Like
- 0
API output showing contradicting results for Records and __last_response
I sent a query through rest API, and output that came for Records Element doesn't have the "Name" field, but the "__last_response" has the "Name" field, it quite weird. I'm parsing the Records to extract the data and in this scenario, I'm missing "Name" field.
Not - if I increase the limit to 50 , then Name field comes for some Accounts inside the Records as well for the same query.
[queryLocator] => [done] => 1 [records] => Array ( [0] => stdClass Object ( [type] => Account [Id] => Array ( [0] => 001i0000008ES3hAAG [1] => 001i0000008ES3hAAG ) [any] => Array ( [0] => stdClass Object ( [latitude] => [longitude] => [city] => Mountain View [country] => [countryCode] => [postalCode] => [state] => CA [stateCode] => [street] => 345 Shoreline Park Mountain View, CA 94043 USA ) [BillingAddress] => stdClass Object ( [latitude] => [longitude] => [city] => Mountain View [country] => [countryCode] => [postalCode] => [state] => CA [stateCode] => [street] => 345 Shoreline Park Mountain View, CA 94043 USA ) [1] => <sf:ShippingStreet>345 Shoreline Park Mountain View, CA 94043 USA</sf:ShippingStreet><sf:ShippingCity xsi:nil="true"/><sf:ShippingState xsi:nil="true"/><sf:ShippingPostalCode xsi:nil="true"/><sf:ShippingCountry xsi:nil="true"/><sf:ShippingLatitude xsi:nil="true"/><sf:ShippingLongitude xsi:nil="true"/> [ShippingAddress] => stdClass Object ( [latitude] => [longitude] => [city] => [country] => [countryCode] => [postalCode] => [state] => [stateCode] => [street] => 345 Shoreline Park Mountain View, CA 94043 USA ) [2] => <sf:Phone>(650) 867-3450</sf:Phone><sf:Fax>(650) 867-9895</sf:Fax><sf:AccountNumber>CC978213</sf:AccountNumber><sf:Website>www.genepoint.com</sf:Website><sf:PhotoUrl>/services/images/photo/001i0000008ES3hAAG</sf:PhotoUrl><sf:Sic>3712</sf:Sic><sf:Industry>Biotechnology</sf:Industry><sf:AnnualRevenue>3.0E7</sf:AnnualRevenue><sf:NumberOfEmployees>265</sf:NumberOfEmployees><sf:Ownership>Public</sf:Ownership><sf:TickerSymbol xsi:nil="true"/><sf:Description>Genomics company engaged in mapping and sequencing of the human genome and developing gene-based drugs</sf:Description><sf:Rating>Cold</sf:Rating><sf:Site xsi:nil="true"/><sf:OwnerId>005i0000000OAO9AAO</sf:OwnerId><sf:CreatedDate>2013-05-06T01:55:17.000Z</sf:CreatedDate><sf:CreatedById>005i0000000OAO9AAO</sf:CreatedById><sf:LastModifiedDate>2016-04-08T15:41:52.000Z</sf:LastModifiedDate><sf:LastModifiedById>005i0000000OAO9AAO</sf:LastModifiedById><sf:SystemModstamp>2016-04-08T15:41:52.000Z</sf:SystemModstamp><sf:LastActivityDate xsi:nil="true"/><sf:LastViewedDate>2016-04-08T15:43:12.000Z</sf:LastViewedDate><sf:LastReferencedDate>2016-04-08T15:43:12.000Z</sf:LastReferencedDate><sf:Jigsaw xsi:nil="true"/><sf:JigsawCompanyId xsi:nil="true"/><sf:AccountSource xsi:nil="true"/><sf:SicDesc xsi:nil="true"/><sf:regalray1__CustomerPriority__c>Low</sf:regalray1__CustomerPriority__c><sf:regalray1__SLA__c>Bronze</sf:regalray1__SLA__c><sf:regalray1__Active__c>Yes</sf:regalray1__Active__c><sf:regalray1__NumberofLocations__c>1.0</sf:regalray1__NumberofLocations__c><sf:regalray1__UpsellOpportunity__c>Yes</sf:regalray1__UpsellOpportunity__c><sf:regalray1__SLASerialNumber__c>7324</sf:regalray1__SLASerialNumber__c><sf:regalray1__SLAExpirationDate__c>2012-12-01</sf:regalray1__SLAExpirationDate__c><sf:regalray1__Secret_Notes__c>My email address is dvdkliu+sfdc99@gmail.com!</sf:regalray1__Secret_Notes__c><sf:regalray1__CSR__c>005i0000000OAO9AAO</sf:regalray1__CSR__c><sf:regalray1__Number_of_Females__c>0.0</sf:regalray1__Number_of_Females__c><sf:regalray1__Contact_List__c xsi:nil="true"/><sf:regalray1__Match_Billing_Address__c>false</sf:regalray1__Match_Billing_Address__c> ) ) [1] => stdClass Object ( [type] => Account [Id] => Array ( [0] => 001i0000008ES3jAAG [1] => 001i0000008ES3jAAG ) [any] => Array ( [0] => stdClass Object ( [latitude] => [longitude] => [city] => Singapore [country] => [countryCode] => [postalCode] => [state] => Singapore [stateCode] => [street] => 9 Tagore Lane Singapore, Singapore 787472 Singapore ) [BillingAddress] => stdClass Object ( [latitude] => [longitude] => [city] => Singapore [country] => [countryCode] => [postalCode] => [state] => Singapore [stateCode] => [street] => 9 Tagore Lane Singapore, Singapore 787472 Singapore ) [1] => <sf:ShippingStreet>9 Tagore Lane Singapore, Singapore 787472 Singapore</sf:ShippingStreet><sf:ShippingCity xsi:nil="true"/><sf:ShippingState xsi:nil="true"/><sf:ShippingPostalCode xsi:nil="true"/><sf:ShippingCountry xsi:nil="true"/><sf:ShippingLatitude xsi:nil="true"/><sf:ShippingLongitude xsi:nil="true"/> [ShippingAddress] => stdClass Object ( [latitude] => [longitude] => [city] => [country] => [countryCode] => [postalCode] => [state] => [stateCode] => [street] => 9 Tagore Lane Singapore, Singapore 787472 Singapore ) [2] => <sf:Phone>(650) 450-8810</sf:Phone><sf:Fax>(650) 450-8820</sf:Fax><sf:AccountNumber>CD355120-B</sf:AccountNumber><sf:Website>http://www.uos.com</sf:Website><sf:PhotoUrl>/services/images/photo/001i0000008ES3jAAG</sf:PhotoUrl><sf:Sic>4437</sf:Sic><sf:Industry>Energy</sf:Industry><sf:AnnualRevenue>0.0</sf:AnnualRevenue><sf:NumberOfEmployees>3000</sf:NumberOfEmployees><sf:Ownership>Public</sf:Ownership><sf:TickerSymbol>UOS</sf:TickerSymbol><sf:Description xsi:nil="true"/><sf:Rating xsi:nil="true"/><sf:Site xsi:nil="true"/><sf:OwnerId>005i0000000OAO9AAO</sf:OwnerId><sf:CreatedDate>2013-05-06T01:55:17.000Z</sf:CreatedDate><sf:CreatedById>005i0000000OAO9AAO</sf:CreatedById><sf:LastModifiedDate>2016-03-02T03:11:32.000Z</sf:LastModifiedDate><sf:LastModifiedById>005i0000000OAOOAA4</sf:LastModifiedById><sf:SystemModstamp>2016-03-02T03:11:32.000Z</sf:SystemModstamp><sf:LastActivityDate xsi:nil="true"/><sf:LastViewedDate xsi:nil="true"/><sf:LastReferencedDate xsi:nil="true"/><sf:Jigsaw xsi:nil="true"/><sf:JigsawCompanyId xsi:nil="true"/><sf:AccountSource xsi:nil="true"/><sf:SicDesc xsi:nil="true"/><sf:regalray1__CustomerPriority__c>High</sf:regalray1__CustomerPriority__c><sf:regalray1__SLA__c>Platinum</sf:regalray1__SLA__c><sf:regalray1__Active__c>Yes</sf:regalray1__Active__c><sf:regalray1__NumberofLocations__c>6.0</sf:regalray1__NumberofLocations__c><sf:regalray1__UpsellOpportunity__c>Maybe</sf:regalray1__UpsellOpportunity__c><sf:regalray1__SLASerialNumber__c>2457</sf:regalray1__SLASerialNumber__c><sf:regalray1__SLAExpirationDate__c>2012-12-01</sf:regalray1__SLAExpirationDate__c><sf:regalray1__Secret_Notes__c>My email address is dvdkliu+sfdc99@gmail.com!</sf:regalray1__Secret_Notes__c><sf:regalray1__CSR__c>005i0000000OAO9AAO</sf:regalray1__CSR__c><sf:regalray1__Number_of_Females__c>0.0</sf:regalray1__Number_of_Females__c><sf:regalray1__Contact_List__c xsi:nil="true"/><sf:regalray1__Match_Billing_Address__c>false</sf:regalray1__Match_Billing_Address__c> ) ) ) [size] => 2 [pointer] => 0 [sf:QueryResult:private] => SforcePartnerClient Object ( [sforce:protected] => SforceSoapClient Object ( [trace] => 1 [compression] => 32 [_encoding] => utf-8 [_features] => 1 [_user_agent] => salesforce-toolkit-php/27.0 [_soap_version] => 1 [sdl] => Resource id #17 [__last_request_headers] => POST /services/Soap/u/34.0/00Di0000000Y1qE HTTP/1.1 Host: dvdkliu-dev-ed.my.salesforce.com Connection: Keep-Alive User-Agent: salesforce-toolkit-php/27.0 Accept-Encoding: gzip, deflate Content-Type: text/xml; charset=utf-8 SOAPAction: "" Content-Length: 1597 Cookie: [__last_response_headers] => HTTP/1.1 200 OK Date: Fri, 08 Apr 2016 16:13:06 GMT Content-Security-Policy-Report-Only: default-src https:; script-src https: 'unsafe-inline' 'unsafe-eval'; style-src https: 'unsafe-inline'; img-src https: data:; font-src https: data:; report-uri /_/ContentDomainCSPNoAuth?type=mydomain Set-Cookie: BrowserId=fRBGAaJjTgy2dHNcgf1yQQ;Path=/;Domain=.salesforce.com;Expires=Tue, 07-Jun-2016 16:13:06 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Type: text/xml;charset=UTF-8 Content-Encoding: gzip Transfer-Encoding: chunked [_cookies] => Array ( [BrowserId] => Array ( [0] => fRBGAaJjTgy2dHNcgf1yQQ [1] => /services/Soap/u/34.0 [2] => dvdkliu-dev-ed.my.salesforce.com ) ) [location] => https://dvdkliu-dev-ed.my.salesforce.com/services/Soap/u/34.0/00Di0000000Y1qE [__default_headers] => Array ( [0] => SoapHeader Object ( [namespace] => urn:partner.soap.sforce.com [name] => SessionHeader [data] => Array ( [sessionId] => 00Di0000000Y1qE!ARwAQLHsvlfq7pHbsVvpJOEaG.qF5f6eS3kEnQ_j7WmXhkhJbt93kAkABKJ_r0lgYCHjoXg6Zamx1FG9ypCYkNhkcIcgFACG ) [mustUnderstand] => ) ) [__last_request] => <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:partner.soap.sforce.com"><SOAP-ENV:Header><ns1:SessionHeader><ns1:sessionId>00Di0000000Y1qE!ARwAQLHsvlfq7pHbsVvpJOEaG.qF5f6eS3kEnQ_j7WmXhkhJbt93kAkABKJ_r0lgYCHjoXg6Zamx1FG9ypCYkNhkcIcgFACG</ns1:sessionId></ns1:SessionHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:query><ns1:queryString>SELECT Id , IsDeleted , MasterRecordId , Name , Type , RecordTypeId , ParentId , BillingStreet , BillingCity , BillingState , BillingPostalCode , BillingCountry , BillingLatitude , BillingLongitude , BillingAddress , ShippingStreet , ShippingCity , ShippingState , ShippingPostalCode , ShippingCountry , ShippingLatitude , ShippingLongitude , ShippingAddress , Phone , Fax , AccountNumber , Website , PhotoUrl , Sic , Industry , AnnualRevenue , NumberOfEmployees , Ownership , TickerSymbol , Description , Rating , Site , OwnerId , CreatedDate , CreatedById , LastModifiedDate , LastModifiedById , SystemModstamp , LastActivityDate , LastViewedDate , LastReferencedDate , Jigsaw , JigsawCompanyId , AccountSource , SicDesc , regalray1__CustomerPriority__c , regalray1__SLA__c , regalray1__Active__c , regalray1__NumberofLocations__c , regalray1__UpsellOpportunity__c , regalray1__SLASerialNumber__c , regalray1__SLAExpirationDate__c , regalray1__Secret_Notes__c , regalray1__CSR__c , regalray1__Number_of_Females__c , regalray1__Contact_List__c , regalray1__Match_Billing_Address__c FROM Account LIMIT 2 OFFSET 0</ns1:queryString></ns1:query></SOAP-ENV:Body></SOAP-ENV:Envelope> [httpsocket] => Resource id #20 [_use_proxy] => 0 [httpurl] => Resource id #21 [__last_response] => <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:sobject.partner.soap.sforce.com"><soapenv:Header><LimitInfoHeader><limitInfo><current>355</current><limit>15000</limit><type>API REQUESTS</type></limitInfo></LimitInfoHeader></soapenv:Header><soapenv:Body><queryResponse><result xsi:type="QueryResult"><done>true</done><queryLocator xsi:nil="true"/><records xsi:type="sf:sObject"><sf:type>Account</sf:type><sf:Id>001i0000008ES3hAAG</sf:Id><sf:Id>001i0000008ES3hAAG</sf:Id><sf:IsDeleted>false</sf:IsDeleted><sf:MasterRecordId xsi:nil="true"/><sf:Name>GenePoint</sf:Name><sf:Type>Customer - Channel</sf:Type><sf:RecordTypeId xsi:nil="true"/><sf:ParentId xsi:nil="true"/><sf:BillingStreet>345 Shoreline Park Mountain View, CA 94043 USA</sf:BillingStreet><sf:BillingCity>Mountain View</sf:BillingCity><sf:BillingState>CA</sf:BillingState><sf:BillingPostalCode xsi:nil="true"/><sf:BillingCountry xsi:nil="true"/><sf:BillingLatitude xsi:nil="true"/><sf:BillingLongitude xsi:nil="true"/><sf:BillingAddress xsi:type="address"><latitude xsi:nil="true"/><longitude xsi:nil="true"/><city>Mountain View</city><country xsi:nil="true"/><countryCode xsi:nil="true"/><postalCode xsi:nil="true"/><state>CA</state><stateCode xsi:nil="true"/><street>345 Shoreline Park Mountain View, CA 94043 USA</street></sf:BillingAddress><sf:ShippingStreet>345 Shoreline Park Mountain View, CA 94043 USA</sf:ShippingStreet><sf:ShippingCity xsi:nil="true"/><sf:ShippingState xsi:nil="true"/><sf:ShippingPostalCode xsi:nil="true"/><sf:ShippingCountry xsi:nil="true"/><sf:ShippingLatitude xsi:nil="true"/><sf:ShippingLongitude xsi:nil="true"/><sf:ShippingAddress xsi:type="address"><latitude xsi:nil="true"/><longitude xsi:nil="true"/><city xsi:nil="true"/><country xsi:nil="true"/><countryCode xsi:nil="true"/><postalCode xsi:nil="true"/><state xsi:nil="true"/><stateCode xsi:nil="true"/><street>345 Shoreline Park Mountain View, CA 94043 USA</street></sf:ShippingAddress><sf:Phone>(650) 867-3450</sf:Phone><sf:Fax>(650) 867-9895</sf:Fax><sf:AccountNumber>CC978213</sf:AccountNumber><sf:Website>www.genepoint.com</sf:Website><sf:PhotoUrl>/services/images/photo/001i0000008ES3hAAG</sf:PhotoUrl><sf:Sic>3712</sf:Sic><sf:Industry>Biotechnology</sf:Industry><sf:AnnualRevenue>3.0E7</sf:AnnualRevenue><sf:NumberOfEmployees>265</sf:NumberOfEmployees><sf:Ownership>Public</sf:Ownership><sf:TickerSymbol xsi:nil="true"/><sf:Description>Genomics company engaged in mapping and sequencing of the human genome and developing gene-based drugs</sf:Description><sf:Rating>Cold</sf:Rating><sf:Site xsi:nil="true"/><sf:OwnerId>005i0000000OAO9AAO</sf:OwnerId><sf:CreatedDate>2013-05-06T01:55:17.000Z</sf:CreatedDate><sf:CreatedById>005i0000000OAO9AAO</sf:CreatedById><sf:LastModifiedDate>2016-04-08T15:41:52.000Z</sf:LastModifiedDate><sf:LastModifiedById>005i0000000OAO9AAO</sf:LastModifiedById><sf:SystemModstamp>2016-04-08T15:41:52.000Z</sf:SystemModstamp><sf:LastActivityDate xsi:nil="true"/><sf:LastViewedDate>2016-04-08T15:43:12.000Z</sf:LastViewedDate><sf:LastReferencedDate>2016-04-08T15:43:12.000Z</sf:LastReferencedDate><sf:Jigsaw xsi:nil="true"/><sf:JigsawCompanyId xsi:nil="true"/><sf:AccountSource xsi:nil="true"/><sf:SicDesc xsi:nil="true"/><sf:regalray1__CustomerPriority__c>Low</sf:regalray1__CustomerPriority__c><sf:regalray1__SLA__c>Bronze</sf:regalray1__SLA__c><sf:regalray1__Active__c>Yes</sf:regalray1__Active__c><sf:regalray1__NumberofLocations__c>1.0</sf:regalray1__NumberofLocations__c><sf:regalray1__UpsellOpportunity__c>Yes</sf:regalray1__UpsellOpportunity__c><sf:regalray1__SLASerialNumber__c>7324</sf:regalray1__SLASerialNumber__c><sf:regalray1__SLAExpirationDate__c>2012-12-01</sf:regalray1__SLAExpirationDate__c><sf:regalray1__Secret_Notes__c>My email address is dvdkliu+sfdc99@gmail.com!</sf:regalray1__Secret_Notes__c><sf:regalray1__CSR__c>005i0000000OAO9AAO</sf:regalray1__CSR__c><sf:regalray1__Number_of_Females__c>0.0</sf:regalray1__Number_of_Females__c><sf:regalray1__Contact_List__c xsi:nil="true"/><sf:regalray1__Match_Billing_Address__c>false</sf:regalray1__Match_Billing_Address__c></records><records xsi:type="sf:sObject"><sf:type>Account</sf:type><sf:Id>001i0000008ES3jAAG</sf:Id><sf:Id>001i0000008ES3jAAG</sf:Id><sf:IsDeleted>false</sf:IsDeleted><sf:MasterRecordId xsi:nil="true"/><sf:Name>United Oil & Gas, Singaporean</sf:Name><sf:Type>Customer - Direct</sf:Type><sf:RecordTypeId xsi:nil="true"/><sf:ParentId xsi:nil="true"/><sf:BillingStreet>9 Tagore Lane Singapore, Singapore 787472 Singapore</sf:BillingStreet><sf:BillingCity>Singapore</sf:BillingCity><sf:BillingState>Singapore</sf:BillingState><sf:BillingPostalCode xsi:nil="true"/><sf:BillingCountry xsi:nil="true"/><sf:BillingLatitude xsi:nil="true"/><sf:BillingLongitude xsi:nil="true"/><sf:BillingAddress xsi:type="address"><latitude xsi:nil="true"/><longitude xsi:nil="true"/><city>Singapore</city><country xsi:nil="true"/><countryCode xsi:nil="true"/><postalCode xsi:nil="true"/><state>Singapore</state><stateCode xsi:nil="true"/><street>9 Tagore Lane Singapore, Singapore 787472 Singapore</street></sf:BillingAddress><sf:ShippingStreet>9 Tagore Lane Singapore, Singapore 787472 Singapore</sf:ShippingStreet><sf:ShippingCity xsi:nil="true"/><sf:ShippingState xsi:nil="true"/><sf:ShippingPostalCode xsi:nil="true"/><sf:ShippingCountry xsi:nil="true"/><sf:ShippingLatitude xsi:nil="true"/><sf:ShippingLongitude xsi:nil="true"/><sf:ShippingAddress xsi:type="address"><latitude xsi:nil="true"/><longitude xsi:nil="true"/><city xsi:nil="true"/><country xsi:nil="true"/><countryCode xsi:nil="true"/><postalCode xsi:nil="true"/><state xsi:nil="true"/><stateCode xsi:nil="true"/><street>9 Tagore Lane Singapore, Singapore 787472 Singapore</street></sf:ShippingAddress><sf:Phone>(650) 450-8810</sf:Phone><sf:Fax>(650) 450-8820</sf:Fax><sf:AccountNumber>CD355120-B</sf:AccountNumber><sf:Website>http://www.uos.com</sf:Website><sf:PhotoUrl>/services/images/photo/001i0000008ES3jAAG</sf:PhotoUrl><sf:Sic>4437</sf:Sic><sf:Industry>Energy</sf:Industry><sf:AnnualRevenue>0.0</sf:AnnualRevenue><sf:NumberOfEmployees>3000</sf:NumberOfEmployees><sf:Ownership>Public</sf:Ownership><sf:TickerSymbol>UOS</sf:TickerSymbol><sf:Description xsi:nil="true"/><sf:Rating xsi:nil="true"/><sf:Site xsi:nil="true"/><sf:OwnerId>005i0000000OAO9AAO</sf:OwnerId><sf:CreatedDate>2013-05-06T01:55:17.000Z</sf:CreatedDate><sf:CreatedById>005i0000000OAO9AAO</sf:CreatedById><sf:LastModifiedDate>2016-03-02T03:11:32.000Z</sf:LastModifiedDate><sf:LastModifiedById>005i0000000OAOOAA4</sf:LastModifiedById><sf:SystemModstamp>2016-03-02T03:11:32.000Z</sf:SystemModstamp><sf:LastActivityDate xsi:nil="true"/><sf:LastViewedDate xsi:nil="true"/><sf:LastReferencedDate xsi:nil="true"/><sf:Jigsaw xsi:nil="true"/><sf:JigsawCompanyId xsi:nil="true"/><sf:AccountSource xsi:nil="true"/><sf:SicDesc xsi:nil="true"/><sf:regalray1__CustomerPriority__c>High</sf:regalray1__CustomerPriority__c><sf:regalray1__SLA__c>Platinum</sf:regalray1__SLA__c><sf:regalray1__Active__c>Yes</sf:regalray1__Active__c><sf:regalray1__NumberofLocations__c>6.0</sf:regalray1__NumberofLocations__c><sf:regalray1__UpsellOpportunity__c>Maybe</sf:regalray1__UpsellOpportunity__c><sf:regalray1__SLASerialNumber__c>2457</sf:regalray1__SLASerialNumber__c><sf:regalray1__SLAExpirationDate__c>2012-12-01</sf:regalray1__SLAExpirationDate__c><sf:regalray1__Secret_Notes__c>My email address is dvdkliu+sfdc99@gmail.com!</sf:regalray1__Secret_Notes__c><sf:regalray1__CSR__c>005i0000000OAO9AAO</sf:regalray1__CSR__c><sf:regalray1__Number_of_Females__c>0.0</sf:regalray1__Number_of_Females__c><sf:regalray1__Contact_List__c xsi:nil="true"/><sf:regalray1__Match_Billing_Address__c>false</sf:regalray1__Match_Billing_Address__c></records><size>2</size></result></queryResponse></soapenv:Body></soapenv:Envelope> ) [sessionId:protected] => 00Di0000000Y1qE!ARwAQLHsvlfq7pHbsVvpJOEaG.qF5f6eS3kEnQ_j7WmXhkhJbt93kAkABKJ_r0lgYCHjoXg6Zamx1FG9ypCYkNhkcIcgFACG [location:protected] => https://dvdkliu-dev-ed.my.salesforce.com/services/Soap/u/34.0/00Di0000000Y1qE [version:protected] => 27.0 [namespace:protected] => urn:partner.soap.sforce.com [callOptions:protected] => [assignmentRuleHeader:protected] => [emailHeader:protected] => [loginScopeHeader:protected] => [mruHeader:protected] => [queryHeader:protected] => [userTerritoryDeleteHeader:protected] => [sessionHeader:protected] => SoapHeader Object ( [namespace] => urn:partner.soap.sforce.com [name] => SessionHeader [data] => Array ( [sessionId] => 00Di0000000Y1qE!ARwAQLHsvlfq7pHbsVvpJOEaG.qF5f6eS3kEnQ_j7WmXhkhJbt93kAkABKJ_r0lgYCHjoXg6Zamx1FG9ypCYkNhkcIcgFACG ) [mustUnderstand] => ) [allowFieldTruncationHeader:protected] => [localeOptions:protected] => [packageVersionHeader:protected] => [client_id:protected] => )
- learn1.3947400898749973E12
- April 08, 2016
- Like
- 0
Trigger samples
Hi All,
I am new to salesforce..please give some trigger exampes with questions.
Thank you.
- learn1.3947400898749973E12
- August 07, 2014
- Like
- 0
Plugin with id 'com.github.dcendents.android-maven' not found.
I am completing MOBILE SDK NATIVE APP TRAILHEAD COURSE( https://trailhead.salesforce.com/modules/mobile_sdk_native_android/units/mobilesdk_android_getting_started)
but I'm getting stuck while building cloned repo using Android studio.
Error occured into build.graddle file:
Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
First few lines of code are pasted below:
Please help me to resolve this issue.
but I'm getting stuck while building cloned repo using Android studio.
Error occured into build.graddle file:
Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
First few lines of code are pasted below:
apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' dependencies { compile project(':libs:SmartStore') } android { compileSdkVersion 25 buildToolsVersion '23.0.1' buildTypes { debug { testCoverageEnabled = true } }
Please help me to resolve this issue.
- Pratik Pawar
- February 22, 2017
- Like
- 2
Getting Started with Native Android Development shell.js error
Ok everyone I need some help with a trailhead I have been fighting with my last few Badges for a while now and for the life of me I can fix the issue. These are the last 4 badges I need and I cant get them because I cant get the command line to create the APP. I have made sure I have installed all of the appropriate items Node.js, SDK, android studio ect. I am getting hung up on the example at the top when I get to the last step of the forcedroid create. I am getting a Shell.js internal error that tells me the directories dont exisit. I have verified that the directory is actually there when I look in windows explore. I am not sure if maybe I am setting the ADROID_HOME enviroment wrong or not. The trailhead is not very clear on that. Below is the error from the CMD prompt.
The File path is direcory
I have googled the issue mutiple times but I cant seem to get any one the solutions mentioned to clear my error. Any help would be appreeciated.
The File path is direcory
I have googled the issue mutiple times but I cant seem to get any one the solutions mentioned to clear my error. Any help would be appreeciated.
- merrick deville
- February 09, 2016
- Like
- 1