Forum Replies Created

Page 2 of 12
  • PRANAV

    Member
    March 29, 2018 at 8:37 am in reply to: Is it possible to create community user through Salesforce Apex?

    Hi Neha,

    You can also post the separate question for same for faster response.

  • Hi Neha,

    You can also post the separate question for same for faster response.

  • Hi Neha,

    For limitation guide you can directly contact the support team of Conga Composer and Nintex or you can raise a case for your issues. They will properly guide you.

    Thanks

  • Hi

    For more you can refer to the documentations guide of the Webmerge, Congo, and Nintex. That would be more helpful. And please like the appropriate and best answer. Thanks

  • PRANAV

    Member
    March 29, 2018 at 8:28 am in reply to: What is call back URL in the connected app?

    Hi Ankit,

    Some points related to Callback URL

    • Callback URL in salesforce is nothing but what Salesforce will callback with once the user authorizes access to his/her Salesforce account.
    • Callback URL is typically the URL that a user’s browser is redirected to after successful authentication.
    • You have enter call back URLs one per line. Don't separate by comma or semicolon or other characters.
    • Callback URL is depending on which OAuth flow you use

    Hope this will helps you more.

  • PRANAV

    Member
    March 29, 2018 at 8:21 am in reply to: Is there any limitation to load fields for mapping in webmerge?

    Hi Neha,

    For limitation guide you can directly contact the support team of Conga Composer and Nintex or you can raise a case for your issues. They will properly guide you.

    Thanks

  • PRANAV

    Member
    March 28, 2018 at 2:47 pm in reply to: Error while uninstalling a package in Salesforce

    Hi Ankit,

    That's great please like my answer as a best answer.

    Thanks

  • PRANAV

    Member
    March 28, 2018 at 2:00 pm in reply to: Error while uninstalling a package in Salesforce

    Hi Ankit,

    If there are some Site Users you have to open the user detail page and then remove the permission set. For that you can do SOQL on permission set with this package's permission set name.

  • PRANAV

    Member
    March 28, 2018 at 1:20 pm in reply to: Error while uninstalling a package in Salesforce

    Hi Ankit,

    As you can see the error message, your package's permission set is assigned to an user, so you will have to remove all the users from permission set then try it again.

  • Hi Neha,

    You can use WebMerge  for that. In WebMerge you can use dynamic "send email from" via merge field.

    Hope that will help in your scenario.

  • Hi Adarsh,

    There are many document generation systems you can search on appexchange for that like "Native Document Generation (PDF, MS Word, XLS, Report, Emails) : S-Docs" , "Docomotion | Document Generation -Generate quotes, invoices, proposals and more" , "9Docs" , "RS Documents - Automatic Document Generation from your Data" and many more.

  • PRANAV

    Member
    March 28, 2018 at 10:30 am in reply to: How to create a User through Salesforce Apex?

    Hi Ankit,

    The below code will help you, but before running the code please check the required field on User Object, so that you need to include those also.

    Profile p = [SELECT Id FROM Profile WHERE Name='System Administrator' limit 1];
    list<User> usr = new list<User>();
    User u = new User(Alias = 'st', Email='[email protected]',
    EmailEncodingKey='UTF-8', LastName='ABC', LanguageLocaleKey='en_US',
    LocaleSidKey='en_US', ProfileId = p.Id , CustomUserName__c = 'Test name',
    TimeZoneSidKey='America/Los_Angeles', Username='[email protected]',
    CommunityNickname = 'Test');
    usr.add(u);
    insert u;

    Hope this helps you.

  • Hi Manpreet,

    Salesforce has also implemented its own defenses to "Clickjacking" attacks within the native UI. Due to this, the iFraming of Salesforce, or the iFraming of some external websites is no longer recommended. Modern browsers are forced to defend against this new kind of attack, where framing is used by malicious attackers to compromise a browser and potentially steal customer data.

    In response, many browsers have implemented a new HTTP header called "X-Frame-Options," and it's gaining in popularity.

    Here's the workaround to iframes

    If you're encountering this problem, instead of using a web tab, a custom link can deliver the URL with the behavior set to:

    • Display in new window.
    • Display in existing window without sidebar or header.

    Hope this helps you.

  • Hi Ankit,

    System.Assert accepts two parameters, one (mandatory) which is the condition to test for and the other a message (optional) to display should that condition be false.

    System.AssertEquals and System.AssertNotEquals both accepts three parameters; the first two (mandatory) are the variables that will be tested for in/equality and the third (optional) is the message to display if the assert results in false.

    System.assert(var1 == var2, "The value of var1 is: " +var1 + " and the value of... oh I mean it's just a variable");

    System.assertEquals(var1, var2);

    If the second assertion fails the console will output the values of var1 and var2 with the labels “expected” and “actual”.

    Hope this helps you more.

  • PRANAV

    Member
    March 28, 2018 at 9:02 am in reply to: How to find all required fields of sobject in Salesforce?

    Hi Ankit,

    here is no direct property available in Apex dynamic API to represent the required field. However there is another way to know about it.
    If any field have below three properties then it is mandatory field.

    • If it is Creatable
    • If it is not nillable and
    • If it does not have any default value

    Yo can use the below code for finding it out

    Map<String, Schema.SObjectType> m = Schema.getGlobalDescribe() ;
    Schema.SObjectType s = m.get('sObjectName') ; //give your object name in place of sObjectName
    Schema.DescribeSObjectResult r = s.getDescribe() ;
    Map<String,Schema.SObjectField> fields = r.fields.getMap() ;

    for(String f : fields.keyset())
    {
    Schema.DescribeFieldResult desribeResult = fields.get(f).getDescribe();
    if( desribeResult.isCreateable() && !desribeResult.isNillable() && !desribeResult.isDefaultedOnCreate() )
    {
    //This is mandatory / required field
    system.debug('///' + f );
    }
    }

    Hope this helps you more.

  • Hi Ankit,

    You want to use the Files related list in Lightning Experience, but you’ve still got legacy attachments on your records. Convert them to files with the new "Magic Mover for Notes And Attachments to Lightning Experience" app from Salesforce Labs!

    Hope this may helps you.

  • PRANAV

    Member
    March 28, 2018 at 8:51 am in reply to: What is the default value of SeeAllData in Salesforce?

    Hi Ankit,

    Its default value is false because it is not necessary to use it as it opens up data access to records in your organisation.

    So Considerations for the @IsTest(SeeAllData=true) Annotation

    • If a test class is defined with the @isTest(SeeAllData=true) annotation, this annotation applies to all its test methods whether the test methods are defined with the @isTest annotation or the (deprecated) testMethod keyword.
    • The @isTest(SeeAllData=true) annotation is used to open up data access when applied at the class or method level. However, if the containing class has been annotated with @isTest(SeeAllData=true), annotating a method with @isTest(SeeAllData=false) is ignored for that method. In this case, that method still has access to all the data in the organization. Annotating a method with @isTest(SeeAllData=true) overrides, for that method, an @isTest(SeeAllData=false) annotation on the class.

    Hope this helps you more.

  • PRANAV

    Member
    March 28, 2018 at 8:46 am in reply to: Are there any Records Limits in Nintex and conga composer?

    Hi,

    Yes, there are limitations with both Nintex and Conga Composer.

    For knowing all the limitations you can refer to their reference limitation documents/guide.

    Thanks

  • PRANAV

    Member
    March 28, 2018 at 8:43 am in reply to: How can we create a relationship with conga composer in Salesforce?

    Hi

    Can we also send documents on the child and grandchild records using Congo Composer?

  • PRANAV

    Member
    March 28, 2018 at 8:40 am in reply to: Is there any limitation to load fields for mapping in webmerge?

    Hi Neha,

    Yes, there are some limitations with both Conga and Nintex. For that you can refer to their reference limitation documents/guide.

  • Hi

    Yes, WEBMERGE is a great platform that can generate the documents in various forms like{PDF, MS Word (docx), MS Excel (xlsx), HTML, Email, JPEG Image (jpg)}. Whereas as with Congo and Nintex you have a limited formats for documents. JPEG is not possible with Congo and Nintex.

     

  • PRANAV

    Member
    March 27, 2018 at 1:59 pm in reply to: Salesforce Error : Callout from scheduled Apex not supported.

    Hi Rahul,

    If you want to do it in the schedule class you will need to do it in an @future method.

    If you want to do it within the batch that is ran by the schedule you will need to implement the callout interface.

    global class scheduledBatchable implements Schedulable, Database.AllowsCallouts

    To use a callout in batch Apex, specify Database.AllowsCallouts in the class definition.

    Hope this helps you.

  • PRANAV

    Member
    March 27, 2018 at 12:35 pm in reply to: What is JSON and why we use it in Salesforce?

    Hi Rahul,

    JSON (JavaScript Object Notation) is a lightweight format that is used for data interchanging.It is based on a subset of JavaScript language (the way objects are built in JavaScript). As stated in the MDN, some JavaScript is not JSON, and some JSON is not JavaScript.

    An example of where this is used is web services responses. In the 'old' days, web services used XML as their primary data format for transmitting back data, but since JSON appeared (The JSON format is specified in RFC 4627 by Douglas Crockford), it has been the preferred format because it is much more lightweight.

    JSON is built on two structures:

    • A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
    • An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence.

    For more you can go to json.org

  • PRANAV

    Member
    March 27, 2018 at 12:32 pm in reply to: What is a Self-Relationship in Salesforce?

    Hi Rahul,

    Self-relationship:
    When an object has a lookup with itself, it is a self-relationship. A self relationship creates a tree diagram of the objects. For example, the account has a lookup on himself, called Parent Account.
    On the user object a special self-relationship called the hierarchical relationship helps create superior roles such as supervisor, manager on user object. The hierarchical relationship is a self-relationship of the user object.

    Hope this helps you.

Page 2 of 12