• Karan Shekhar Kaul
  • NEWBIE
  • 339 Points
  • Member since 2015
  • Senior Developer
  • NA

  • Chatter
    Feed
  • 11
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 81
    Replies
I want to write test class for my ctr_homepage class.
public with sharing class ctr_homepage {
     // Varaible Declaration
    Public String tablen{get;set;}
    Public String tout { get; set;}
    
     /* Constructor Starts here */ 
    Public ctr_homepage(){
        tout = System.currentPageReference().getParameters().get('tout');
        tablen = ApexPages.currentPage().getParameters().get('tablen');
    }
      /* Constructor ends here */ 
 
    // To redirect to english Language
    public PageReference english() {
        PageReference engpg = new PageReference('/apex/vfp_validation?lang=en&tout='+tout+'&tablen='+tablen);
        engpg.setRedirect(TRUE);
        return engpg ;
    }

   // To redirect to hindi Language
    public PageReference hindi() {
        PageReference hinpg = new PageReference('/apex/vfp_validation?lang=hi');
        hinpg.setRedirect(TRUE);
        return hinpg ;
    }
    
    // To redirect to bengali Language
    public PageReference bengali() {
       PageReference benpg = new PageReference('/apex/vfp_validation?lang=bn');
        benpg.setRedirect(TRUE);
        return benpg ;
    }

}

I am not able to understand what i should write for the PageReference.
Hi All,

on a vfpage i have a inputtext box and a insert button next to it. 

my requirement is when user types some text in the inputtextbox and presees insert button then a new row has to be added below with the text as outputtext. 

when the user again types some text in the input textbox and again pressed insert button then the previously added row should go down and the new row should be added with the text input 

Please let me know how to achieve. it will be more helpful if code can be shared for the same.

Best Regards,
Mohammad Yaseen.
I want to create a custom field on Accounts to calculate all the opportunities on the account. eg(ordered, Invoiced, Partially Invoiced)

Could someone please help me out.
Hello Developers...
I need a visualforce where Account and contact fields will be displayed on different pageblock sections and when the details are entered, contact should be associated with that account. 
Thanks in advance
Sumanth kumar
Hi,

I have designed a flow but I come up with an error when I do a record lookup and it's driving me nuts.

Here's the error:
Error element Look_for_previous_forms (FlowRecordLookup).
This error occurred when the flow tried to look up records: SELECT Keep_doing_formal__c, Spot_check_Comment__c ^ ERROR at Row:1:Column:8 No such column 'Keep_doing_formal__c' on entity 'Observation_Form__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.. 


This is my Lookup within the flow:
User-added image

All the fields above exist in the object and the __c is already appended in the API name of the fields.

When I click Run in the flow designer it works fine, but when I launch the visualforce page which calls the flow I get the error I have mentioned.

Currently I have two Record Lookup in my flow: the first lookup works ok, the problem only happens with the second lookup called "Look for previous forms".

What could be the issue?
Thanks in advance for your valuable feedback.

User-added image
Hi
I have a visualforce with standard controller=account and doctype=HTML 5.0. when I enter acocunt Name and click save button it is not saving to object. please let me know if any issue.
 
<apex:page docType="HTML-5.0" 
           standardController="Account"
           standardStylesheets="false"
           showheader="false"
           sidebar="false">
 <html>
<head>   
</head>
<body>
<form>
<table>
<tr>
<td>
Account Name:
</td>
<td>
<Input type="Text"/> 
</td>
</tr>

</table>
</form>
</body>
</html>
<apex:form >
<apex:commandButton action="{!Save}"
                    value="Save" />
                   
</apex:form>     
</apex:page>

Thanks
Pooja Hegde
Hi there everyone,

I'm new to Salesforce and Visualforce development. Though I have been doing C# for years in the Windows environment, my experience in web development is pretty limited. I am trying to build a solution where there are two picklists. The first pick list (OCS Units) is based on a 'Global pick list'. The second pick list should be loaded based on the value picked in the first pick list. When I run my code, it doesn't look like even the first pick list is being populated because when I click on the 'drop down' arrow, nothing is displayed.

Below is my Visualforce code:
 
<apex:page controller="OCSPicklistLoader">
    <apex:form>
        <apex:pageBlock>
            <apex:pageBlockSection columns="2">
            	<apex:pageBlockSectionItem>
                    <apex:outputLabel value="OCS Unit"/>
                </apex:pageBlockSectionItem>
            	<apex:pageBlockSectionItem>
                    <apex:selectList size="1" value="{!OCS_Unit}">
                    	<apex:selectOptions value="{!OCS_Unit}"/>
                    	<apex:actionSupport event="onchange" reRender="Offices"/>
                    </apex:selectList>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem>
                    <apex:outputLabel value="OCS Office"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem>
                    <apex:selectList size="1" value="{!OCS_Office}" id="Offices">
                    	<apex:selectOptions value="{!OCS_Office}"/>
                    </apex:selectList>
                </apex:pageBlockSectionItem>    
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

Below is my Controller code:
public class OCSPicklistLoader {
    public string OCS_Unit {get;set;}
    public string OCS_Office {get;set;}
    public List<OCS_Office__c> OCSOffices;
     
    public List<SelectOption> OCS_Unit()
    {
        List<SelectOption> options = new List<SelectOption>();
        options.add(new SelectOption('A','None'));
        options.add(new SelectOption('B','FAT'));
        options.add(new SelectOption('C','SSU'));
        options.add(new SelectOption('D','EOU'));
        options.add(new SelectOption('E','EPMU'));
        options.add(new SelectOption('F','CIAU'));
        options.add(new SelectOption('G','JGO'));
        return options;
    }
    public List<SelectOption> OCS_Office()
    {
        List<SelectOption> options = new List<SelectOption>();

        OCSOffices = [select Name from OCS_Office__c WHERE OCS_Unit_Code__c=:OCS_Unit]; 
        for(OCS_Office__c a : OCSOffices)
        {
            options.add(new SelectOption(a.Name,a.Name));
        } 
        return options;
		
    }
	
}
Any assistance would be greatly appreciated.

Thanks!

Eric

Hi guys,

I have some problem in retrieve translation text and put in excel file. I got a list of Custom Label Name in excel file that need to be translate to multiple language (PS: I got hundred plus of custom label need to be translate in 10 languages). I do not want to open each of the custom label then copy and paste the translation text in the excel file. It there any way for me to code it out and then add the translation in the excel filer?

Thank you for advance .

I'm trying to return an Order with an OrderLine as a JSON string.
I create two classes Order and OrderLines. Order contains a list of OrderLines.
public class Order
    {
        public string CustNmbr;
        public string ShipMthd;
        public string Refrence;
        public double FrtAmnt;
        public double TaxAmnt;
        public string Cntcprsn;
        public string ShipToName;
        public string Address1;
        public string Address3;
        public string City;
        public string State;
        public string ZipCode;
        public string PhNumbr1;
        public List<OrderLines> SOP10200;
    }
    public class OrderLines
    {
        public string itemnmbr;
        public decimal quantity;
        public string unitprce;
        public string uofm;
    }
Then I populate the fields from a query.
public static string getOrderFromContract(string contractID){
        sObject myOrder = [select id, name, contact_city__c, contact_state__c, contact_street_address__c, contact_zip_code__c, contact_email_address__c, contact_phone_number__c, contact_name_export__c, fns_number__c, number_of_device_sets_needed__c, processor_id__c, raps2_id__c, saturdaydelivery__c, store_name__c, terminal_id__c, terminal_type__c from cde_contract__c where id = :contractID];
        
        Order newOrder = new Order();
        OrderLines newLines = new OrderLines();
        
        string fns = (String)myOrder.get('fns_number__c');
        
        newOrder.custnmbr = ('f' + fns);
        newOrder.state = (String)myOrder.get('contact_state__c');
        newOrder.shipmthd = 'FedEX';
        newOrder.refrence = 'SalesForce Contract';
        newOrder.frtamnt = 0.00;
        newOrder.taxamnt = 0.00;
        newOrder.cntcprsn = (String)myOrder.get('contact_name_export__c');
        newOrder.shiptoname = (String)myOrder.get('store_name__c');
        newOrder.address1 = (String)myOrder.get('contact_street_address__c');
        newOrder.address3 = (String)myOrder.get('contact_email_address__c');
        newOrder.city = (String)myOrder.get('contact_city__c');
        newOrder.state = (String)myOrder.get('contact_state__c');
        newOrder.zipcode = (String)myOrder.get('contact_zip_code__c');
        newOrder.phnumbr1 = (String)myOrder.get('contact_phone_number__c');
        
        newLines.itemnmbr = '120604';
        newLines.quantity = (decimal)myOrder.get('number_of_device_sets_needed__c');
        newLines.uofm = 'roll';
                 
        return JSON.serialize(newOrder);
    }
This works to create the order header but I can't get the order lines part to work.
newOrder.SOP10200 = newLines;
I need something to assign the newLines item to the SOP10200 but I don't know how to get it done. The above results in the following error.
Illegal assignment from SalesOrderFromContract.OrderLines to List<SalesOrderFromContract.OrderLines>
Thanks for any help.




 
We have to do the integration with outlook Global address list with Salesforce.
 
We have a requirement where we need to show outlook 365 global contact list in to salesforce Visualforce page.
Global contact list should come from Outlook directly. We will not store the global contacts in to salesforce.
On the run time we should be able to retrieve the global contacts from outlook.
 
GUI Requirement:
Display Contacts in to a dropdownOR
Provide a text box and button. When user enter some string in to text box and click on the button we should get all the global contacts which has entered string in it. If text box is blank and user click on the button than show all the contact for selection. 
Our observation :
I think we need to leverage the REST services provided by office365/outlook to fetch contacts real time. Below link has information related to Outlook API to fetch contacts
https://msdn.microsoft.com/office/office365/APi/contacts-rest-operations#Getcontacts
 
We have tried on the API from the link above. It will give us the contacts for an outlook user from user contact folder but no able to get Global contact list.
Like if I have 15 contact in my outlook contact folder than by using the API I am able to get all 15 contact by not Global contact list.
 
We need some information regarding authentication technique for this integration as well.
 
Please advice.
I have setup Single Sign-on and Azure AD is configured as the identity provider. All users are exclusively managed in Salesforce. The user logins as follows:

1. User starts notebook
2. User is identified by finger print
3. User starts Salesforce by clicking on application
4. User is presented Salesforce Login page
5. User hits Azure AD button
6. User is shown Salesforce start page

Now I would like to remove steps 4 and 5 from the login process. The requirement is that user is taken to the Salesforce Startpage without the need to hit the Azure AD button.

How can this achieved? Thank you for your feedback.
I am not a developer, and our in-house developer left the company, so I need help. We have a Lightning Component that queries a custom object called Suite Products and returns all records. This component stopped working on Monday, 12/19/2018. I checked the browser console in both Firefox and Chrome, and I am getting an error that says "Unable to getSuiteProducts". Here is the code that the error references:
 
(function(){ return (
function () {$A.componentService.addComponentClass("markup://c:ContractBuilderSuiteProducts",function() {
return {
  "meta":{
    "name":"c$ContractBuilderSuiteProducts",
    "extends":"markup://aura:component"
  },
  "controller":{
    "init":function(component, event, helper) {
		var action = component.get('c.getSuiteProducts');
		action.setStorable();
		action.setCallback(this, function(a){
			var state = a.getState();
			if(state === 'SUCCESS'){
				var result = a.getReturnValue();
				component.set('v.products', result);
				helper.initTable(component, event, result, component.get('v.contractElementId'));
				
			}
			else{
				console.warn('Unable to getSuiteProducts');
			}
		});
		$A.enqueueAction(action);
	},
    "attachProducts":function(component, event, helper) {
		helper.attachProducts(component, event, component.get('v.contractElementId'), component.get('v.contractElementType'), component.get('v.selectedIds'));
	},
    "destroy":function(component, event, helper) {
		component.destroy();
	}
  },
  "helper":{
    "initTable":function(component, event, result, contractElementId) {
		var dataSet = [];
		var columnHeaders = [];
		var i;
		for(i = 0; i < result.length; i++){
			
			dataSet.push({
				'id' : result[i].Id,
				'contractelement' : (result[i].Contract_Element__c || ''),
				'event' : (result[i].MSE_Event__r.Name || ''), 
				'suite' : (result[i].Suite__r.Name || ''), 
				'hometeam' : (result[i].Home_Team__c || ''),
				'gamecolor' : (result[i].Game_Color__c || ''),
				'opposingteam' : (result[i].Opposing_Team__c || ''),
				'eventdate' : (moment(result[i].Event_Date__c).format('M/D/YYYY') || ''),
				'status' : (result[i].Status__c || ''),
				'recordtype' : (result[i].RecordType.Name || ''),
				'heldfor' : (result[i].Account_Held_For__c || '')
			});
		}

		


		$(document).ready(function() {
			if ( $.fn.dataTable.isDataTable( '#suiteproducts' ) ){
				$("#suiteproducts").dataTable().fnDestroy();
				console.log('destroyed first.');
			}

			$.fn.dataTable.moment = function ( format, locale ) {
			    var types = $.fn.dataTable.ext.type;

			    
			    types.detect.unshift( function ( d ) {
			        return moment( d, format, locale, true ).isValid() ?
			            'moment-'+format :
			            null;
			    } );

			    
			    types.order[ 'moment-'+format+'-pre' ] = function ( d ) {
			        return moment( d, format, locale, true ).unix();
			    };
			};

			$.fn.dataTable.moment('M/D/YYYY');
			var table = $('#suiteproducts').DataTable( {
			 	destroy: true,
			 	scrollY: 200,
				data : dataSet,
				select : 'single',
		        columns: columnHeaders,
		        pagination : true,
		        search : true,
		        columns : [
		            { data: "event", title : "Event Name" },
		            { data: "eventdate", title : "Event Date" },
		            { data: "suite", title : "Suite" },
		            { data: "hometeam", title : "Home Team" },
		            { data: "opposingteam", title : "Opposing Team" },
		            { data: "status", title : "Status" },
		            { data: "heldfor", title : "Held For/Account Name" }
		        ],
		        initComplete : function () {

	                this.api()
			        		.column(5)
			        		.data()
		        			.unique()
		        			.each(function ( d, j ) {
			                    $('#status').append( '<option value="'+d+'">'+d+'</option>' )
			                } );
			        component.set('v.spinner', false);

  		        },
  		        "createdRow": function ( row, data, index ) {
		            if ( data.contractelement == contractElementId ) {
		                $('td', row).addClass('table-primary-permanent');
		            }
		        }
		    } );

            $('#selectClose').on('click', function(){
            	$('#suiteproducts').html('<table id="suiteproducts" class="table table-bordered slds-table slds-table_bordered"></table>');
            	console.log('table was destroyed!');
            });

		    $('#suiteproducts tbody').on( 'click', 'tr', function () {
		        var data = table.row( this ).data();

		        if ( data.contractelement != contractElementId ) {
			        var selectedIds = component.get('v.selectedIds');
			        var index = selectedIds.indexOf(data);
			        if(index < 0)
			        	selectedIds.push(data);
			        else{
			        	selectedIds.splice(index, 1);
			        }

			        console.log('Selected: ' + JSON.stringify(selectedIds));
			        component.set('v.selectedIds', selectedIds);

			        if ( $(this).hasClass('table-primary') ) {
			            $(this).removeClass('table-primary');
			        }
			        else {
			            $(this).addClass('table-primary');
			        }

			    }
		    });

		    $('#eventdate').on( 'change', function () {
		    	var value = moment(this.value).format('M/D/YYYY');
		    	if(!moment(this.value).isValid()){
		    		value = '';
		    	}
		        table
		        	.columns(1)
		        	.search(value)
		        	.draw();

		    });

		    $('#event').keyup( function () {
			    table
			        .columns( 0 )
			        .search( this.value )
			        .draw();
			});

			$('#hometeam').keyup( function () {
			    table
			        .columns( 3 )
			        .search( this.value )
			        .draw();
			});

			$('#opposingteam').keyup( function () {
			    table
			        .columns( 4 )
			        .search( this.value )
			        .draw();
			});

		    $('#suite').keyup( function () {
			    table
			        .columns( 2 )
			        .search( this.value )
			        .draw();
			});

	        $('#status').on( 'change', function () {
	            table
			        .columns( 5 )
			        .search( this.value )
			        .draw();
	        });

		} );
	},
    "attachProducts":function(component, event, contractElementId, contractElementType, selectedIds) {
		var objects = [];
		for(var i = 0; i < selectedIds.length; i++){
			var status = '';
			if(contractElementType === 'ESPP'){
				status = 'ESPP';
			}
			else if(contractElementType === 'Suite Rental'){
				status = 'Sold';
			}
			else if(contractElementType === 'Suite Lease'){
				status = 'Lease';
			}
			else{

			}

			objects.push({"Id" : selectedIds[i].id, "sobjectType" : "Suite_Products__c", "Contract_Element__c" : contractElementId, "Status__c" : status});
		}

		console.log('Objects to attach: ' + JSON.stringify(objects));

		component.set('v.spinner', true);
		var action = component.get('c.addProducts');
		action.setParams({ 'products' : JSON.stringify(objects) });
		action.setCallback(this, function(a){
			var state = a.getState();
			component.set('v.spinner', false);
			if(state === 'SUCCESS'){
				component.destroy();
			}
			else{
				alert('There is an error!');
			}
		});
		$A.enqueueAction(action);
	}
  }
};
});
 }
)})();
//# sourceURL=https://mse.lightning.force.com/components/c/ContractBuilderSuiteProducts.js
I'm not sure if this information can help you diagnose the problem or not. Any help would be greatly appreciated. 
 
Hi All,

 i have created one custom object Tickets and custom field Concert having master detail relationship 

while Saving VF page i am getting below error
The name can only contain underscores and alphanumeric characters. It must begin with a letter and be unique, and must not include spaces, end with an underscore, or contain two consecutive underscores.    



<apex:page controller="Tickets__c">
  <apex:form>
  <apex:page>
  <apex:pageBlock>
 <apex:inputField value="{!Tickets__c.Concert__c}"/>    
  </apex:pageBlock>  
  </apex:page>  
  </apex:form>
</apex:page>
 
We currently have SSO with AD azure but passwords are not synced. Is there a solution for AD azure to sync the password with Salesforce? IF not, then what are the options that has a tutorials to follow?
Can you help me ,the error that i get is Error: call to URL https://login.salesforce.com/services/oauth2/token failed with status 0
 
<?php

$id=$_POST["id"];
define("CLIENT_ID", "");
define("CLIENT_SECRET", '');
define("LOGIN_URI", "https://login.salesforce.com");

//define("SF_SECURITY_TOKEN", "");
define("USERNAME", "");
define("PASSWORD", "");

function salesforce_login($username, $password) {
    $params = "grant_type=password&client_id=".CLIENT_ID.
            "&client_secret=".CLIENT_SECRET.
            "&username=$username&password=$password";

    $token_url = LOGIN_URI . "/services/oauth2/token";

    $curl = curl_init($token_url);
    curl_setopt($curl, CURLOPT_HEADER, false);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_POST, true);
    curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
    $json_response = curl_exec($curl);
    $status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
    if ( $status != 200 ) {
        die("Error: call to URL $token_url failed with status $status");
    }

    return json_decode($json_response, true);
}

$response = salesforce_login(USERNAME, PASSWORD);
$access_token = $response["access_token"];
$instance_url = $response["instance_url"];

$user = $id;
$url = "$instance_url/services/data/v20.0/sobjects/User/$user";

$content = json_encode(array("IsActive" => false));

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HTTPHEADER,
        array("Authorization: OAuth $access_token",
            "Content-type: application/json"));
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);

$response = curl_exec($curl);

$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);

if ( $status != 204) {
    die("Error: call to URL $url failed with status $status, response $response\n");
}

echo "Successfully updated user $user\n";

// -------------------Send message to the ajax--------------------------
$response = array('status' => $status);
echo json_encode($response);

curl_close($curl);
?>

 
Hi Expert,

I am using salesforce API in outside angularjs, i am getting records on client side, but if any new update become in salesforce side then , new added record will display automatic, currently i am using set time interval, but i want to use another method instead of interval.

Example:- I am getting salesforce contacts in my angular side, but if user Add a new contact in salesforce , then this will instantly reflect in client side. 

CAn you please suggest !  

Thanks
Mukesh  
Conponent is
<aura:component >
    <ui:inputText label="name" aura:id="name" placeholder="Enter your name"/>
    <ui:outputText aura:id="nameoutput" value=""/>

    <ui:button aura:id="buttonid" label="Submit" press="{!c.getInput}"/>
</aura:component>
****client side controller is ***
({
    getinput : function(cmp , event) {
        var.fullname = cmp.find("name").get("v.value");
        var.outname = cmp.find("nameoutput");
        outname.set("v.value",fullname+"***");
    }
})

not working properly
error message is****
This page has an error. You might just need to refresh it. Component class instance initialization error [Cannot read property 'apply' of undefined] Failing descriptor: {markup://aura:application}
I want to write test class for my ctr_homepage class.
public with sharing class ctr_homepage {
     // Varaible Declaration
    Public String tablen{get;set;}
    Public String tout { get; set;}
    
     /* Constructor Starts here */ 
    Public ctr_homepage(){
        tout = System.currentPageReference().getParameters().get('tout');
        tablen = ApexPages.currentPage().getParameters().get('tablen');
    }
      /* Constructor ends here */ 
 
    // To redirect to english Language
    public PageReference english() {
        PageReference engpg = new PageReference('/apex/vfp_validation?lang=en&tout='+tout+'&tablen='+tablen);
        engpg.setRedirect(TRUE);
        return engpg ;
    }

   // To redirect to hindi Language
    public PageReference hindi() {
        PageReference hinpg = new PageReference('/apex/vfp_validation?lang=hi');
        hinpg.setRedirect(TRUE);
        return hinpg ;
    }
    
    // To redirect to bengali Language
    public PageReference bengali() {
       PageReference benpg = new PageReference('/apex/vfp_validation?lang=bn');
        benpg.setRedirect(TRUE);
        return benpg ;
    }

}

I am not able to understand what i should write for the PageReference.
Hi All,

on a vfpage i have a inputtext box and a insert button next to it. 

my requirement is when user types some text in the inputtextbox and presees insert button then a new row has to be added below with the text as outputtext. 

when the user again types some text in the input textbox and again pressed insert button then the previously added row should go down and the new row should be added with the text input 

Please let me know how to achieve. it will be more helpful if code can be shared for the same.

Best Regards,
Mohammad Yaseen.
Hi everybody,
I'm having an issue when testing a simple class that is intended to copy the Billing and Shipping Addresses from an Order object to a custom object. The thing is, I set address fields on the Order, insert the Order and everything is fine. But later, when I perform a Select query on the same Order, Address fields are not returned on the result object.

Here is my code
 
Order order = new Order();

		order.BillingCity 		= 'bcity';
		order.BillingCountry 	= 'bcountry';
		order.BillingPostalCode = 'bpostalcode';
		order.BillingState 		= 'bstate';
		order.BillingStreet 	= 'bstreet';
		
		order.ShippingCity 		= 'scity';
		order.ShippingCountry 	= 'scountry';
		order.ShippingPostalCode= 'spostalcode';
		order.ShippingState 	= 'sstate';
		order.ShippingStreet 	= 'sstreet';

		order.AccountId 		= account.Id;
		order.OpportunityId	= opp.Id;
		order.Status 			= status;

		order.EffectiveDate 	= Date.today();
		order.EndDate 		= Date.today().addDays(365);

		insert order;

		system.debug('---------------------------- Order: ' + order);
		system.debug('---------------------------- Query Order: ' + [select 
         																BillingAddress,
         																ShippingAddress,

         																BillingCity,
         																ShippingCity,

         																AccountId,
         																Status,
         																EffectiveDate,
         																EndDate
     																FROM Order
     																WHERE Id =: order.Id]);

if you execute this code, you'll see that the first system.debug invokation will show the Order object as it is in memory, while the second system.debug line, will show the Order with all fields set but those related to Billing and Shipping Addresses (BillingCity, ShippingStreet, etc), also fields BillingAddress and ShippingAddress are null.
How is that possible? Is there any workaround for this situation?
My main goal is been able to assert that Order.BillingCity == CustomObject.BillingCity__c.

Thank you so much for your time.
I'd like to leverage the selected value from a Picklist containing the Text version of the twelve months.
Something like:
IF(
ISPICKVAL(Primary_Review_Month__c, "January"), 01/01/2017

I have tried CASE statements and IF statements and I have tried concatanating numerical values and all my attempts have all failed.
Any suggestions or something like this?
 
We are getting flow error when an integration user runs a script( C sharp code) from his environment, to insert or update data into Salesforce. Can anyone suggest us where would be the error and the resolution Please? It is a high priority task for us now
Hi all,

I have some custom object and I want to capture the number of attachments attached to that particular record. Please help me how to achieve this.

Thanks in Advance
select Name, (Select id, Name from Transaction__r) from Account where Parent.Name !=null 
i am new in salesforce i not know to how to get transcation__r values in my vf pages please help me for that.