• vino2vijay
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 17
    Questions
  • 21
    Replies
Hi Team, 
I am building Lightning web components, here we are using Angular js file for some validation. However, that Angualar JS lib has been stored in Google Cloud NOT in Static Resources. 
Now my questions is how to refer that Angular JS file with in Lightning components or Lightning web components ? 
To be more simple, how to refer js file which is reside outside of Salesforce ?
 
Hi Team,
We are facing some issues when it will create CASE record in salesforce. We have implemented Email to Case standard features is our production org. when we are sending email to particular mail box with copy of cc someone then as per designed case is created successfully in to Salesforce. But before someone reply from Salesforce, some body who's copied in that email, they started sending email using same email thread from outlook. So its getting generated new case whenever Salesforce receive email. Since no body reply back from Salesforce, so there is no ref number also.
Please find the below example for your understanding
Current Issues :
1. XYZ customer sending email with CC people and subject name as "ABC" to salesforce and case got Created Salesforce with Subject name as "ABC".
2. Immediately CC people replying to email message using same email thread in outlook.
3. Salesforce will receive one more email with same subject name as "ABC" and new case will be created.

Expected Solution:
1. Only one case should be created under same subject name as "ABC". Even though if Salesforce receive multiple email from outlook with same subject.
2. We need to capture the Email information from cc people. (Technically, we need to capture the Email message records not case record)
3. All Email Message should comes under same Case.

As part of the above scenario, I have wriiten some logic in before insert trigger on Email message object and i am successfully able to idenity the Same subject and delete the duplicate case.
Now my question, is there any way to distinguish the case other than subject. Also I have checked on Email Message object, it storing Email Headers. Is there any unique way to identfier using Email Header ??

Any help, really appreciate
thanks,
 
Hi All, 
I am trying to access this endpoint URL (https://lpdmu879a.phx.aexp.com:8443/Sert/service/competitors/)) from salesforce by using REST API code, Please see the below code  . when i execute I m getting this issue "System.CalloutException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 404 Not Found"

Note : But the same URL, If i tried to access from the browser. I m getting successfull response.

Any one please let me know , what was the issue here ????

Code :
--------
Http h = new Http();
  HttpRequest req = new HttpRequest();
  String Url = 'https://lpdmu879a.phx.aexp.com:8443/Sert/service/competitors/';
 
  req.setEndpoint(Url);
  req.setMethod('GET');          

    req.setHeader('Content-Type', 'application/json');

  // Getting error here          
   HttpResponse res = h.send(req);
   String result = res.getBody();
   system.debug('RESULT ::: '+result);

Hi All,

 

I am unable to edit the VF page on eclipse. But i am able to edit apex class ... Anyone know about this issue please let me know ...

 

Thanks,

Vinoth

Hi all,

 

In Standara page there one picklist, based on the selecting picklist values we need to be display checkbox ? It should be happen in standard page ? is the possible ?

if not please provide any other suggestion ?

 

 

Thanks,

HI All,

I have written testmethod with including annotation (Seealldata=true), 3 Weeks back its working fine ... But now we r getting some issue  (No more than one executeBatch can be called from within a test method).

 

In google most of them says .. before start the process please delete all the records from the Object .. If i delete the records from the object ? whether it will be affecting Original records OR not  ?

 

 

Thanks in Advance,

Vinoth

 

HI All ,

In batch class they have wriiten query like this

 

 global Database.querylocator start(Database.BatchableContext BC)
    {
        query='select id,IsArchived from ContentDocument where IsArchived=true ALL ROWS';
        return Database.getQueryLocator(query);
    }

But while executing from test class it will not return any records, So it will not execute "execute" method from batch class.

Please refer the below test class :

 

 Test.startTest();
            string before = 'Testing base 64 encode';             
            Blob beforeblob = Blob.valueOf(before);
            ContentVersion cv = new ContentVersion();
            cv.title = 'test content trigger';       
            cv.PathOnClient ='test';            
            cv.VersionData =beforeblob;           
            insert cv;                                                  
            
            ContentVersion testContent = [SELECT id, ContentDocumentId FROM ContentVersion where Id = :cv.Id];
            ContentWorkspace testWorkspace = [SELECT Id FROM ContentWorkspace limit 1];
            ContentWorkspaceDoc newWorkspaceDoc =new ContentWorkspaceDoc();
            newWorkspaceDoc.ContentWorkspaceId = testWorkspace.Id;
            newWorkspaceDoc.ContentDocumentId = testContent.ContentDocumentId;
            insert newWorkspaceDoc;
            
            ContentDocument cd = [select id, IsArchived from contentdocument where id=:testcontent.contentdocumentid limit 1];
            cd.IsArchived = true;
                     
            //update cd;
           System.debug('Cd Size ' + cd);
            System.debug('DDDDDDD ' + cd.IsArchived);
           
          
                BatchContentArchived objDocs = new BatchContentArchived();
                objDocs.query='select id,IsArchived from ContentDocument where IsArchived=false limit 2 ALL ROWS';
                /*objDocs.query='select id,title from ContentVersion limit 2 ALL ROWS';*/
                ID batchprocessid = Database.executeBatch(objDocs);
                
             
            Test.stopTest();

 

-------------------------------------------------------------------------------------------------------------------------------------

 

Can anyone please let me know how to cover the code ????

 

Thanks in Advance ....

Hello Salesforce Experts,

 

Anyone please let me know how to write valition rule for URL ?

Else someone please provide regular expression string for URL ?

 

Thanks,

Hi All,

 

while saving my controller i got error like  "Schedulable class has jobs pending or in progress" .

 

Note : 1. There s no scheduled jobs based on my controller.

            2. I dont see any scheduled jobs in UI.

 

Now i m trying to abort the running job which is running invisible.. i really dont know my job id .... Kindly let me know  how i fetch on jobid based on classid?

 

URGENT .....

 

Thanks,

 

 

Hi All,

 

I am using javascript remoting for my application . I wanna return List<Sobject > from APEX method to Javascript ? once its done, How to parse the list of records in Javascript ?

 

Thanks in Advance,

What is the use Query()/QueryMore()/queryAll() ?

Hi

can anyone pelase let me know below questions.

 

1. What is the use Javascript Remoting ?

 

2. If more flexible, When we need to use ?

 

3. What is the use of Actionfunction ?

 

4. What is the diffrenece between Actionfunction and Javascript remoting ?

 

5. JS remoting used for mainly calling the APEX method from javascript ? if yes what s the benefits ? can u please let me know real time scanerio ?

 

As of now, I know the js remoting the will be used for calling APEX method from javascript . i just want to know when we need to perform this ?

 

 

Thanks

Vinoth

Hello All, 

 

Can anyone please tell me

When to use Enterprise WSDL  ?

When to use  Partner WSDL ?

When to use Apex WSDL ?

 

1. Enterprise WSDL : as per me , if u give some read only information to endpoint system, tat system must consume our E-WSDL and getting all the information ?

later if u have any change in schema whether  we need to update the WSDL as well as End point system too ?

 

2. Partner WSDL : its fully dynamic, Endpoint system will provide the object and fieldname as parameter then they will get all info. 

if u have any change in schema , seems no need to update WSDL and end point system too ?

 

3 . APEX WSDL ? When to use ? , What purpose ? Why we need to use this ? 

 

 

Thanks,

Vinoth 

I have created simple webservice . once i generated the WSDL file , i got like this URL like this 

 

<soap:address location="https://ap1-api.salesforce.com/services/Soap/class/HelloWorldWebService"/>

 

While i m trying to hit that URL from browser i got error like this 

 

405 GET not supported, this is a SOAP service, please use POST

 

Can anyone please let me know the ans ?

 

Thanks in advance .....

Its works only top set of buttons :( 

any help .. Thanks in advance .........

 

<apex:pageBlockButtons >
<apex:actionStatus id="processStatus">
<apex:facet name="start">
<apex:outputPanel >
<img src="/img/loading.gif" alt="Loading graphic" />
<apex:commandButton value="Processing..." status="processStatus" disabled="true" />
</apex:outputPanel>
</apex:facet>
<apex:facet name="stop">
<apex:outputPanel >
<apex:commandButton value="Save & Continue" action="{!doSave}" reRender="pnlfullPage" status="processStatus" />
<apex:commandButton value="Previous" action="{!getdetails}" rendered="{!if(PreviousPage,true,false)}"/>
<apex:commandButton value="Cancel" onclick="return confirmCancel()" action="{!doCancel}" />
</apex:outputPanel>
</apex:facet>
</apex:actionStatus>
</apex:pageBlockButtons>

 

 

Hi All ,

 

I want to modify  timing of the field(Start, End) on Calendar details component. Actually I wanna movidy the timings like , who r all the creating the event,the time zone must be US timing Zone even though they creating the event from India.

 

 

Please help me , Thanks in Advance

 

Hi All,

How to call actionfunction method with parameter from pageblocktable . I need to send dynamic param from selectlist ... below my code for reference please let me know if anyone find any solutions.

APEX Code :

============================

<apex:page controller="DLMQuestions">
  <apex:form id="form" >
<apex:pageBlock title="DLMQuestions">
  <apex:pageMessages ></apex:pageMessages>
  <apex:pageBlockTable value="{!qDLM}" var="row">
  <apex:column value="{!row.Name}"/>
     <apex:column value="{!row.Question__c}"/>
     <apex:column headerValue="Input Required">
    
    <apex:selectList size="1" onchange="method">
            <apex:selectOptions value="{!Items}"/>
        </apex:selectList>
          
         </apex:column>
     <apex:column value="{!row.MRBOption__c}"/>

  </apex:pageBlockTable>
</apex:pageBlock>
<apex:actionFunction action="{!methodOne}" name="method" reRender="">
        <apex:param name="firstParam"  value="Name" />
    </apex:actionFunction>

</apex:form></apex:page>

 

Controller :

=====================================

public class DLMQuestions
{
   

   public List<DLMQuestion__c> qDLM { get; set; }
   public String[] ansList {get;set;}
   public Integer i {get;set;}
    
    public DLMQuestions()
    {
        LoadData();
    }
   
    public void LoadData()
    {
        qDLM=[select Name,Question__c,RRBOption__c,MRBOption__c from DLMQuestion__c limit 1];   
        //StringManipulation();
    }
       public List<SelectOption> getItems()
     {
                         
            List<SelectOption> options = new List<SelectOption>();
             for(DLMQuestion__c Q : qDLM)
             {
                 options.add(new SelectOption(Q.RRBOption__c,Q.RRBOption__c));
             }
            return options;
      }
      public void methodOne()
       {
       }


}

Hi Team,
We are facing some issues when it will create CASE record in salesforce. We have implemented Email to Case standard features is our production org. when we are sending email to particular mail box with copy of cc someone then as per designed case is created successfully in to Salesforce. But before someone reply from Salesforce, some body who's copied in that email, they started sending email using same email thread from outlook. So its getting generated new case whenever Salesforce receive email. Since no body reply back from Salesforce, so there is no ref number also.
Please find the below example for your understanding
Current Issues :
1. XYZ customer sending email with CC people and subject name as "ABC" to salesforce and case got Created Salesforce with Subject name as "ABC".
2. Immediately CC people replying to email message using same email thread in outlook.
3. Salesforce will receive one more email with same subject name as "ABC" and new case will be created.

Expected Solution:
1. Only one case should be created under same subject name as "ABC". Even though if Salesforce receive multiple email from outlook with same subject.
2. We need to capture the Email information from cc people. (Technically, we need to capture the Email message records not case record)
3. All Email Message should comes under same Case.

As part of the above scenario, I have wriiten some logic in before insert trigger on Email message object and i am successfully able to idenity the Same subject and delete the duplicate case.
Now my question, is there any way to distinguish the case other than subject. Also I have checked on Email Message object, it storing Email Headers. Is there any unique way to identfier using Email Header ??

Any help, really appreciate
thanks,
 

Hi All,

 

I am unable to edit the VF page on eclipse. But i am able to edit apex class ... Anyone know about this issue please let me know ...

 

Thanks,

Vinoth

HI All,

I have written testmethod with including annotation (Seealldata=true), 3 Weeks back its working fine ... But now we r getting some issue  (No more than one executeBatch can be called from within a test method).

 

In google most of them says .. before start the process please delete all the records from the Object .. If i delete the records from the object ? whether it will be affecting Original records OR not  ?

 

 

Thanks in Advance,

Vinoth

 

HI All ,

In batch class they have wriiten query like this

 

 global Database.querylocator start(Database.BatchableContext BC)
    {
        query='select id,IsArchived from ContentDocument where IsArchived=true ALL ROWS';
        return Database.getQueryLocator(query);
    }

But while executing from test class it will not return any records, So it will not execute "execute" method from batch class.

Please refer the below test class :

 

 Test.startTest();
            string before = 'Testing base 64 encode';             
            Blob beforeblob = Blob.valueOf(before);
            ContentVersion cv = new ContentVersion();
            cv.title = 'test content trigger';       
            cv.PathOnClient ='test';            
            cv.VersionData =beforeblob;           
            insert cv;                                                  
            
            ContentVersion testContent = [SELECT id, ContentDocumentId FROM ContentVersion where Id = :cv.Id];
            ContentWorkspace testWorkspace = [SELECT Id FROM ContentWorkspace limit 1];
            ContentWorkspaceDoc newWorkspaceDoc =new ContentWorkspaceDoc();
            newWorkspaceDoc.ContentWorkspaceId = testWorkspace.Id;
            newWorkspaceDoc.ContentDocumentId = testContent.ContentDocumentId;
            insert newWorkspaceDoc;
            
            ContentDocument cd = [select id, IsArchived from contentdocument where id=:testcontent.contentdocumentid limit 1];
            cd.IsArchived = true;
                     
            //update cd;
           System.debug('Cd Size ' + cd);
            System.debug('DDDDDDD ' + cd.IsArchived);
           
          
                BatchContentArchived objDocs = new BatchContentArchived();
                objDocs.query='select id,IsArchived from ContentDocument where IsArchived=false limit 2 ALL ROWS';
                /*objDocs.query='select id,title from ContentVersion limit 2 ALL ROWS';*/
                ID batchprocessid = Database.executeBatch(objDocs);
                
             
            Test.stopTest();

 

-------------------------------------------------------------------------------------------------------------------------------------

 

Can anyone please let me know how to cover the code ????

 

Thanks in Advance ....

Hello Salesforce Experts,

 

Anyone please let me know how to write valition rule for URL ?

Else someone please provide regular expression string for URL ?

 

Thanks,

Hi All,

 

while saving my controller i got error like  "Schedulable class has jobs pending or in progress" .

 

Note : 1. There s no scheduled jobs based on my controller.

            2. I dont see any scheduled jobs in UI.

 

Now i m trying to abort the running job which is running invisible.. i really dont know my job id .... Kindly let me know  how i fetch on jobid based on classid?

 

URGENT .....

 

Thanks,

 

 

I know we can archive a content document by setting the isArchived field in the ContentDocument object.

However once that document is archived that record disappears from the ContentDocument object.

 

for e.g If I contribute a document/image file by uploading it to any library  .

The following query will bring 1 record.

 Select c.Title, c.PublishStatus, c.ParentId, c.IsArchived, c.Id, c.ArchivedDate, c.ArchivedById From ContentDocument c

 

now If I archive thie document either from UI or programatically the same query doesnot fetch any records.

 

Is there any way to fetch this record using SOQL and set the IsArchived flag back to False?

 

 

Hi All,

 

I am using javascript remoting for my application . I wanna return List<Sobject > from APEX method to Javascript ? once its done, How to parse the list of records in Javascript ?

 

Thanks in Advance,

Hi

can anyone pelase let me know below questions.

 

1. What is the use Javascript Remoting ?

 

2. If more flexible, When we need to use ?

 

3. What is the use of Actionfunction ?

 

4. What is the diffrenece between Actionfunction and Javascript remoting ?

 

5. JS remoting used for mainly calling the APEX method from javascript ? if yes what s the benefits ? can u please let me know real time scanerio ?

 

As of now, I know the js remoting the will be used for calling APEX method from javascript . i just want to know when we need to perform this ?

 

 

Thanks

Vinoth

Hello All, 

 

Can anyone please tell me

When to use Enterprise WSDL  ?

When to use  Partner WSDL ?

When to use Apex WSDL ?

 

1. Enterprise WSDL : as per me , if u give some read only information to endpoint system, tat system must consume our E-WSDL and getting all the information ?

later if u have any change in schema whether  we need to update the WSDL as well as End point system too ?

 

2. Partner WSDL : its fully dynamic, Endpoint system will provide the object and fieldname as parameter then they will get all info. 

if u have any change in schema , seems no need to update WSDL and end point system too ?

 

3 . APEX WSDL ? When to use ? , What purpose ? Why we need to use this ? 

 

 

Thanks,

Vinoth 

I have created simple webservice . once i generated the WSDL file , i got like this URL like this 

 

<soap:address location="https://ap1-api.salesforce.com/services/Soap/class/HelloWorldWebService"/>

 

While i m trying to hit that URL from browser i got error like this 

 

405 GET not supported, this is a SOAP service, please use POST

 

Can anyone please let me know the ans ?

 

Thanks in advance .....

Hello,

 

I am a Salesforce Administrator. My boss is looking to change the color scheme of SFDC to match a new color scheme that will be developed for the company's marketing and website.

 

Please reach out if you're interested in this development job. I assume it will be done with visualforce and CSS, but I am not too familiar so would appreciate help in understanding the scope of this development.  Please feel free to ask any questions to understand the salient attributes of our request. 

 

Thank you,

 

Orian Sentner

(orianja+sfdc@gmail.com)

Its works only top set of buttons :( 

any help .. Thanks in advance .........

 

<apex:pageBlockButtons >
<apex:actionStatus id="processStatus">
<apex:facet name="start">
<apex:outputPanel >
<img src="/img/loading.gif" alt="Loading graphic" />
<apex:commandButton value="Processing..." status="processStatus" disabled="true" />
</apex:outputPanel>
</apex:facet>
<apex:facet name="stop">
<apex:outputPanel >
<apex:commandButton value="Save & Continue" action="{!doSave}" reRender="pnlfullPage" status="processStatus" />
<apex:commandButton value="Previous" action="{!getdetails}" rendered="{!if(PreviousPage,true,false)}"/>
<apex:commandButton value="Cancel" onclick="return confirmCancel()" action="{!doCancel}" />
</apex:outputPanel>
</apex:facet>
</apex:actionStatus>
</apex:pageBlockButtons>