• Naren9
  • NEWBIE
  • 334 Points
  • Member since 2018


  • Chatter
    Feed
  • 8
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 86
    Replies
hello,

I am getting an error for below code 
System.NullPointerException: Attempt to de-reference a null object


  Account[] acc1=[Select id,name from account];
       Case ca=new Case();
       ca.Status='New';
       ca.Origin='Phone';
       ca.Account.name=acc1[0].name; // --------> error line
       ca.Subject='hello';       
       insert ca;
       system.debug('Account Name'+ca);
      
  • April 18, 2019
  • Like
  • 0
I'm trying to get the Id's of the account with most recent createddate and created by fields of Task. Please help me with SOQL, Thanks!
I'm trying to query for Product and their related opportunity products using the follow soql 

SELECT Id,Name,(SELECT Id FROM OpportunityLineItem) FROM Product2.  

However I get  this error message anytime I execute the code. 

Didn't understand relationship 'OpportunityLineItem' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.

Schema show they are related in salesforce but I don't know why this query isnt working. 
Help with a unit test on a simple trigger
I have created a simple "before delete" trigger for Leads based on the current user's profile name, and it is working like a charm in Sandbox.  I have tried to write a unit test but have not had any luck. I downloaded a Test Generator app to assist and this is what I have so far. Can anyone please help! 

This is my trigger:

 trigger LeadDeleletionLQS on Lead (before delete) {

 //Prevent the deletion of leads of the current user is assigned the 
Lead Qualification Specialist profile.
  Id userProfileId = userinfo.getProfileId();
  String userProfileName = [SELECT ID, Name from Profile Where Id = : userProfileId].Name;
  
  for(Lead lead : trigger.old){ 
  if(userProfileName == 'Lead Qualification Specialist'){   

       lead.adderror('You do not have the permission to merge Leads, contact SalesOp');

        }

    }

}


Here is my draft of a unit test: 

@isTest
    private class LeadDeleletionLQS_Test {
 @isTest static void test_LeadDeleletionLQSU (){
    // Test data setup 
    // Create a Lead, then try to delete it
    Lead lead_obj = new Lead(LastName = 'LastName286', FirstName = 'First968', Company = 'Company326', Street = 'PratapNagar', City = 'Jaipur', State = 'TX', Phone = '54343-37369', LeadSource = 'TBD', Status = 'New');
    Insert lead_obj; 
    Id userProfileId = userinfo.getProfileId();
    String userProfileName = [SELECT ID, Name from Profile Where Id = : userProfileId].Name;
    if(userProfileName == 'Lead Qualification Specialist') 
    

    //Perform test
    Test.startTest();
    Database.DeleteResult result = Database.delete (lead_obj,false);
    Test.stopTest();
    // Verify 
    //In this case the deletion should have been stopped by the trigger,
    // so verify that we got back an error. 
    System.assert(!result.isSuccess());
    System.assert(result.getErrors().size() > 0);
    System.assertEquals('You do not have the permission to merge Leads, contact SalesOp',
                         result.getErrors()[0].getMessage());
    }
    
}
Hi, I am trying to create a trigger for my client.T his is what I amtrting to do
  • There is a lead path, having deposit field (checkbox), once the check box is clicked and path updated, I want to send an email to the client with "attached forms" asking them to fill it to go further on process. By now this is teh code I was able to create:
  • Working class for EMailManager ---

    public with sharing class EmailManager
    {
        public static void sendMail(String address, String subject, String body)
            {
                Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
                String[] toAddresses = new String[] {address};
                    
                mail.setToAddresses(toAddresses);
                mail.setPlainTextBody (body);
                mail.setSubject(Subject);
                Messaging.sendEmail(new Messaging.SingleEmailMessage[] {mail});       
            }
            
    }Problem is: 1. How can I get particular field from the path on the lead object?
  • 2. how to send email to client who paid the deposit and whose field got udated?
  • Please help, I am new to trigggers and really struggling to find the solution.
Thank you.
I'm trying to create a formula for a custom field, where the picklist value of another field set it as a certain number. If the value is high, give the value 10, if Medium give 5, and if Low, 2. My formula is below. I keep getting various errors, this one in particular giving me the following error: "Error: Field Technology_Risk__c may not be used in this type of formula"

I'm new to formulas, do my formatting may be WAY off. Can anyone help?

IF( ISPICKVAL(Technology_Risk__c, "High") , "10" ,
IF( ISPICKVAL(Technology_Risk__c, "Medium") , "5" ,
IF( ISPICKVAL(Technology_Risk__c, "Low") , "2", null)))
i Everyone i am new in Salesforce 
So Please Help Me Out From this Scenario 

I have a two Custom Field on a Custom Object
1.ZipCode(Text)   

   Api Name=Zip_Code__c

2.Owner(Lookup User)
 

  Api Name=Owner

On Territory(Territory__c) Custom Object


My Condition is When i Insert a Zip Code like example:
1.332713=Aaron(Owner)
2.332713=Blake(Owner)
3.332713=Denise(Owner)

When i again insert 332713 and assign to a new Owner then Display a error we can not Assign a zipcode to this user Only a single zipcode is assigned to only three Owners(Sales Representatives)
Three Sales Representatives at most can be assigned to a single zipcode.Display an error if a user attempts to associate another sales representative to a zipcode

Please Replay As Soon Possible I dont know how to over come from this scenario so Please help me 

Thanks 
Neeraj Sharma
 
Hi 
I am beginner in salesforce
So Please Help me out for this scenario
I have two Object one is Standard Object Account and other one is Terriotry object(Territory__c) 
So
i have create a custom field on territory object Zip Code(Text) 
Zip_Code__c  and Owner Lookup Field(User Lookup) Owner__c
when i create a new zip code and new Owner and then Save the Record

After that i am going on Account Object When i Create a new record and Update a Record and change the BillingPostalCode Field of Account then this Account Owner is Assigned to the New Owner that will be in Territory Object With Some New Zip Code and BillingPostal Code and Zip Code of Territory Object are compared and then Assign the new Owner to that Account to the Account Owner


So Please Help Me I am new in Salesforce i dont know how to write a trigger for this scenario This is My First Trigger So Plese Help Me
 
Hi All,
I have to export the Selected Records from List View by using Button.
I have tried to use the VF page and Calling custom extension controller, but I am not able to display the Button in List View in Salesforce Lightning.

Basically I need a Button on All Accounts to export the selected Records into csv or Excel. I can use the Reports, but every time we need to create a report and export. Instead of I need a custom button to export to csv.

Thanks,
Naren
  • October 31, 2019
  • Like
  • 0
Hi 
I have created a VF page and it call a custom extension controller.
In the custom extension conroller, if I use the below Select statement, it is throwing the error: 
List has no rows for assignment to SObject

String ProdName = csvRecordData[1];//From CSV file I am reading the data into a string Variable.
String name2 = [SELECT Id, Name FROM Product2 WHERE Name = :ProdName LIMIT 1].Name;

I am not sure what went wrong with the above query.

If I used as below, then it is working. 
String name2 = [SELECT Id, Name FROM Product2 WHERE Name = 'Test123' LIMIT 1].Name;

Thanks,
Naren
  • October 14, 2019
  • Like
  • 0
Hi All,
We have the products data in Tableau (on premise Application) storing data in SQL Server tables.
We need a way to Push the Data from Tableau to Salesforce.
what all are the Options?.
1. Can I connect to Tableau from Salesforce  and Insert records in Salesforce?
2. Can I ask the Tableau team to extarct the Data in CSV file and use the Dataloader CLI to run ebry night?

Appreciated your help.

Thanks,
Naren

 
  • October 07, 2019
  • Like
  • 0
Hi All,
As of now, we are able to selecte the Account,Contact,Cases..etc.. in Related To field in Task, but not the Lead.
How to add the Lead Option to Related to Field.
Seems to be this option is coming if select the 'Allow Activities' option for Object.
I have created a Custom Object with 'Allow Activities' and custom Object Name is coming under the Related To Dropdown values.
As the Lead is a Standard Object, I am not able to find the option to Edit the Lead Object.
Any ideas?  
User-added image
Thanks,
Narendar
  • October 02, 2019
  • Like
  • 0
Hi All,
With the Roll-Up Summary field, I have calculated the Sum of the Child Records, but Roll-Up Summary field is a Read Only Field.
Users should able to edit the field, so I have created another Custom field and when user clicks the Button, the data should copy Roll-Up Summary to custom field.
I am trying to use the Autolauched Flows and invoke the flows with the Button, but if we use the flows, it will open another window and it will says flows finished.
I don't want to navigate to different page. When we click the button, it should update the field.

Thanks,
Narendar
  • October 02, 2019
  • Like
  • 0
Hi All,
How to add the custom fields to Service Console layout for Case Page layout in Lightning.
In the below screenshot, i would lke to add other custom fields.
I have tried by adding it in Case Page Layout-->Highlights Panel, but it is not working.
User-added imageThanks,
Naren
 
  • October 01, 2019
  • Like
  • 0
Hi All,
My requirement is share the leads owned by specified business Division SalesReps to other sales reps.
Below are my settings:
1. OWD for Lead Object is Private.
2. Profile -->Object Settings -> Read,Create,Edit.
As the Lead OWD is private, sales Reps are able to view the leads owned by them.
So I have created a Lead Sharing Rule.
With the above settings,  Sales Reps are able to view other sales reps leads, but they are able to edit the lead fields they don't own. Is any setting I am missing?.

If I change the Profile Object Settings -> Read,Create, then Actual Owner of Lead is not able to edit the fields.
Appreciated your help.

Thanks,
Naren
 
  • September 13, 2019
  • Like
  • 0
Hi All,
Need help in creating Visualforce Page for the below scenario.
OutOftheBox, we can only add one Product to a Case. In my Case I have to add multiple Products to a Case, so I have created the Junction object and I can able to add the Multiple Products to case. Adding Multiple Products to a case is taking more time. 
I have create a Custom Button, which will popup all the Products and I should able to select the Products and Save those.
We have this kind of Functionality in Opportunity-->Products by using Add Products Button. I have to mimic below kind of page.

User-added imageUser-added imageAs of now, I am able to create a button and invoked the VFpage and it looks like below
User-added imageBelow is my Code:
<apex:page standardController="Product2" recordSetVar="accounts">
         <apex:form >
        <apex:pageBlock title="Product List">
        <apex:commandLink action="{!Next}">Next</apex:CommandLink>
            <apex:pageBlockTable value="{!accounts}" var="a">
                      <apex:column >
                        <apex:facet name="header">
                            Account Name
                        </apex:facet>
                        <apex:facet name="footer">
                            End Of table
                        </apex:facet>
                    <apex:outputField value="{!a.Name}"/>
                </apex:column>
                <apex:column >
                <apex:facet name="header">
                            Account Type
                        </apex:facet>
                        <apex:facet name="footer">
                            End Of table
                        </apex:facet>
                    <apex:outputText value="{!a.ProductCode}"/>
                </apex:column>
                </apex:pageBlockTable>
            <apex:commandLink action="{!previous}">Previous</apex:CommandLink>&nbsp;
                </apex:pageBlock>
        </apex:form>
</apex:page>
 
  • September 11, 2019
  • Like
  • 0
Hi All,
As of now, Case page layout has Product Pick list, and we can select only one Product and it mainted by Pick List Values.
What I am looking is that, When we create a Case, we should able to select Multiple Products to that Case. How we can achieve this?.

Do we need to create a Junction Object between Cases and Product?.
I think Junction Object is not going to support for Product as Product Standard object is going to be Detail Side of Junction Object, which is not supported by Salesforce.

Please correct me if I am wrong.
Also, please suggest me an alternative methods.

Thanks,
Naren
  • August 14, 2019
  • Like
  • 0
Hi All,
In Salesforce Lightning, do we have any option to remove/disable the Drilldown/View report hyper link on Dashboard?.

Thanks,
Naren
Hi All,
We are trying to integrate the External ERP system to Salesforce through Webservices as external ERP is not supported with REST API.
I wrote the below Apex code in Salesforce and Tested the Webservice through Soap UI.Everything is working fine, but I may need to add some error handler.
I am new to Salesforce, please can you review this and provide your suggestions.
Note: I can't use the Enterprise and Partner WSDL update method to update the Account as I have some custom fields and i am using that as Unique Identifier.So I have to write teh Custom Webservice in Salesforce.

global class GlobalAccountUpdate {


    global class requestWs{
        webservice String AccountName;
        webservice String AccountNumber;
        webservice Decimal YTD;
        webservice Decimal MTD;
       Account Acnt;
    }
    global class responseOfWs{
        webservice ID id;
        webservice String AccountNumber;
        webservice string errorFound;
        webservice string success;
        webservice string resErrorCode;
    }
     
     webservice static responseOfWs UpdateAccount(requestWs Info)
    {
        responseOfWs a = new responseOfWs();
        Account accountToUpdate;
         if((String.isNotBlank(Info.AccountName)) && (String.isNotBlank(Info.AccountNumber)))
       
        {
        accountToUpdate = [Select AccountName From Account Where Name = :Info.AccountName and AccountNumber=:Info.AccountNumber limit 1];
        accountToUpdate.Month_to_Date_Sales__c=Info.MTD;
         accountToUpdate.Year_to_Date_Sales__c=Info.YTD;
        
        try
        {
         update accountToUpdate;   
        }
        catch(DmlException e) {
            responseOfWs c = new responseOfWs();
            c.resErrorCode='An unexpected error has occurred: ' + e.getMessage();
            return c;
        //System.debug('An unexpected error has occurred: ' + e.getMessage());
        }
        
        
        a.id=accountToUpdate.Id;
        a.AccountName=Info.AccountName;
        a.success='True';
        a.errorFound='False';
        a.resErrorCode='False';
        return a;
        }
        else
        {
            responseOfWs b = new responseOfWs();
            b.resErrorCode='ERROR-003';
            b.errorFound='Required Fields Not sent';
            return b;
           
        }
    }

}

Thanks,
Naren




 
  • November 19, 2018
  • Like
  • 0
Hi All,
We have a Role Hierarchy as 'VP Sales manager' and 'Sales Reps'.Sales Reps are under the VP Sales Manager.
  • To Restrict the Data/Records, we made the OWD as Private on Leads Object.With these OWD settings, only Lead Owners Can see there leads.
  • Also SalesReps has to see the Leads owned by 'VP Sales Manager' and able to change the Lead Owner on to there name.So, I have provided the Lead Sharing rule with Public Read/Write.
  • With the above Setting, Salesreps are able view the Leads Owned by 'VP Sales Manager', but they are not able to change the Owner.
I have created Permission Set with Modify all, but with this SalesReps are able to view the Leads of Other SalesReps(we don't want to see other SalesRep data)
How to achieve this. Some of blogs menthoned that Transfer Lead Option, but I am not able to view that Option.

Appreciated your help.

Thanks,
Narendar

 
  • October 19, 2018
  • Like
  • 0
Hi,
We have changed the Lead Status Pick list values in our Organization. In the Detail page, Lead Status is not showing in color.What settings we have to do to show the leas status in color.

User-added image
But in Trailhead Organization it is showing in color.
User-added image
Thanks,
Narendar
  • October 16, 2018
  • Like
  • 0
Hi,
We have the unsed the Standard and Custom Fields and need to remove from Available fields Section.

User-added image
Thanks,
Narendar
 
  • October 11, 2018
  • Like
  • 0
Hi,
How to Remove the 'Email' option in Acvitivity Page tab of Lightining component. I need to Remove Email option and add the Note option.
User-added image

Thanks,
Narendar
  • October 11, 2018
  • Like
  • 0
Hi All,
We are working on a POC to Integrate Siebel to Salesforce through the Webservices.
1. We have generated the Salesfoce Enterprise WSDL.
2. Imported into Siebel, it will create a outbound Webservices.
3. Used the login api call to get the sessionId and Serverurl - we are done this without any issues and able to retrieve the sessionId and endpoint url.
4. Used the create api call with above session id, we are getting the below error - HTTP Request error during 'Submitting Data SendHTTP request': 'Status code - 500'
With the same Input xml through SOAP UI or POSTMAN, it is working fine.

below is the XML

 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com" xmlns:urnl="urn:sobject.enterprise.soap.sforce.com">
   <soapenv:Header>
    <urn:SessionHeader>
           <urn:sessionId>111111111111111</urn:sessionId>
           </urn:SessionHeader>  
   </soapenv:Header>
     <soapenv:Body>
      <urn:create>
         <!--Zero or more repetitions:-->
         <urn:sObjects    xsi:type="urn1:Account" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <!--Zero or more repetitions:-->
            <Name>TestWebservice</Name>
            <Description>TestWebservice</Description>
        </urn:sObjects>
      </urn:create>
     </soapenv:Body>
 </soapenv:Envelope>
 
  Is any firewall issue between Siebel to Salesforce?.or XML issue or Do we need to define siebel url as connected app in Salesforce?
 Appreciated your help.
 
 Thanks,
 Naren
  • August 31, 2018
  • Like
  • 0
Hi 
I have created a VF page and it call a custom extension controller.
In the custom extension conroller, if I use the below Select statement, it is throwing the error: 
List has no rows for assignment to SObject

String ProdName = csvRecordData[1];//From CSV file I am reading the data into a string Variable.
String name2 = [SELECT Id, Name FROM Product2 WHERE Name = :ProdName LIMIT 1].Name;

I am not sure what went wrong with the above query.

If I used as below, then it is working. 
String name2 = [SELECT Id, Name FROM Product2 WHERE Name = 'Test123' LIMIT 1].Name;

Thanks,
Naren
  • October 14, 2019
  • Like
  • 0
Hi All,
As of now, we are able to selecte the Account,Contact,Cases..etc.. in Related To field in Task, but not the Lead.
How to add the Lead Option to Related to Field.
Seems to be this option is coming if select the 'Allow Activities' option for Object.
I have created a Custom Object with 'Allow Activities' and custom Object Name is coming under the Related To Dropdown values.
As the Lead is a Standard Object, I am not able to find the option to Edit the Lead Object.
Any ideas?  
User-added image
Thanks,
Narendar
  • October 02, 2019
  • Like
  • 0
Hi All,
With the Roll-Up Summary field, I have calculated the Sum of the Child Records, but Roll-Up Summary field is a Read Only Field.
Users should able to edit the field, so I have created another Custom field and when user clicks the Button, the data should copy Roll-Up Summary to custom field.
I am trying to use the Autolauched Flows and invoke the flows with the Button, but if we use the flows, it will open another window and it will says flows finished.
I don't want to navigate to different page. When we click the button, it should update the field.

Thanks,
Narendar
  • October 02, 2019
  • Like
  • 0
Hi All,
How to add the custom fields to Service Console layout for Case Page layout in Lightning.
In the below screenshot, i would lke to add other custom fields.
I have tried by adding it in Case Page Layout-->Highlights Panel, but it is not working.
User-added imageThanks,
Naren
 
  • October 01, 2019
  • Like
  • 0
Hi All,
My requirement is share the leads owned by specified business Division SalesReps to other sales reps.
Below are my settings:
1. OWD for Lead Object is Private.
2. Profile -->Object Settings -> Read,Create,Edit.
As the Lead OWD is private, sales Reps are able to view the leads owned by them.
So I have created a Lead Sharing Rule.
With the above settings,  Sales Reps are able to view other sales reps leads, but they are able to edit the lead fields they don't own. Is any setting I am missing?.

If I change the Profile Object Settings -> Read,Create, then Actual Owner of Lead is not able to edit the fields.
Appreciated your help.

Thanks,
Naren
 
  • September 13, 2019
  • Like
  • 0
Hi All,
Need help in creating Visualforce Page for the below scenario.
OutOftheBox, we can only add one Product to a Case. In my Case I have to add multiple Products to a Case, so I have created the Junction object and I can able to add the Multiple Products to case. Adding Multiple Products to a case is taking more time. 
I have create a Custom Button, which will popup all the Products and I should able to select the Products and Save those.
We have this kind of Functionality in Opportunity-->Products by using Add Products Button. I have to mimic below kind of page.

User-added imageUser-added imageAs of now, I am able to create a button and invoked the VFpage and it looks like below
User-added imageBelow is my Code:
<apex:page standardController="Product2" recordSetVar="accounts">
         <apex:form >
        <apex:pageBlock title="Product List">
        <apex:commandLink action="{!Next}">Next</apex:CommandLink>
            <apex:pageBlockTable value="{!accounts}" var="a">
                      <apex:column >
                        <apex:facet name="header">
                            Account Name
                        </apex:facet>
                        <apex:facet name="footer">
                            End Of table
                        </apex:facet>
                    <apex:outputField value="{!a.Name}"/>
                </apex:column>
                <apex:column >
                <apex:facet name="header">
                            Account Type
                        </apex:facet>
                        <apex:facet name="footer">
                            End Of table
                        </apex:facet>
                    <apex:outputText value="{!a.ProductCode}"/>
                </apex:column>
                </apex:pageBlockTable>
            <apex:commandLink action="{!previous}">Previous</apex:CommandLink>&nbsp;
                </apex:pageBlock>
        </apex:form>
</apex:page>
 
  • September 11, 2019
  • Like
  • 0
Hi All,
As of now, Case page layout has Product Pick list, and we can select only one Product and it mainted by Pick List Values.
What I am looking is that, When we create a Case, we should able to select Multiple Products to that Case. How we can achieve this?.

Do we need to create a Junction Object between Cases and Product?.
I think Junction Object is not going to support for Product as Product Standard object is going to be Detail Side of Junction Object, which is not supported by Salesforce.

Please correct me if I am wrong.
Also, please suggest me an alternative methods.

Thanks,
Naren
  • August 14, 2019
  • Like
  • 0
Hi All,
In Salesforce Lightning, do we have any option to remove/disable the Drilldown/View report hyper link on Dashboard?.

Thanks,
Naren
Hi,
I'm developing an API and need help with using the email address on the record as the unique identifier in both Salesforce and the third party service. Salesforce will consume the REST API but I needed to know how I can get the http callout to choose the record in the external system based on the email address. (How to match the record in SF to external system using the email address??)

ANY help is much appreciated :)
Many Thanks,
Natasha 
Hi,
I'm completely new to development and I need to develop an integration between Salesforce and a third party service (BKSB). Salesforce needs to consume the REST API. 

I need to write a trigger that will make a callout when a status changes on the custom 'Placement__c' object from '8 - Offer Accepted' to '9 - Induction Booked'. I have the following code so far (asked another dev):
trigger PlacementTrigger on Placement (before update) {
 Map<Id,Placement__c> newPlacList1=new Map<Id,Placement__c>();
 Map<Id,Placement__c> oldPlacList2=new Map<Id,Placement__c>();
 List<Placement__c> newPlacementList=new List<Placement__c>();
 newPlacList1=trigger.new;
 oldPlacList2=trigger.old;
    if(Trigger.IsUpdate && Trigger.isbefore ){
 for(Id placId : newPlacList1.keySet()){
  if(oldPlacList2.get(placId).Status__c == '8 - Offer Accepted' &&
        newPlacList1.get(placId).Status__c == '9 - Induction Booked'){
  newPlacementList.add(placList1.get(placId));
  }
 }
  PlacementTriggerHandler.handlerFunction(newPlacementList); 
    }
}
To identify the correct user's data to GET from the BKSB, the unique identifier is the email address on the Salesforce record. How do I incorporate this so the correct record is chosen in BKSB?
And where do I go from the trigger?

ANY help is much appreciated!!
Many Thanks,
Natasha 
 
Hi all,

We have a client who is looking to make an inbound SOAP call to Salesforce (i.e. their IBM middleware will initiate a call to push data to Salesforce).   

So far so good, however they are telling me that they already have the WSDL files, as they also send the same data to various other (non Salesforce) systems.  I.e. they have generated the WSDL themselves.

My understanding is that for inbound calls (to Salesforce), they will need to use either the Partner or the Enterprise WSDL generated by Salesforce - and not one created by them.  Is that correct?

If this were an outbound call / callout (from Salesforce) then i know i could consume their existing WSDL, however is it possible to consume a 3rd party WSDL for inbound calls?  

Hope you can help!
Jon
 
We have generated an apex SOAP web service that must be invoked from an external system. By request of the external system the request must be made in a single step (using UsernameToken, including username and password in the header of the call).
If I try to test using SOAPui, it returns:
sf:INVALID_SESSION_ID
INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session
This  article describes how to perform using a Marketing Cloud user: https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/authenticate-soap-api.htm (https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/authenticate-soap-api.htm)
What configuration must be done to configure it with a user with a Salesforce license? Can it be replicated for a user with a Salesforce license?
 
Hello all,

I have a user who is consistently making API calls to Salesforce, but I am unable to figure out what records he is creating. Under his Contact, he has 0 records, yet he is making several API calls to Salesforce on a daily basis.

Is there a way to query on whether or not a record was generated from an API call from an external system?

Regards,
Baylor Peak
Hi There, I am very new to this and am setting up an apex rest api to where I want to check the data from our 3rd party database against a custom object and match it based on an email address to a lead and either update the matched lead, or if there is no match create the lead.

Can someone help me out with what that would look like?
SF beginner here.  Ive been setup with a sandbox to work in their lightning.force.com environment.  I'm trying to obtain an access token using a windows app via http.  First thing I did was create a connected app.  I have it setup for OAuth and saved the Consumer Key and Secret codes.  When I try to use the password flow to get an access token, I get an invalid_client_identifier.  I have checked the value and it's correct.  I'm thinking it must be some sort of permission issue.  Do I have to use an endpoint in my sandbox, or do I use the documented https://login.salesforce.com/services/oauth2/token ?  Any other thoughts?
Hi All,

I want to send  a record third party Application..whenever the records getting created in salesforce.

KIndly provide me some solution how to send it .
Hi,
Can you please help me out by answering these questions.
A company wants a recruiting app that models candidates and interviews; displays the total number of interviews on each candidate record; and defines security on interview records that is independent from the security on candidate records.What would a developer do to accomplish this task? 
Choose 2 answers.
A) Create a lookup relationship between the Candidate and Interview objects.
B) Create a trigger on the Interview object that updates a field on the Candidate object
C) Create a roll-up summary field on the Candidate object that counts Interview records.
D) Create a master-detail relationship between the Candidate and Interview objects.
 
Hoping the Ans as :A,B

2) In the Lightning Component framework, which resource can be used to fire events?ans: A,B
Choose 2 answers
Third-party Javascript code.
Javascript controller actions.
Visualforce controller actions.
Third-party web service code.

Hoping as Ans: A,B

3) What is a capability of formula fields? 
 
   Choose 3 answer 
 
A) Generate a link using the HIPERLINK function to a specific record in a legacy system
B) Determine if a datetime field has passed using the NOW function
C) Determine which of three different images to display using IF function
D) Return and display a field value from another object using the VLOOKUP function
E) Display the previous value for a field using the PRIORVALUE funtion

I think Ans: B,C,D

4)A developer wants to display all the available record types for a case Object. The developer also wants to display the picklist values for the Case.Status field. The Case Object and the Case.Status field are on a Custom Visualforce page.
Which action can the developer perform to get the record types and picklist values in the controller?
Choose 2 answers. 
Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues()
Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos()
Use SOQL to query Case records in the org to get all values for the Status picklist field
Use SOQL to query Case records in the org to get all the RecordType values available for Case 

I think Ans:A,B

5) A developer writes a SOQL query to find child records for a specific parent. Ans:5



 



How many levels can be returned in a single query?

A. 1
B. 7
C. 5
D. 3
 
Confused between option A and C.Please clarify these questions.

Thanks in advance for your help.