• Pranav S Sanvatsarkar
  • NEWBIE
  • 55 Points
  • Member since 2016
  • Team Lead

  • Chatter
    Feed
  • 1
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 22
    Questions
  • 22
    Replies
We have an article management tab in salesforce, wherein we can see Draft/Published/Archived and articles AssignedTo me or anyone. 

User-added image

Can we add more options to customize this tab? 
I want to add articles in Queue to this tab. This will help me see what articles are to be approved by me. 

Please suggest

Thanks!
Hello there,

I am an ISV partner and have a managed package (released) which is being used by my existing customers. Now, I am planning to implement a new feature which I want to make available to my selected existing customers (much like a Pilot program). I should be able to manage the license of this Pilot using LMA (License Management App). 

Can someone suggest me as how this can be done or what should be my first step or is whatever I am thinking of is possible or not?

Thanks.
Hello There,

I am learning to use Salesforce DX. I set up the dev hub and trying to link namespace of my developer edition however, finding that the button itself is disabled The button name is - Link Namespace. Does anyone has went through such issue as well? Please, help me out.

Thanks.
Hello there,

I have encountered a strange issue which is not allowing to complete my study about sObject clone method. Following is my code which is working fine on one of my instance and giving system limit exception of Heap size while executing. Please, note that I am executing this code in Anonymous window
 
List<Attachment> lstAttachments = new List<Attachment>();
Attachment clonedAttachment;
for( Attachment attachment : [SELECT  SystemModstamp, ParentId, OwnerId, Name, 
            LastModifiedDate, LastModifiedById, IsPrivate, IsDeleted, 
            Id, Description, CreatedDate, CreatedById, 
            ContentType, BodyLength, Body FROM Attachment WHERE ParentId = '003A000001zbugAIAQ' LIMIT 1] )
{
	clonedAttachment = attachment.clone(false,false);
	clonedAttachment.ParentId = '006A000000ZGmbd';
    lstAttachments.add(clonedAttachment);
}
insert lstAttachments;

Thanks in advance.
Hello there,

I wonder if there is any way by which I can upload files weighting more that 2 GB (Feed Attachments) or so using standard Visualforce File Attachments component. I heard  / read about using connection.js. Can someone give my an idea about connection.js and how it works, the platform limitations, etc?

Thanks in advance.
Hello there,

I am curious to know if is there any way by which I can track who is using (has installed) my managed packages? Note that I have not yet signed up for Salesforce Partner Program ( LMA won't help here ).

Thanks in advance!
Hello guys,

I am curious to find a way using API that will allow me to keep track of outbound email messages in Salesforce?

Thanks in advance.
Hello there,

I am implementing a custom inbox functionality for community users in my project. I know I can track all outgoing emails from Salesforce using the object EmailMessage. However, I am still not clear in what cases, Salesforce creates EmailMessage records? E.g. Send an Email (standard functionality), Single/Mass Email Message (Apex), etc.

Thanks in advance.
Hello there,

I have setup communities for self-registering community users. I have written my own controller to handle registration process. Whenever community users are self registering, they are getting allocated time zone of GMT instead of default organization time zone.

I think, the SF might be assigned default time zone to community users as well as it does with internal users. Am I right?

Thanks in advance.
Hello there,

Till now I have been using a single DE to perform development, testing and packaging. Now I want to separate out all the three steps and need seprate instances ( DEs ) for every step i.e. one DE for development, one DE for testing and one DE for packaging ( the current one ).

Is there any simple or native way provided by Salesforce ( may be a tool or application ) with the help of which I can keep in sync my all DEs created as above or utilize them like sandbox-production scenario?

Thanks in advance.
Hello there,

I have written two triggers - on Contact and User. Contact updates Users and User updates Contacts. I have handled MIXED DML thing using Queueable Apex. Now I am testing invokability of Queueable Apex from Batches. So, I have written  single Batch class that updates both Contacts and Users as per the query passed to the class.

I am testing this batchable class one by one for Contact and User update. I wrote batch calling in one test method first but it gave the error - Exception:  No more than one executeBatch can be called from within a test method. So, I wrote seperate methods for Contact Update and User updates. Tried executing test class in both synchronous and asynchronous modes. First method gets executed well. However, it gives exception while executing second method - Exception:  No more than one executeBatch can be called from within a test method.

Am I missing any limitation or logic?

Thanks in advance.
Hello there,

I have a managed package, and my clients are installing it on their instances. However, my test classes fail due to their customization like required fields or validation rules. Is there any standard way so that the installation can be done without any issue?

Thanks in advance!
Hello there,

I have signed up for Salesforce partner prgram and have everything setup. I have setup a dev org where my team do all the dev work. We also perform QA on the same instance. However, the problem is that during QA I have to freeze the instance for testing purpose and my team awaits the QA untill its completed.

Is there any solution to my problem? Am I doing something wrong?

Thanks in advance. 
Hello there,

I have created a VF page that iterates through a list of fields for an object. I have made dynamic binding of <apex:inputField> with object and its corresponding fields.

A <apex:inputField> for text is rendering as a disabled Picklist and a default selectOption as - <option value="__">-- None--</option>. This thing is happening for a particular field only i.e. (5th field only no matter what the data type of that field would be).

Here is the VF snippet
<apex:outputpanel >
                                <apex:pageblocksection rendered="{!IF(strApplicationMode != 'view', TRUE, FALSE)}">
                                    <apex:repeat var="field" value="{!IF(IsIndividual, $ObjectType.Contact.FieldSets.CommunityIndividualProfile ,$ObjectType.Contact.FieldSets.CommunityContactFieldSet)}">
                                        <apex:inputfield value="{!UserContacRecord[field]}" rendered="{!field.FieldPath != 'MailingCountry' && field.FieldPath != 'MailingState' && field.FieldPath != 'OtherCountry' && field.FieldPath != 'OtherState' && (($ObjectType['Contact'].Fields[field].Type == 'textarea' && NOT($ObjectType['Contact'].fields[field].htmlFormatted)) || ($ObjectType['Contact'].fields[field].Type != 'textarea'))}" required="{!OR(field.required, field.dbrequired)}" />
                                        <apex:inputfield value="{!UserContacRecord[field]}" rendered="{!(!isSCPLEnable) && (field.FieldPath == 'MailingCountry' || field.FieldPath == 'MailingState' || field.FieldPath == 'OtherCountry' || field.FieldPath == 'OtherState')}" required="{!OR(field.required, field.dbrequired)}" />
                                        <apex:inputfield value="{!UserContacRecord[field+'Code']}" label="{!$ObjectType['Contact'].Fields[field].Label}" rendered="{!isSCPLEnable && (field.FieldPath == 'MailingCountry' || field.FieldPath == 'MailingState' || field.FieldPath == 'OtherCountry' || field.FieldPath == 'OtherState')}" required="{!OR(field.required, field.dbrequired)}" />
                                        <apex:inputtextarea styleclass="ckeditor" label="{!$ObjectType['Contact'].Fields[field].Label}" richtext="false" id="inputRichTextAreaId" value="{!UserContacRecord[field]}" rendered="{!($ObjectType['Contact'].Fields[field].Type) == 'textarea' && $ObjectType['Contact'].fields[field].htmlFormatted}">
                                            <script> initializeCkeditor(); </script>
                                        </apex:inputtextarea>
                                    </apex:repeat>
                                </apex:pageblocksection>
</apex:outputpanel >

Can someone shed some light here?

Thanks in advance.
Hello there,

I have triggers on Contact and User objects. Contact trigger updates user record in future method. The user trigger on the other hand updates related contact in future method.

As future method is an asynchronous apex, I cannot track the execution using static variable. Is there any standard way that my scenario can be handled?

Thanks in advance.
Hello there,

I have a scenario, in which my clients want to use my custom controller for their VF page? Is it feasible? If yes what would be the limitations and implications?

Thanks in advance.
Hello there,

I wonder if salesforce's Apex runtime can process batches of two different classes at the same time (simultaneouly)? If yes, can we track using AsyncApexJob which class is executing current batch?

Thanks in advance.
Hello there,

Scenario,
  • I have a ContactTrigger which enqueues a Queueable Job
  • I updated contacts through Batchable Apex to see the behaviour
Result
  • Batch execution is successful
  • Queued job is recursively getting executed and I am not able to stop this recursion
Need help :(

Thanks in advance.
Hello there,

I have written an apex class that would create OpportunityTeamMember records ( API ver 32 ). What is the default value of field - OpportunityAccessLevel? 

I think it was Read/Write. Now I think with Salesforce Summer 16 release it is changed to Read-Only. 

One more think I am noticing that older records of OpportunityTeamMember created with reason Sales Team with Access Read/Write were changed to Read-Only.

Any guesses ?? :)

Thanks in advance.
Hello there,
  • I am not getting the cause of this error - common.formula.InvalidFieldReferenceException: Could not access the following field: some_field_name__c.
  • This field is refferred by a Formula Field, which is again referenced by another formula field.
  • ​Something like this,
    • Formula Field ( Hidden ) -> Formula Field ( Visible ) ->  some_field_name__c
Need assistance in this.

Thanks in advance.
Hello there,

Just wondering is there any way that allows me to see what setup changes were applied to my instance overnight as I am having a complete functionality of mine which was working yesterday and not working now.

Thanks in advance.
Hello There,

I am learning to use Salesforce DX. I set up the dev hub and trying to link namespace of my developer edition however, finding that the button itself is disabled The button name is - Link Namespace. Does anyone has went through such issue as well? Please, help me out.

Thanks.
Hi,

I am creating a visualforce page which works fine on Chrome browser in windows 8 with resolution 1366x768 but when the resolution is 
HP 1920 x1080
Microsoft Surface 2736x1824
iPad 768 x1024
then I am are getting white spaces at the bottom.
Can anyone guide me how we can let the visualforce page to auto-resize based on resolution.

Thanks,
Ravi
 
Hello, I have a change set with an active flow definition included. The flow is called "Create Journals" and it is on version 27 from my Development sandbox.
change set with Flow

When attempted to deploy this change set into another sandbox, I recieve a FlowApplication error email that indicates version 19 of that same flow causing an issue - a new required field does not have a value set. The reason I am deploying this new flow version is to set a value in that required field, which is also being introduced in this same change set. Version 19 is the current active version of that flow in the destination sandbox.
"Flow Details
Flow Name: Create_Journals
Type: Autolaunched Flow
Version: 19
Status: Active"

I can't figure out why the apex test classes would be using the latest active version in the sandbox when a newer version is included in the incoming change set, especially when the field being referenced in the error is a new field that is being created through the deployment of this incoming change set
We have an article management tab in salesforce, wherein we can see Draft/Published/Archived and articles AssignedTo me or anyone. 

User-added image

Can we add more options to customize this tab? 
I want to add articles in Queue to this tab. This will help me see what articles are to be approved by me. 

Please suggest

Thanks!
Hello there,

I am only a Certified Salesforce Administrator but I require some guidance on the following.

We are setting up an Enterprise WSDL API

Once syncronised - by way of the external data being updated with current person account record Id's - I'd like it so that we can write a trigger to create a Person Account if the Person Account ID equals blank.  IE. That there is not an existing Person Account in Salesforce so create one when the external data source has a new registration for example
Ask: As a Sales Manager I would like to limit users ability to create tasks if an Opportunity has been closed for more than 4 days. 
As an Admin a Validation Rule doesn't seem like a viable solution. Trying to create a Trigger but running into some issues.

Problem - Line 5 - Inequality Operator not allowed for this type: Object
IF (a.WhatId!=null && String.valueOf(a.WhatId).startsWith('006')&& a.What.get('CloseDate') < (System.today()- 4) &&(RoleId =='00E800000029UCT'))
Trying to look at opp close date and evaluate if 4 days has past. If so, want to restrict ability to create tasks for certain role. 
Could someone help? Of if there is a better solution?


Trigger:
trigger NoTaskCreationForSE on Task (before insert) {
    String RoleId = UserInfo.getUserRoleId();
    for (Task a : Trigger.new)    
        
    IF (a.WhatId!=null && String.valueOf(a.WhatId).startsWith('006')&& a.What.get('CloseDate') < (System.today()- 4) &&(RoleId =='00E800000029UCT'))
        
    {
        a.addError('You Cannot Add Tasks Once An Opp Has Been Closed For More Than 4 Days');
    }
        
}

 
Hi all,

I have an object with three record types.
We created a Visualforce email template related to the object. The object we are using is Product2 and the record types are:

- Master
- Undergraduate
- PhD

But our email template is related to this object in general, but not to a specific record type. For example, the email template for Masters should be related to the record type Master. The email template for PhDs should be related to the record type PhD.

Is this possible in Salesforce or not at all?.

I would appreciate your answers.
Hello guys,

I am curious to find a way using API that will allow me to keep track of outbound email messages in Salesforce?

Thanks in advance.
Hello there,

I am implementing a custom inbox functionality for community users in my project. I know I can track all outgoing emails from Salesforce using the object EmailMessage. However, I am still not clear in what cases, Salesforce creates EmailMessage records? E.g. Send an Email (standard functionality), Single/Mass Email Message (Apex), etc.

Thanks in advance.
Hello there,

I have a managed package, and my clients are installing it on their instances. However, my test classes fail due to their customization like required fields or validation rules. Is there any standard way so that the installation can be done without any issue?

Thanks in advance!
Hello there,

I have signed up for Salesforce partner prgram and have everything setup. I have setup a dev org where my team do all the dev work. We also perform QA on the same instance. However, the problem is that during QA I have to freeze the instance for testing purpose and my team awaits the QA untill its completed.

Is there any solution to my problem? Am I doing something wrong?

Thanks in advance. 
Hello there,

I have triggers on Contact and User objects. Contact trigger updates user record in future method. The user trigger on the other hand updates related contact in future method.

As future method is an asynchronous apex, I cannot track the execution using static variable. Is there any standard way that my scenario can be handled?

Thanks in advance.
Hello there,

I wonder if salesforce's Apex runtime can process batches of two different classes at the same time (simultaneouly)? If yes, can we track using AsyncApexJob which class is executing current batch?

Thanks in advance.
Hello there,

I am creating Opporotunity and Opportunity Team Member using API. While creating Opportunity Team member, an OpportunityShare record is getting created with OpportunityAccessLevel - Read-Only to the Opportunity, which is breaking some of my dependent functionalities. Though there are two OpportunityShare records - one with Full Access (Row Cause = Owner) and two - Read Only (Row Cause = Team).

I am not understanding as to how OpportunityShare with Access Level = Read Only is being considered instead of Opportunity Share with Access Level = Full ?

Thanks in advance.