-
ChatterFeed
-
65Best Answers
-
0Likes Received
-
2Likes Given
-
13Questions
-
428Replies
Continuation Class v/s Future Call out true
Just wanted to understand the difference between when to use Continutaion Class and when to use @future (callout = true) in case asynchronous invocation of WS.
In case of imported WSDL, can we call the sync stub class from a method using @future(callout == true) or we have to use asyncWSDLtoApex class passing the continuation object.
Can anyone please explain both the concepts with bit explanation.
Great Thanks
Somnath
- Somnath Paul 3
- November 03, 2015
- Like
- 0
- Continue reading or reply
How to default a lookup field when a new row has been clicked.
I am trying to populate a lookup field (Match_Day_Ops__c) every time the 'add new' button is clicked. I have created a visualforce page that allows a new row of fields to be added on the pae without refreshing.
Visualforce Page:
<apex:page sidebar="false" StandardController="Incident_Log__c" extensions="IncidentLogPopup"> <apex:form > <apex:pageBlock id="membAdd" > <apex:pageBlockButtons location="Both"> <apex:commandButton value="Save" Action="{!save}" /> <apex:commandButton value="Cancel" action="{!cancel}"/> </apex:pageBlockButtons> <apex:pageblockSection > <apex:pageBlockTable value="{!memberAddList}" var="memb"> <apex:column headerValue="Match Day Ops"> <apex:inputField value="{!memb.Match_Day_Ops__c}"/> </apex:column> <apex:column headerValue="Priority"> <apex:inputField value="{!memb.Priority__c}"/> </apex:column> <apex:column headerValue="Date/Time"> <apex:inputField value="{!memb.Date_Time__c}"/> </apex:column> <apex:column headerValue="Incident Open"> <apex:inputField value="{!memb.Incident__c}"/> </apex:column> <apex:column headerValue="Date/Time Closed"> <apex:inputField value="{!memb.Date_Closed__c}"/> </apex:column> <apex:column headerValue="Incident Closed"> <apex:inputField value="{!memb.Incident_Closed__c}"/> </apex:column> <apex:column headerValue="Reported To"> <apex:inputField value="{!memb.Reported_To__c}"/> </apex:column> <apex:column headerValue="Reported By"> <apex:inputField value="{!memb.Reported_By__c}"/> </apex:column> </apex:pageBlockTable> <br/><apex:commandLink value="Add Row" action="{!addRow}" reRender="membAdd" /> </apex:pageblockSection> <apex:pageblockSection columns="1" > <apex:pageblockSectionItem > </apex:pageblockSectionItem> </apex:pageblockSection> </apex:pageBlock> </apex:form> </apex:page>
Controller:
public class IncidentLogPopup { public IncidentLogPopup(ApexPages.StandardSetController controller) { } public List<Incident_Log__c> memberList {get;set;} public List<Incident_Log__c> memberAddList {get;set;} public String memberName {get;set;} public string searchstring {get;set;} public IncidentLogPopup(ApexPages.StandardController controller) { String sql = 'SELECT Match_Day_Ops__c, Date_Time__c, Date_Closed__c, Priority__c, Incident__c, Reported_to__c, Reported_By__c, Opened_Closed_Status__c FROM Incident_Log__c'; memberList = Database.Query(sql); memberAddList = new List<Incident_Log__c>(); memberAddList.add(new Incident_Log__c()); } public void AddRow() { memberAddList.add(new Incident_Log__c()); } Public Pagereference Save(){ insert memberAddlist; return null; } }
Thanks
- Andrew Hoban 6
- October 29, 2014
- Like
- 0
- Continue reading or reply
web to lead record types
Our website captures different types of leads (different record Types). I am passing record type(hard coded) from website for different leads but all my leads are created of one type only ????
- CRJ2011
- February 07, 2013
- Like
- 0
- Continue reading or reply
Multiple object custom report type
I have 4 master detail relationships on the Account object. Is there a way to create a single custom report type that will access all 4 of those relationships?
- Max_g
- February 07, 2013
- Like
- 0
- Continue reading or reply
Fetching custom object data into Visual force and embedding VF page in standard tab/object
Hi,
I want to use custom object field values in VF page ( I can do this by specifying the controller as my custom object and page loads in the custom tab).
Now the page created above I need to embed this in some other Tab say Account. I don't get an error when I use the above page on wellform page. But it shows an error:
Content cannot be displayed: Id value 001d000000Va7JT is not valid for the "mycustomobject"
I understand the error. But I really need to use this VF page in the standard tab.
Any pointers help is most appreciated.
Please ..
- TeachMe
- February 06, 2013
- Like
- 0
- Continue reading or reply
Creating new record inline?
If I am using the Account standard controller and I have Contacts in that layout, is it possible to have have input fields in that related list so users can create a new contact without having to go to another page? I am running professional version so I can't create apex classes and am trying to find a way to add child/related objects without so much navigation and page loads.
- Ian_C
- February 06, 2013
- Like
- 0
- Continue reading or reply
Regarding related lists
Hi,
This is Rajesh, I want to assign a readonly and delete permision for a RELEATED LIST
to only user who created that one, and i dnt want other users to do any operation on same Releated list,
please help me on this........!
- hi123
- February 03, 2013
- Like
- 0
- Continue reading or reply
E-Mail verification decativation
Hi ,
How could I deactivate the verification E-Mail sent from salesforce on a chnage of the E-Mail address? is this the standard salesforce functionalities aplicable for all the Orgs? or can this be disabled somehow?
Please help.
Thanks in advance for any posts or help on this
- SFDC Talaash
- February 02, 2013
- Like
- 0
- Continue reading or reply
Is it possible to localize whole Dev cloud into Japanese?
Hi,
I am new to SFDC and just signed up for free developer edition of SFDC. I chose "Japanese(日本)" for country, but when I log into the new site, whole languages are English. I want to have everything in Japanese for my development.
I was able to create 30 days free trial edition - this is Professional Edition - last week and it was all in Japanese. Since Professional Edition is limited to its functionality and that's why I created developer edition. Is it possible to have developer edition, with full functionality in Japanese somehow?
Thanks,
Kensho Tsuchihashi
- tsuck
- November 19, 2012
- Like
- 0
- Continue reading or reply
Need to remove focus from the field
How to remove the focus from the first text field when the page is loading? Pls let me know as it is urgent.
- devfre
- September 06, 2012
- Like
- 0
- Continue reading or reply
how to migrate profiles from sandbox to production
Hi,
Any quick tips to migrate profile permissions from one instance to another instance. I know we can do it using force.com tool (eclipse) but not sure how to do it. Any steps to follow would help us.
Thanks
- SalesforceChamp
- August 27, 2012
- Like
- 0
- Continue reading or reply
How to log out from salesforce chatter desktop application?
I am unable to log out from salesforce chatter desktop application.
Even on signing out from the login.salesforce.com website am still signed in into the salesforce.com chatter desktop application.....
How to log out?
- Abhijeet Purohit01
- August 27, 2012
- Like
- 0
- Continue reading or reply
APEX IS STRONGLY TYPED LANGUAGE - What does it mean?
APEX IS STRONGLY TYPED LANGUAGE - What does it mean?
Thanks
Kiran
- KIRONKUMARK
- August 27, 2012
- Like
- 0
- Continue reading or reply
Is there a limit to the number of records I can send to my VF page?
Hello,
I am creating a large PDF document from my Apex controller. From the controller , I am sending over 400 record IDs.
So, the URL that is returned from the controller looks like this:
apex/myPage?id=a16V00000GVC4IAO%2C..... plus 400 or so more IDs.
When I run the code with fewer IDs, it works.
When I run with over 400 IDs, I get a Heap error.
I can't view any more info about the error, because the Developer Console crashes every time.
Is there a limit to how many IDs I can send to a page using the method above?
Any help would be greatly appreciated!
Thank you in advance!
- Soozee
- August 22, 2012
- Like
- 0
- Continue reading or reply
dynamic search functionality for account object
could any one send the dynamic search functionality for account object..??
in any field..
- Arun K
- August 22, 2012
- Like
- 0
- Continue reading or reply
Question about Encrypted Field
Hi,
Does anyone know how to create a custom encrypted filed(like password)? And how does Salesforce store it and retrieve back the details?
Thank you!
- WEN JIE
- August 20, 2012
- Like
- 0
- Continue reading or reply
HOW DO I GET XML DATA FROM WEB TO CUSTOM OBJECT FIELDS?
- byrds
- August 18, 2012
- Like
- 0
- Continue reading or reply
Installation of Force.com IDE plugin for eclipse error
Cannot complete the install because of a conflicting dependency.
Software being installed: Force.com IDE 25.0.0.201206181021 (com.salesforce.ide.feature.feature.group 25.0.0.201206181021)
Software currently installed: Eclipse IDE for Java Developers 1.3.1.20100916-1202 (epp.package.java 1.3.1.20100916-1202)
Only one of the following can be installed at once:
International Components for Unicode for Java (ICU4J) 4.2.1.v20100412 (com.ibm.icu 4.2.1.v20100412)
International Components for Unicode for Java (ICU4J) 4.0.1.v20090822 (com.ibm.icu 4.0.1.v20090822)
Only one of the following can be installed at once:
Structured Source Editor 1.2.2.v201008232126 (org.eclipse.wst.sse.ui 1.2.2.v201008232126)
Structured Source Editor 1.1.102.v200910200227 (org.eclipse.wst.sse.ui 1.1.102.v200910200227)
Cannot satisfy dependency:
From: Force.com IDE 25.0.0.201206181021 (com.salesforce.ide.feature.feature.group 25.0.0.201206181021)
To: org.eclipse.wst.html.ui [1.0.0,2.0.0)
Cannot satisfy dependency:
From: Eclipse IDE for Java Developers 1.3.1.20100916-1202 (epp.package.java 1.3.1.20100916-1202)
To: org.eclipse.epp.package.java.feature.feature.group [1.3.1.20100916-1202]
Cannot satisfy dependency:
From: EPP Java Package 1.3.1.20100916-1202 (org.eclipse.epp.package.java.feature.feature.group 1.3.1.20100916-1202)
To: org.eclipse.rcp.feature.group 3.6.0
Cannot satisfy dependency:
From: EPP Java Package 1.3.1.20100916-1202 (org.eclipse.epp.package.java.feature.feature.group 1.3.1.20100916-1202)
To: org.eclipse.wst.xml_ui.feature.feature.group 0.0.0
Cannot satisfy dependency:
From: Java EMF Model Utilities 2.0.201.v201001252130 (org.eclipse.jem.util 2.0.201.v201001252130)
To: bundle com.ibm.icu [3.8.1.1,4.1.0)
Cannot satisfy dependency:
From: Eclipse RCP 3.6.1.r361_v20100827-9OArFLdFjY-ThSQXmKvKz0_T (org.eclipse.rcp.feature.group 3.6.1.r361_v20100827-9OArFLdFjY-ThSQXmKvKz0_T)
To: com.ibm.icu [4.2.1.v20100412]
Cannot satisfy dependency:
From: WST Common Core 3.1.1.v200908102300-7B77FZ6F7RZHKDIwRlOwUN (org.eclipse.wst.common_core.feature.feature.group 3.1.1.v200908102300-7B77FZ6F7RZHKDIwRlOwUN)
To: org.eclipse.jem.util [2.0.201.v201001252130]
Cannot satisfy dependency:
From: WST Common UI 3.1.1.v200908102300-7B5FRHDhdMOGnoekn4gtEJxSmPxV (org.eclipse.wst.common_ui.feature.feature.group 3.1.1.v200908102300-7B5FRHDhdMOGnoekn4gtEJxSmPxV)
To: org.eclipse.wst.common_core.feature.feature.group [3.1.1.v200908102300-7B77FZ6F7RZHKDIwRlOwUN]
Cannot satisfy dependency:
From: HTML UI Source Editor 1.0.401.v200908111935 (org.eclipse.wst.html.ui 1.0.401.v200908111935)
To: bundle org.eclipse.wst.sse.ui [1.1.0,1.2.0)
Cannot satisfy dependency:
From: Eclipse XML Editors and Tools 3.1.1.v200907161031-7H6FMbDxtkMs9OeLGF98LRhdPKeo (org.eclipse.wst.xml_ui.feature.feature.group 3.1.1.v200907161031-7H6FMbDxtkMs9OeLGF98LRhdPKeo)
To: org.eclipse.wst.common_ui.feature.feature.group [3.1.1.v200908102300-7B5FRHDhdMOGnoekn4gtEJxSmPxV]
Cannot satisfy dependency:
From: Eclipse XML Editors and Tools 3.2.2.v201008170029-7H7AFUQDxumQGOpBqffOY2f1qxDZ (org.eclipse.wst.xml_ui.feature.feature.group 3.2.2.v201008170029-7H7AFUQDxumQGOpBqffOY2f1qxDZ)
To: org.eclipse.wst.sse.ui [1.2.2.v201008232126]
I get the error above. How can I solve this? Please help me
Thank you
~VK
- Bpositive
- August 17, 2012
- Like
- 0
- Continue reading or reply
Java script button- how to get object ID of object?
How do you get the ID of the specific object/record that a button was clicked for?
- SesameTom
- August 12, 2012
- Like
- 1
- Continue reading or reply
Custom Export Button
Hi all,
Is it possible to create a custom button implementing the "Export Details" functionality in any page? To be in detail, in my Contact list view which lists contacts based on the Selected View (All Contacts, My Contacts, Recently Viewed..), is it possible to have a custom "Export" button which will export the selected contacts to local Excel file or other text file? Basically I just want to create a custom "Export" button to export the selected contact details to my local machine. Any suggestion would be of really a great help guys..!!
-Kayal
- Kayal P
- August 11, 2012
- Like
- 0
- Continue reading or reply
Whats wrong in my solution for Trailhead challenge
<aura:component > <aura:attribute name="fName" type="String" default="Jitendra"/> <aura:attribute name="lName" type="String" default="Zaa"/> <aura:attribute name="pNumber" type="String" default="201"/> <aura:attribute name="sal" type="String" default="Mr."/> <ui:inputText label="First Name" value="{!v.fName}" /> <ui:inputText label="Last Name" value="{!v.lName}" /> <ui:inputText label="Phone Number" value="{!v.pNumber}" /> <ui:inputSelect multiple="false" label="Salutation" value="{!v.sal}" > <ui:inputSelectOption text="Dr." label="Dr." /> <ui:inputSelectOption text="Mr." label="Mr."/> <ui:inputSelectOption text="Mrs." label="Mrs."/> <ui:inputSelectOption text="Ms." label="Ms."/> </ui:inputSelect> <ui:button label="Submit"/> </aura:component>
- Jitendra
- August 27, 2015
- Like
- 0
- Continue reading or reply
Dynamic parameter in Command line Data Loader
Hello friends,
I was searching for the provision to pass the dynamic parameter in file "process-conf.xml".
For example - Log file locations, Export data file etc.
I am planning to take the complete salesforce data backup wickly with the help of DataLoader and path should automatically change like "Date Name". Every export files should go in different folder organized by date name.
- Jitendra
- August 16, 2012
- Like
- 0
- Continue reading or reply
Creating and Fetching Test Data in Controller Extension
Hello friends,
I need your help in Test class writing for Controller extension.
I have written the test case for Controller extension. I have created all the Test data and suppliying the test record in constructor of controller extension.
I knew that in test class, nothing is inserted into database and we just get the ID of record.
When i try to fetch the test record in Test class itself it is working fine However when i try to use same query in Controller extension, no records are returned.
That means i am not able to use any test data in Controller extension.
Some code snap i am using :
static testMethod void testPaymentWizard_noApprovedAmount() { PageReference paymentPage = Page.PaymentWizard; //Create temp User User testUser = UtilTest.getProgramUser(); //Create temp data List<Opportunity> oppList = UtilTest.getProposal_PayWizard(); insert oppList; //Ensure that all 3 Opportunity inserted successfully System.assertNotEquals(oppList[0].Id, null); System.assertNotEquals(oppList[1].Id, null); System.assertNotEquals(oppList[2].Id, null); System.assertNotEquals(oppList[2].RecordTypeID,null); //Create temp data User pu = UtilTest.getProgramUser(); Test.setCurrentPage(paymentPage); Test.startTest(); System.runAs(pu) { //set some dependent test data UtilTest.setProposalStaff_PayWizard(oppList[0].Id,pu); ApexPages.StandardController sc = new ApexPages.StandardController(oppList[2]); sc = new ApexPages.StandardController(oppList[2]); pc = new PaymentController(sc); System.assertNotEquals(pc, null); //In this method Test data created is not available Pagereference firstPage = pc.processSelected(); } Test.stopTest(); }
Is something important i am missing here?
Thanks in advance.
- Jitendra
- August 10, 2012
- Like
- 0
- Continue reading or reply
IE9 issue with AJAX inside inline Visualforce page
Hi everyone,
I have inline visualforce page with some AJAX operations. However it was not working with IE9, so i used "ShowHeader=True" in <apex:page>. This solved the AJAX problem with IE9. But this created a new issue.
In my Inline VF i have few input fields. So whenever the page is loaded it autoscroll'sto middle of the page where inline VF is present and auto focus to first input field.
Please help me to resolve this issue.
Thanks in advance.
- Jitendra
- July 30, 2012
- Like
- 0
- Continue reading or reply
Apex code for Document merging in LooPlus
Hi everyone,
I am using appExchange product "LooPlus" to merge all the attachments and create single attachment.
My Requirement is to automate the document creation using Apex. I am searching for any API or code sample to use the DDP but no luck.
It would be appreaciated if some one can help by providing the example code for this.
Thanks in advance.
- Jitendra
- May 24, 2012
- Like
- 0
- Continue reading or reply
Hoovers/D&B API - Apex class parsing WSDL fail
Hi Experts,
I am trying to parse the WSDL provided by the Hovvers (D&B) however it gives me the "Parser error".
I am able to access and execute the REST API, Is there anything can be done because i cannot modify the WSDL of Hoovers(D&B).
Error: Failed to parse wsdl: Unexpected element 'group' at: 3:50285.
Same question is asked at - http://developer.hoovers.com/forum/read/98182, however no luck on answer.
Thanks in advance.
- Jitendra
- February 06, 2012
- Like
- 0
- Continue reading or reply
Data Uploader gives error too many SOQL in trigger before insert
Hi Friends,
I have one trigger to check the duplicasy of lead.
following is the code snap which gives the error of TOO MANY SOQL.
if(lead.Email != null){
leadList = [Select l.LastName,l.id, l.FirstName, l.Email, l.Company From Lead l where l.Email=:lead.Email limit :Limits.getLimitQueryRows()];
if(!leadList.isEmpty()){
for(Lead singleLead:leadList){
if(lead.id != singleLead.id){//DO not compare with itself
lead.Email.adderror('duplicate lead exist with same email id : '+singleLead.Email+' and Lead name : '+singleLead.FirstName+' '+singleLead.LastName);
return ;
}
}
}
}
Can any body help me, that why this error is happening.
I am uploading record from dataloader nearlly 400 records.
Thanks,
Jitendra
- Jitendra
- June 13, 2009
- Like
- 0
- Continue reading or reply
Strange behaviour of eclipse
Hi,
Before one day everything was working fine.
But today i am getting strange problem in eclipse. I am not able to save anything to the sales force but i am able to synchronize with server,even i am able to use salesforce schema window.
If i change only one space in existing code, still it shows an error unable to save. IN short i am not able to change anything on server i can only read.
Please help to verify the problem. I am the system administrator in salesforce and therefore i have permission to use force IDE.
- Jitendra
- February 19, 2009
- Like
- 0
- Continue reading or reply
Not able to save anything from eclipse IDE
Hi,
Before one day everything was working fine.
But today i am getting strange problem in eclipse. I am not able to save anything to the sales force but i am able to synchronize with server,even i am able to use salesforce schema window.
If i change only one space in existing code, still it shows an error unable to save. IN short i am not able to change anything on server i can only read.
Please help to verify the problem. I am the system administrator in salesforce and therefore i have permission to use force IDE.
- Jitendra
- February 19, 2009
- Like
- 0
- Continue reading or reply
How to set the From field in Email
I am sending the automaic Email to the users using Apex. I am able to send different emails to different user.
But i am not able to set the From field in the Apex Code.
Email is sent by the Trigger and trigger is activated by Workflow Rule.
It takes the name of last Logged in User by default to set the From field of the email.
Is there any Way to set the Name of default Workflow user or any other User?
Please suggest any solution or work around if you know.
- Jitendra
- October 16, 2008
- Like
- 0
- Continue reading or reply
How to write a piece of code which will run after specific Time
I need to write a piece of code which will get the List of Opportunity difrentiated by some criteria and want to email those records every weekends.
Its like Time Based coading.
I have read about time dependent Workflow triggers but it doesnt resolves my problem because it does not provide flexibility to write the Apex code.
I want to run the code once in every week.
Can anyone give some suggestions?
Thanks in Advance!
- Jitendra
- October 08, 2008
- Like
- 0
- Continue reading or reply
Large query result error
I am writting the Apex select statement and query returns the rows more than 800.
I read article on large query result and used for loop. but when i test the code it fails to compile and if i didnt test the code, query is executed succesfully on Live.
it is neccessary to test the code , otherwise my testing percentage will go below 75%.
My source code is:
Integer counter = 0; for(List<Account> opp : [Select a.Id From Account a]){ counter++; }
Integer counter = 0; for(List<Account> opp : [Select a.Id From Account a limit 300]){ counter++; }
My record may go above 2000 in future.
Can any body help me how to get rid off by this problem. :smileysad:
Thanks in advance!
Jitendra Zaa
- Jitendra
- September 05, 2008
- Like
- 0
- Continue reading or reply
How to change the value of Date type of field depending on the value of Picklist selected.
I have to change the Date type of field depending on the value of picklist selected.
I tried using the formula field , but the problem is that it is read only and it is not visible on edit or create new opportunity screen.
formula field is workin fine but it is invisible at the time of creating opportunity.
Can anybody tell how to write formula for picklist?
there is no formula editor for picklist type of field. :smileysad:
Please help me.
Thanks in advance.
Regards,
Jitendra zaa
- Jitendra
- August 19, 2008
- Like
- 0
- Continue reading or reply
Scroll to the top of the page component not displaying in a lightning console application
Please let me know if you have any suggestions on how to display this component on a console record page.
ScrollToTopOfPage.cmp:
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome" access="global">
<aura:attribute name="title" type="string" default="Go to top" description="Tooltip text when the mouse moves over the element"/>
<aura:attribute name="label" type="string" default="Go to top" description="Text to be displayed inside the button"/>
<aura:attribute name="className" type="string" description="CSS class for element"/>
<aura:attribute name="heightToShowButton" type="integer" default="100" description="Height after which button will be visible"/>
<aura:attribute name="iconName" type="string" default="utility:jump_to_top" description="Lightning Design System name of the icon. Names are written in the format 'utility:down' where 'utility' is the category, and 'down' is the specific icon to be displayed."/>
<aura:attribute name="iconPosition" type="string" default="right" description="Describes the position of the icon with respect to body. Options include left and right."/>
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
<lightning:button variant="brand" aura:id="scrollToTopBtn" class="{!'scrollToTopBtn hideBtn ' + v.className}"
iconName="{!v.iconName}" iconPosition="{!v.iconPosition}"
title="{!v.title}" label="{!v.label}" onclick="{!c.scrollToTop}"/>
</aura:component>
ScrollToTopOfPageController.js:
({
doInit : function(component, event, helper){
helper.bindScrollEvent(component, event);
},
scrollToTop : function(component, event, helper) {
window.scroll({
top: 0,
behavior: 'smooth'
});
}
})
ScrollToTopOfPageHelper:
({
bindScrollEvent : function(component, event) {
var heightIndx = component.get("v.heightToShowButton");
console.log("testing");
window.onscroll = function() {
console.log("scrolling");
var btnCmp = component.find("scrollToTopBtn");
if (document.body.scrollTop > heightIndx || document.documentElement.scrollTop > heightIndx) {
$A.util.removeClass(btnCmp, 'hideBtn');
console.log("if");
} else {
$A.util.addClass(btnCmp, 'hideBtn');
console.log("else");
}
};
}
})
ScrollToTopOfPage.css:
.THIS.scrollToTopBtn {
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
font-size: 18px;
border: none;
outline: none;
cursor: pointer;
padding: 15px;
border-radius: 4px;
}
.THIS.hideBtn{
display : none;
}
ScrollToTopOfPage.design:
<design:component >
<design:attribute name="title" default="Go to top" description="Tooltip text when the mouse moves over the element"/>
<design:attribute name="label" default="Go to top" description="Text to be displayed inside the button"/>
<design:attribute name="className" description="CSS class for element"/>
<design:attribute name="iconName" default="utility:jump_to_top" description="Lightning Design System name of the icon. Names are written in the format 'utility:down' where 'utility' is the category, and 'down' is the specific icon to be displayed."/>
<design:attribute name="iconPosition" default="right" description="Describes the position of the icon with respect to body. Options include left and right."/>
<design:attribute name="heightToShowButton" default="100" description="Height after which button will be visible"/>
</design:component>
- Beth Chelmowski
- April 13, 2018
- Like
- 0
- Continue reading or reply
Custom Button to run batch class
I need your help that how can I create a custom button on list view to run the batch class.
Right now I go to developer console and click on Debug and click on Open Execute Anonymous Window and then I enter Database.executeBatch(new CreateOrderBatch(),1); and then execute it. When I execute it then it makes a API call.
Is there a way I can just click on the Custom Button on List View and it makes API calls instead of going Developer Console?
Thanks!
- nksf
- November 03, 2015
- Like
- 0
- Continue reading or reply
Stop the auto trigger email
Is there any way, to stop the auto email trigger to the user when the user is newly created? Please help.
-Kaity
- Kaity
- November 03, 2015
- Like
- 0
- Continue reading or reply
Continuation Class v/s Future Call out true
Just wanted to understand the difference between when to use Continutaion Class and when to use @future (callout = true) in case asynchronous invocation of WS.
In case of imported WSDL, can we call the sync stub class from a method using @future(callout == true) or we have to use asyncWSDLtoApex class passing the continuation object.
Can anyone please explain both the concepts with bit explanation.
Great Thanks
Somnath
- Somnath Paul 3
- November 03, 2015
- Like
- 0
- Continue reading or reply
Custom Button, Field Update
- Christopher DeFilippi
- October 31, 2015
- Like
- 0
- Continue reading or reply
Not getting session Id in identity provider (Salesforce to salesforce integration using canvas)
I am trying to develop S2S integration using canvas application. For that i followed http://www.jitendrazaa.com/blog/salesforce/salesforce-to-salesforce-integration-using-canvas/ In that he asked to develop a VF(in service provider) which will be called in identity provider.
VF code is as below
<apex:page showHeader="false"> <script type="text/javascript" src="{!URLFOR($Resource.CanvasSDK,'SalesforceCanvasJavascriptSDK-master/js/canvas-all.js')}" /> <script type="text/javascript"> var sid="{!GETSESSIONID()}".substr(1,30) +'...'; function refreshSR(){ Sfdc.canvas.client.refreshSignedRequest(function(data){ if(data.status == 200){ var signedRequest = data.payload.response; var part = signedRequest.split('.')[1]; var obj = JSON.parse(Sfdc.canvas.decode(part)); updateDisplay(obj) ; } }); } function updateDisplay(obj){ setValue('spSessionId', sid); setValue('ipOAuth', obj.client.oauthToken.substr(1,30)+'...'); setValue('ipUser', obj.context.user.fullName); setValue('ipOrg', obj.context.organization.name); setValue('ipRefresh', obj.client.refreshToken.substr(1,30)+'...'); } function setValue(eleId,val) { var domEl = document.getElementById(eleId); if(domEl){ domEl.innerHTML = val; } } Sfdc.canvas.onReady(function(){ refreshSR(); }); </script> <b> <u> Service Provider Org </u></b> I am Canvas App from Salesforce Domain <b> Jitendra.zaa5@gmail.com </b> User : {!$User.FirstName} {!$User.LastName} Org : {!$Organization.Name} Session Id : <span id="spSessionId"></span> <hr /> <b> <u> Identity Provider Org - Current Org </u> </b> User : <span id="ipUser"></span> Org : <span id="ipOrg"></span> OAUth Token : <span id="ipOAuth"></span> Refresh Token : <span id="ipRefresh"></span> </apex:page>My VF page showing without the session id and informations of identity provider as below
How to get those values. I Need some one help to resolve it.
Thanks.
- Sami Shakith
- October 14, 2015
- Like
- 0
- Continue reading or reply
Whats wrong in my solution for Trailhead challenge
<aura:component > <aura:attribute name="fName" type="String" default="Jitendra"/> <aura:attribute name="lName" type="String" default="Zaa"/> <aura:attribute name="pNumber" type="String" default="201"/> <aura:attribute name="sal" type="String" default="Mr."/> <ui:inputText label="First Name" value="{!v.fName}" /> <ui:inputText label="Last Name" value="{!v.lName}" /> <ui:inputText label="Phone Number" value="{!v.pNumber}" /> <ui:inputSelect multiple="false" label="Salutation" value="{!v.sal}" > <ui:inputSelectOption text="Dr." label="Dr." /> <ui:inputSelectOption text="Mr." label="Mr."/> <ui:inputSelectOption text="Mrs." label="Mrs."/> <ui:inputSelectOption text="Ms." label="Ms."/> </ui:inputSelect> <ui:button label="Submit"/> </aura:component>
- Jitendra
- August 27, 2015
- Like
- 0
- Continue reading or reply
curl command on salesforce platform
If it is possible, can you please point me to information on how to run simple CURL command on the Salesforce platform.
Thanks
- Dillip Emmanuel 1
- August 27, 2015
- Like
- 0
- Continue reading or reply
Sending for approval without clicking button
- Claudia Contreras
- May 06, 2015
- Like
- 0
- Continue reading or reply
Tabs in visualforce
<apex:page standardController="Opportunity" sidebar="false" showHeader="false">
<apex:tabPanel switchType="client" selectedTab="tabdetails"
id="OpportunityTabPanel" tabClass="activeTab"
inactiveTabClass="inactiveTab">
<apex:tab label="Onboarding">
<apex:form >
<center><apex:commandButton action="{!Save}" value="Save"/></center><br></br> <br></br>
<apex:inputField value="{!opportunity.Growth_Enhancement_Track__c}"/>
</apex:form>
</apex:tab>
<apex:tab label="Analysis">
</apex:tab>
<apex:tab label="Follow-up">
</apex:tab>
</apex:tabPanel>
</apex:page>
This is what it looks like also after I hit save.
This is what I would like it to look like after I hit save. Fields are just an example
- Samuel JohnsonCBE
- May 06, 2015
- Like
- 0
- Continue reading or reply
How to to show more than 4 columns of custom VisualForce page in Dashboards?
- anilkallamadi kallamadi
- October 30, 2014
- Like
- 0
- Continue reading or reply
PHP example with Workflow - Outbound Messages
We need to update some values of our website when we change a record in Salesforce.
I think this is possible with the 'workflow'... We need a PHP example of how to get this call...
Thanks in advance
- Iñigo Corres Alvarez
- October 23, 2014
- Like
- 0
- Continue reading or reply
what is the need of custom web services?
- subba reddy 4
- October 22, 2014
- Like
- 0
- Continue reading or reply
Data Loader using command line password error
Hi Folks,
I'm trying to run an insert using Data loader with command line interface. Below is my command:
C:\Program Files\salesforce.com\Data Loader\bin>process.bat "C:\Program Files\Salesforce.com" accountInsert
- JR1204
- August 22, 2013
- Like
- 0
- Continue reading or reply
Dropdown Choice element showing as Required field when they are not
On the design canvas, I have 4 dropdown choice elements that do not show as required (e.g., no Red bar next to them, nor have I check any Required box in their definition).
But when the flow is run, all dropdown choice fields become required, with both a read bar to the left of the field and a clearly enforced required validation complaint if one tries to pretend they are options.
Any idea how I can avoid having all dropdown choice field being required? I'm clearly missing something basic :smileyfrustrated:
- sunnydale
- May 23, 2012
- Like
- 0
- Continue reading or reply
Struggling with Apex Data Loader Command Line Password
I seem to be having an issue with the Encrypt or decrypt portion of the password process. From what i read on the return from command prompt, it knows the first two characters in my password and decrypts it properly ("Sh") but it seems to have a problem with something after this point??? Or i could be completely crazy...
Might anyone be able to shed some light? Did i encrypt wrong? Is it recquired to have a key file? If so, where am i supposed to place it?
Any help would be appreciated.
834 [main] FATAL com.salesforce.dataloader.process.ProcessRunner - Unable to ru n process UofUAccountExtractToCSV java.lang.RuntimeException: com.salesforce.dataloader.exception.ParameterLoadExc eption: Error loading parameter: sfdc.password of type: java.lang.String at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav a:136) at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav a:74) at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.ja va:226) Caused by: com.salesforce.dataloader.exception.ParameterLoadException: Error loa ding parameter: sfdc.password of type: java.lang.String at com.salesforce.dataloader.config.Config.decryptProperty(Config.java:6 83) at com.salesforce.dataloader.config.Config.postLoad(Config.java:620) at com.salesforce.dataloader.config.Config.loadParameterOverrides(Config .java:646) at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav a:94) ... 2 more Caused by: java.lang.NumberFormatException: For input string: "Sh" at java.lang.NumberFormatException.forInputString(NumberFormatException. java:48) at java.lang.Integer.parseInt(Integer.java:447) at java.lang.Integer.valueOf(Integer.java:526) at java.lang.Integer.decode(Integer.java:919) at com.salesforce.dataloader.security.EncryptionUtil.textToBytes(Encrypt ionUtil.java:58) at com.salesforce.dataloader.security.EncryptionUtil.decryptString(Encry ptionUtil.java:194) at com.salesforce.dataloader.config.Config.decryptProperty(Config.java:6 68)
process-conf.xml looks like this:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="UofUAccountExtractToCSV" class="com.salesforce.dataloader.process.ProcessRunner" singleton="false"> <description>Gets the UofU accounts with clients and exports to CSV"</description> <property name="name" value="UofUAccountExtractToCSV"/> <property name="configOverrideMap"> <map> <entry key="sfdc.debugMessages" value="false"/> <entry key="sfdc.debugMessagesFile" value="c:\Salesforce\DataLoader\Resources\Logs\SFDCdebug.log"/> <entry key="sfdc.endpoint" value="https://login.salesforce.com"/> <entry key="sfdc.username" value="sfdcusername"/> <entry key="sfdc.password" value="value returned by encrypt.bat -e"/> <entry key="sfdc.timeoutSecs" value="600"/> <entry key="sfdc.loadBatchSize" value="200"/> <entry key="sfdc.entity" value="Client__c"/> <entry key="sfdc.extractionSOQL" value="SELECT c.LIS_Account_Name__c, c.Entity_Code__c,c.ClientID_Ext_Id__c, c.Phone_and_Extension__c, c.Secured_Fax__c, c.Comments__c,c.Street_Address__c, c.City__c, c.State__c, c.account__r.name from client__c c where c.account__r.recordtypeid ='012C0000000Q7lIIAS'"/> <entry key="process.operation" value="extract"/> <entry key="process.mappingFile" value="c:\Salesforce\DataLoader\Resources\Mapping\UofUAccountExtractMap.sdl"/> <entry key="process.outputError" value="c:\Salesforce\DataLoader\Resources\Logs\LastOperationError.csv"/> <entry key="dataAccess.writeUTF8" value="true"/> <entry key="dataAccess.type" value="csvWrite"/> <entry key="dataAccess.name" value="c:\Salesforce\DataLoader\Resources\Data\UofUSFDCExtract.csv"/> </map> </property> </bean> </beans>
- crikketlang
- August 13, 2011
- Like
- 0
- Continue reading or reply
Outlook Configurations
I need to update my outlook configurations for users based uponm their geographic location (as per their user record) but can't see a way to get to this via API. If I can't i'll have to do this user by user :-(.
Any thoughts?
Thanks in advance
Paul
- paul.mag
- July 25, 2013
- Like
- 1
- Continue reading or reply
BEST PRACTICE
When someone takes the time/effort to repspond to your question, you should take the time/effort to either mark the question as "Solved", or post a Follow-Up with addtional information.
That way people with a similar question can find the Solution without having to re-post the same question again and again. And the people who reply to your post know that the issue has been resolved and they can stop working on it.
- Steve :-/
- February 10, 2010
- Like
- 131
- Continue reading or reply