Adarsh Singh
IndividualForum Replies Created
-
Adarsh
MemberApril 2, 2018 at 6:54 am in reply to: How to pass Dynamic parameter in SOQL where clause, while mapping in Webmerge?Hi Archit,
Thanks, it was very much informative and helpful.
-
Adarsh
MemberMarch 30, 2018 at 11:39 am in reply to: How to pass Dynamic parameter in SOQL where clause, while mapping in Webmerge?Hi Archit,
Here what is the meaning of 'uniqueness', when we work on SOQL?
-
Adarsh
MemberMarch 30, 2018 at 10:22 am in reply to: How to pass Dynamic parameter in SOQL where clause, while mapping in Webmerge?Hi Ankit,
Is it necessary to have this kind of formatting?
-
Adarsh
MemberMarch 30, 2018 at 10:20 am in reply to: How can we customize the standard Clone button on a Salesforce Opportunity ?Hi,
You can't customize the standard button in Salesforce, you may achieve this through custom logic.
-
Adarsh
MemberMarch 30, 2018 at 10:14 am in reply to: What is the difference between Clone() and DeepClone() in Salesforce Apex?Hi,
Clone(): When you clone an sObject in Apex, it copies all the fields populated in that Apex object, not necessarily all fields on the record. ... If you do the following, the clone will not have LeadSource and Status cloned from the original record. It will use the default values for Leads.
DEEPCLONE(): If a list is DeepCloned, it duplicates and doesn’t have any reference.
Parameters of DEEPCLONE:
Boolean opt_preserve_id – Whether cloned sObjects records ids are maintained.Boolean opt_preserve_readonly_timestamps– Whether cloned sObjects records read only system fields like createdDate, LastModifiedDtate, etc are maintained.
Boolean opt_preserve_autonumbe– Whether cloned sObjects records auto number fields are maintained.
-
Adarsh
MemberMarch 30, 2018 at 10:06 am in reply to: Is there any way we can add new attachments to the records when Salesforce1 is offline?Hi,
Salesforce1 supports documents that are uploaded through the Files action OR through Chatter. Documents and any attachments uploaded through the Notes and Attachments section on a record list view aren't guaranteed to be accessible in Salesforce1. The content can still appear under the section, but Salesforce can't guarantee they will be viewable/downloadable in Salesforce1.
-
Adarsh
MemberMarch 30, 2018 at 10:04 am in reply to: How can we update child records from parent using Salesforce Apex Class?Hi,
you may use the following code,
trigger IPAapproved on Outbound_Sales_Order__c (after update) {
// Only do work when the field has changed
Map<Id, Outbound_Sales_Order__c> changed = new Map<Id, Outbound_Sales_Order__c>();
for (Outbound_Sales_Order__c oso : Trigger.new) {
Outbound_Sales_Order__c old = Trigger.oldMap.get(oso.Id);
if (oso.Buyer_Approved__c != old.Buyer_Approved__c) {
changed.put(oso.Id, oso);
}
}
if (changed.size() > 0) {
// Only update when the field has the wrong value
List<SO_Detail__c> updates = new List<SO_Detail__c>();
for (SO_Detail__c detail : [
SELECT Id, Outbound_Sales_Order__c, Buyer_Approved_Flag__c
FROM SO_Detail__c
WHERE Outbound_Sales_Order__c IN :changed.keySet()
]) {
Outbound_Sales_Order__c oso = changed.get(detail.Outbound_Sales_Order__c);
Boolean requiredFlag = oso.Buyer_Approved__c != null;
if (detail.Buyer_Approved_Flag__c != requiredFlag) {
detail.Buyer_Approved_Flag__c = requiredFlag;
updates.add(detail);
}
}
update updates;
}
} -
Adarsh
MemberMarch 30, 2018 at 6:37 am in reply to: Svg icon is not supported in internet explorer. How can we resolve this problem?Hi Amresh,
This is not a Lightning issue, but a browser compatibility issue. IE 9-11 does not support external resources for svgs (e.g. the use tag with an xlink:href), so writing this inline is the best option. There are some really nasty hacks available online, such as This,
Note: SVG components are not visible to community users as well!
I hope it helps you. -
Adarsh
MemberMarch 30, 2018 at 5:47 am in reply to: Can we use mixed sobjects dml in one transaction?Hi Ankit,
You can use external ID fields as foreign keys to create parent and child records of different sObject types in a single step instead of creating the parent record first, querying its ID, and then creating the child record.
...
You can create related records that are up to 10 levels deep. Also, the related records created in a single call must have different sObject types. For more information, see Creating Records for Different Object Types in the SOAP API Developer's Guide.
-
Adarsh
MemberMarch 30, 2018 at 5:41 am in reply to: How is schedule apex different from batch apex?Hi Ankit,
To use batch Apex, write an Apex class that implements the Salesforce-provided interface Database.Batchable and then invoke the class programmatically.To monitor or stop the execution of the batch Apex job, from Setup, enter Apex Jobs in the Quick Find box, then select Apex Jobs.
Salesforce schedules the class for execution at the specified time. Actual execution may be delayed based on service availability.You can only have 100 scheduled Apex jobs at one time. You can evaluate your current count by viewing the Scheduled Jobs page in Salesforce and creating a custom view with a type filter equal to “Scheduled Apex”. You can also programmatically query the CronTrigger and CronJobDetail objects to get the count of Apex scheduled jobs.
-
Adarsh
MemberMarch 30, 2018 at 5:37 am in reply to: What is the role of Scope parameter in Salesforce Batch ApexHi Ankit,
Batch Apex
A Batch class allows you to define a single job that can be broken up into manageable chunks that will be processed separately.When to use Batch Apex
One example is if you need to make a field update to every Account in your organization. If you have 10,001 Account records in your org, this is impossible without some way of breaking it up. So in the start() method, you define the query you're going to use in this batch context: 'select Id from Account'. Then the execute() method runs, but only receives a relatively short list of records (default 200). Within the execute(), everything runs in its own transactional context, which means almost all of the governor limits only apply to that block. Thus each time execute() is run, you are allowed 150 queries and 50,000 DML rows and so on. When that execute() is complete, a new one is instantiated with the next group of 200 Accounts, with a brand new set of governor limits. Finally the finish() method wraps up any loose ends as necessary, like sending a status email.Sample Batch Apex
1) Start method is automatically called at the beginning of the apex job. This method will collect record or objects on which the operation should be performed. These record are divided into subtasks & passes those to execute method.2) Execute Method performs operation which we want to perform on the records fetched from start method.
3) Finish method executes after all batches are processed. Use this method to send confirmation email notifications.
-
Adarsh
MemberMarch 29, 2018 at 12:34 pm in reply to: Can we set 'Send Email From' functionality to processed a document in Nintex or conga?Hi neha,
Only in webmerge you can use a merge field for 'Send Email From' to make it dynamic.
-
Adarsh
MemberMarch 29, 2018 at 12:31 pm in reply to: Is there any 'Document generated System' which processed 'Output type Options' as JPEG Image?here all Output type Options available in following document generated system.
Nintex- PDF or Same as a template
Conga - Default-PDF, Can modify with Parameters
Webmerge - PDF, MS Word, MS Excel, HTML, Email, JPEG Image
-
Hi,
Standard objects are objects that are included with Salesforce. Common business objects like Account, Contact, Lead, and Opportunity are all standard objects.
-
The architecture of Salesforce can be put into layers for better understanding. The purpose and function of each layer is described below −
Trusted Multitenant Cloud
Here multiple instances of one or multiple applications operate independently in a shared environment. The instances are referred as tenants and they logically separate from each other while physically remaining in the same hardware. It is called trusted because of both its robust nature and high security.Scalable Metadata Platform
The metadata-driven platform makes it easy for customization and scaling up as the amount of data or concurrent user instances increase.Enterprise Ecosystem
The Enterprise Ecosystem of Sales is very large as a large number of partners contribute by creating and maintaining applications in this platform.CRM and Related Functionality
Salesforce includes all aspects of CRM in its list of features and also extends it by providing features for creation of apps and integrating analytics, etc.APIs
Salesforce provides a powerful suite of APIs. This helps to develop and customize the Salesforce1 Mobile App. -
Adarsh
MemberMarch 29, 2018 at 6:51 am in reply to: Is it possible to create community user through Salesforce Apex?Hi Neha,
Yes, you may use this method to accomplish it.
public List<string> generateAliasAndNickName(string strToBeGenerated){
if(strToBeGenerated !='' && strToBeGenerated.contains('.')){
String[] arrSplitText = strToBeGenerated.split('\\.');
return arrSplitText;
}else if(strToBeGenerated !='' && !strToBeGenerated.contains('.')){
return new List<String>{strToBeGenerated};
}else{
return null;
}
}
public boolean validateIsDuplicateNickName(String strNickname){
List<User> lstExistingUser = new List<User>();
if(strNickname != null && strNickname != ''){
lstExistingUser = [select id,communityNickname from User where communityNickname =:strNickname];
}
if(lstExistingUser != null && !lstExistingUser.isEmpty()){
return true;
}
else
return false;
}and whenever it found a duplicate, concatenate the Nickname string with +1 increment.
hope it helps 🙂
-
Adarsh
MemberMarch 29, 2018 at 6:44 am in reply to: How to send Community Welcome Email to a User through Salesforce Apex?Hi Neha,
Yes, we can not overwrite this standard functionality.
-
Hi Ankit,
The unauthorized endpoint may be returned from the API callout you are doing and not because of Remote site settings.
Note: For Apex code that is executed asynchronously, such as @future methods, Batch Apex jobs, or scheduled Apex jobs, getSessionId returns null.
Hope it helps 🙂
-
Adarsh
MemberMarch 29, 2018 at 6:01 am in reply to: How can we convert Non-OAuth button to OAuth button in Conga Composer? -
Hi Ankit,
Depending on which OAuth flow you use, Callback URL is typically the URL that a user’s browser is redirected to after successful authentication.
Hope it helps 🙂
-
Adarsh
MemberMarch 29, 2018 at 5:45 am in reply to: Can we use Local Template in Nintex for processing a Salesforce Document?Hi All,
I got my answer, thanks to all.
-
Adarsh
MemberMarch 29, 2018 at 5:27 am in reply to: What are the differences between Salesforce Classic and Salesforce Lightning?Hi Archit,
In my question am asking about 'functional difference', not the structural difference. means what was the things are available or not available in lightning in comparison to salesforce classic.
-
Adarsh
MemberMarch 28, 2018 at 11:11 am in reply to: Is there any 'Document generated System' which processed 'Output type Options' as JPEG Image?Hi Archit,
Pranav already gave the same answer, and am well satisfied with that.
Thank you.
-
Adarsh
MemberMarch 28, 2018 at 11:09 am in reply to: Is it possible to create community user through Salesforce Apex?Yes afcouse,
if (contact.Account.Owner.Role != null) {
// Do your stuff u.firstName = '';User u = new User();
u.lastName = 'Lstname';
u.ContactId = contactLookup[0].Id;
u.Username = 'username';
u.Email = 'email';
u.CommunityNickname = 'nickname';
u.Alias = '';
u.TimeZoneSidKey = 'America/Phoenix'; // Required
u.LocaleSidKey = 'en_US'; // Required
u.EmailEncodingKey = 'ISO-8859-1'; // Required
u.LanguageLocaleKey = 'en_US'; // Required
}Hope it helps 🙂
-
Adarsh
MemberMarch 28, 2018 at 11:05 am in reply to: Is it possible to create community user through Salesforce Apex?Hi Ankit,
Yes, definitely it is possible through the apex.